ci(auto-rebase): the tick checks out with git, so an unreachable forge cannot stop setup (#2366) #2370
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!2370
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/1121-0502"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #2366
auto-rebase.ymlwas the only workflow left with auses:(actions/checkout@v4). The runner pre-clones every action of a job into/data/.cache/actbefore step one, so when the runner lost egress todata.forgejo.orgon 2026-11-20 every tick died inSet up job: runs 8472 and 8476-8490 (tasks 22392-22413, 10:30Z-17:30Z), 7 h 20 m with no pull request rebased and no scheduled arming, and 16 red runs that read like code failures while the action-free workflows kept running.What changed
auto-rebase.yml: theCheck out the queuestep is nowgit init+ one blobless fetch ofmain- the shapepr-rebase.ymlandclose-merged-issues.ymlalready use. Credentials are passed per command through an inline helper (nothing written into.git/config, the propertypersist-credentials: falsegave the action;http.extraheaderis rejected by this instance - seeclose-merged-issues.yml). A fetch that cannot reach the forge warns and stands the pass down green, so an outage costs a retry rather than a red X. Same commits, same gate onroom, sameRebase and armstep untouched.test/ci-disk-hygiene.test.js: the #1508 invariant becomes "the room guard precedes whatever checks out" - the matcher acceptsuses: actions/checkout@orgit init+ fetch, andguardAt < checkoutAt/gated()are unchanged. A new case asserts therebasejob holds nouses:at all, which is the invariant #2366 is about.docs/CI.md: one clause on theauto-rebase.ymlrow saying it checks out withgit.Verified
node --test test/ci-disk-hygiene.test.js: 13 tests, 13 pass (the new case fails onorigin/mainwithfound: uses: actions/checkout@v4).node scripts/syntax-check.js: 515 files, all OK.scripts/check-ci-disk-hygiene.jsandscripts/check-rebase-push-guard.jsclean.npm test: 435 suites, 14,614 assertions, 0 failed.mainfetched,git checkout -Bof the tree in 0.42 s,git rebasereplayed a commit andgit diff --quiet origin/main HEADanswered correctly - so the partial clone is enough for every command the loop runs.grep -rn '^\s*uses:' .forgejo/workflows/now finds nothing: no workflow in the repository needs the action cache to start.