Repository navigation
Conversation
metux
force-pushed
the
fix/ci-tidyup-retain-days
branch
from
October 14, 2026 11:22
27be344 to
f409d45
Compare
The global cleanup job was deleting PR build jobs after 14 days and keeping only 2 runs per workflow, which erased CI history for open PRs longer than two weeks. Increase to 30 days and 5 runs to preserve debuggability. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
metux
force-pushed
the
fix/ci-tidyup-retain-days
branch
from
October 15, 2026 09:45
0d002c7 to
2220c90
Compare
metux
force-pushed
the
master
branch
5 times, most recently
from
October 30, 2026 11:57
eae2c21 to
483a172
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The global cleanup job in
tidy-up-auto.ymlwas deleting PR build jobs because of two issues:Issue 1: Aggressive retention settings
retain_days: 14→30(keeps PR CI history for a month)keep_minimum_runs: 2→5(preserves more runs per workflow)Issue 2: Purge script deletes fork PR runs immediately (root cause)
The
gh-purge-deleted-branch-workflows.shscript only checked branch existence in the main repo (X11Libre/xserver). PRs from forks have theirhead_branchin the fork, not in the main repo — so the script didn't find the branch and deleted the runs overnight.Fix: The script now fetches the
pull_requestsfield from the workflow run API and skips deletion if any associated PR is still open. This preserves CI history for all open PRs (main repo + forks) while still cleaning up runs for closed/merged PRs and deleted branches.The per-branch cleanup job (
delete_old_workflow_runs_branches) remains disabled (if: false) — its hardcoded branch list is stale. The smarter per-branch retention logic ingh-purge-pipelines.sh(keeps failed runs + neighbors) could be enabled later as a follow-up.