I'm setting the Retention amount and till, but old runs remain in the newly generated report.
Steps to reproduce the behavior:
I’ve adjusted the ‘amount’ from 1000 down to 3. When I generate a new report, the ‘Total Runs’ continues to tick up. I’ve adjusted the ‘till’ from "2017-01-25 10:00:00" to "2019-11-27 13:34:00" (Current Date/Time) and when I generate a new report, ALL previously generated reports remain. It does not appear that any reports are removed.
- Set Retention:Amount = 3
- Set Retention:Till = "2019-11-27 13:34:00"
- Generate report with 8 runs
Expected behavior
Expected reports prior to “2019-11-27 13:34:00” to be removed. I expected reports with highlighted dates to be removed.
Also expected 'Total Runs' to not exceed 3, but every time a run is executed, the Total Runs increments by one:
I was also expect file generated prior to “2019-11-27 13:34:00” to be removed from the 'runs' folder...but they remain.
Ghpr.Core.settings.json:
{
"default": {
"outputPath": "C:\ProgramData\Selenium\GHPRReport\Reports\OctopusMaintenance\ALL",
"dataServiceFile": "Ghpr.LocalFileSystem.dll",
"loggerFile": "",
"sprint": "",
"reportName": "OctopusMaintenance",
"projectName": "P1-P2",
"runName": "11/27/19_13:38:33",
"runGuid": "",
"realTimeGeneration": "True",
"runsToDisplay": "15",
"testsToDisplay": "1000",
"retention": {
"amount": 3,
"till": "2019-11-27 13:34:00"
}
},
"projects": null
}
I'm concerned that if 'clean up job' doesn't run, I'll eventually consume all the disk space.
NUGET Package:
I’m using NUGET packages:
Ghpr.Console version="0.9.9.1"
Ghpr.Core version="0.9.9.9"
Ghpr.LocalFileSystem version="0.9.9.9"
Ghpr.MSTestV2 version="0.9.9.1"
Ghpr.NUnit version="0.9.9.9"
MSTest.TestAdapter version="1.4.0"
MSTest.TestFramework version="1.4.0"
NUnit version="3.12.0"
NUnit.Engine version="3.10.0"
Browser: Chrome