renovate runs four times an hour and deletes its runs that moved nothing #96

Merged
mikluko merged 1 commit from renovate-quarter-hourly into main 2026-11-13 23:11:59 +00:00
Owner

The renovate workflow runs four times an hour, and each run deletes the earlier scheduled runs that moved nothing, so the list of runs keeps the ones that cut a release, the failed ones and the latest.

How it tells them apart: a run that pins pushes a commit by forgejo-actions on the commit it started from, and no later run starts on that commit. .forgejo/prune-renovate-runs.sh keeps the newest run on each such commit and deletes every other successful scheduled run. Runs started by hand and failed runs are kept.

Verified: the script dry-run against this repository's real runs, and one deletion through the API by hand (204). Not verified: that the Authorized Integration behind RENOVATE_AUDIENCE may list and delete runs. If it may not, the new step fails after the push, so a pin still lands and the run shows red.

The renovate workflow runs four times an hour, and each run deletes the earlier scheduled runs that moved nothing, so the list of runs keeps the ones that cut a release, the failed ones and the latest. How it tells them apart: a run that pins pushes a commit by forgejo-actions on the commit it started from, and no later run starts on that commit. `.forgejo/prune-renovate-runs.sh` keeps the newest run on each such commit and deletes every other successful scheduled run. Runs started by hand and failed runs are kept. Verified: the script dry-run against this repository's real runs, and one deletion through the API by hand (204). Not verified: that the Authorized Integration behind `RENOVATE_AUDIENCE` may list and delete runs. If it may not, the new step fails after the push, so a pin still lands and the run shows red.
renovate runs four times an hour and deletes its runs that moved nothing
All checks were successful
image / image (pull_request) Successful in 3s
test / changelog (pull_request) Successful in 5s
test / go (pull_request) Successful in 1m37s
e3894f78e7
An hourly poll held a new kuberex release for up to an hour; polling
more often would have buried the runs that cut a release under empty
ones. A run that pins pushes a commit by forgejo-actions on the commit
it started from, which is how the script tells it from an empty one.

Forgejo's run listing ignores `limit` and its `event` filter does not
match scheduled runs, so the script filters on `trigger_event` itself.

Assisted-By: Claude <noreply@anthropic.com>
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/rexcity!96
No description provided.