lhotari commented on PR #16539: URL: https://github.com/apache/pulsar/pull/16539#issuecomment-1182821007
I have been deleting old workflow runs using this script: https://github.com/lhotari/pulsar-contributor-toolbox/blob/25e34ab487abe95eb5859697255990b866a8e7cd/functions/pulsar-contributor-toolbox-functions.sh#L962-L997 . It is very slow to delete the old runs since each deletion requires an API call and therefore up to 5000 runs can be deleted in an hour. I have contacted GitHub support a few times since the GitHub Actions search has stopped working for apache/pulsar a few times because of a search index corruption in the GH backend. In one of the support tickets, I asked about auto-deletion of old workflow runs: > > I hope there would be a retention feature which auto-deletes old workflow runs after a specified number of days, such as 90 days. Do you know if there are plans to implement such a feature? > > > We do have a retention setting in place that was announced in the following blog post. > https://github.blog/changelog/2022-01-14-updates-to-the-checks-data-retention-policy/ > > Starting on February 14th, 2022 GitHub will begin archiving detailed checks data older than 400 days. I can start the script to delete old workflow runs. It will be possible to start using a workflow for deleting old runs after the old runs have been deleted. The counter shows over 220000 old runs. It's possible that this counter isn't correct. I have contacted GH support 2 times in the past when the GH actions search index has become corrupted for apache/pulsar. In that case it isn't possible to delete old runs before GH support rebuilds the search index. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
