Add support for retention policy of executed test results
Is your feature request related to a problem? Please describe. Once the test is executed, all its results are stored in MongoDB, and we can visit all our results whenever we want, but sometimes we don’t want old logs because of any reason. And at present, we don’t have that option to enable a log retention policy.
Describe the solution you'd like
Add some flags, like
TESTKUBE_LOG_RETENTION_PERIOD=180days # Delete the logs from DB after 180 days
TESTKUBE_LOG_RETENTION_COUNT=100 # Delete the 1st log if the 101 test is executed.
Or maybe something better.
Thanks @sharmajee1 - would this apply to arbitrary test artifacts also? (log files, videos, etc)
Thanks @sharmajee1 - would this apply to arbitrary test artifacts also? (log files, videos, etc)
I didn't think of it, but sounds like good idea
An ideal solution would be to implement the same retention for both logs and artifacts related to test executions. A retention period should be enough:
TESTKUBE_EXECUTION_RETENTION_PERIOD=180 # Cleanup the logs from DB and artifacts after 180 days
Being able to automate logs and artifacts cleanup is critical for running testkube at Enterprise level at scale.
Guess, it should be in place for logs, @nicufk? For test execution in Mongo it's worth create a separate issue
test result logs are stored in minio and they can be rotated. closing this issue.