dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.96k stars 4.65k forks source link

Setup cleanup task on jit-format workflow #104794

Open am11 opened 2 months ago

am11 commented 2 months ago

We have a cleanup action used in backport action to purge stale entries in the Actions list once a day (around 13:00 UTC). We should consider using it in jit-format workflow to delete entries up-to, e.g., success: true || created: > a week ago.

https://github.com/dotnet/runtime/actions/workflows/jit-format.yml

cc @jkoritzinsky, @akoeplinger

dotnet-policy-service[bot] commented 2 months ago

Tagging subscribers to this area: @hoyosjs See info in area-owners.md if you want to be subscribed.

jkoritzinsky commented 2 months ago

I thought we added the cleanup task on the comment-based workflows because they trigger too often. We don't have cleanup jobs on the filtered PR actions like MarkdownLint. Do we need one for the JIT-format job?

am11 commented 2 months ago

Over time, the stale entries stay on the index page and GitHub deletes the logs. I think the log retention time is about a month or so, after that those entries are just occupying space.