You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(ci): stop background git housekeeping racing the policy fixture clone - #1480
Two tests in .github/tests/secrets-policy-promotion.test.ts failed once during a pre-push gate on 2026-10-25 and passed on the identical tree two hours earlier. Both died in git clone --no-hardlinks from the fixture's bare remote, one with "failed to copy file" on a loose object and one on objects/pack/multi-pack-index.lock.
Each fixture already has its own mkdtemp root, so they weren't stepping on each other. The push into the local bare remote right before the clone can start a detached auto-gc or maintenance run there. A path clone copies objects/ file by file, so it trips over whatever that run is rewriting.
The fixture's gitEnv() now turns automatic housekeeping off for every git process it starts (gc.auto=0, gc.autoDetach=false, maintenance.auto=false, receive.autogc=false, fetch.writeCommitGraph=false) and drops any inherited GIT_CONFIG_COUNT entries. The clone uses a file:// URL, which goes through the pack transport instead of copying the directory. Test-only change, no workflow or production code touched.
Verified: the file passes, 20 consecutive local runs passed with no failure, Biome is clean, and the full pre-push gate passed on this head.
Changelog
🔧 Changed gitEnv() to clear inherited indexed Git configuration and disable automatic garbage collection, maintenance, receive-side auto-gc, and fetch commit-graph writes.
🐛 Fixed fixture clone races by cloning the bare remote with a file:// URL instead of copying its directory.
Concerns
No current review findings or test results were provided.
Reviewing files that changed from the base of the PR and between f31f8db and 12ea0c1.
Files selected for processing: 1
.github/tests/secrets-policy-promotion.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
Walkthrough
The secrets-policy promotion test now removes inherited indexed Git configuration and disables automatic Git maintenance and related operations. It converts the fixture remote path to a file URL for cloning and removes the --no-hardlinks option.
Priority: Low
Change: Bug fix
Merge Risk: Minimal · up to 12ea0
No actionable merge-blocking issue was found in this test-only change.
Pre-merge checks: 2
Check name
Status
Explanation
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Finishing Touches
📝 Generate docstrings
Commit to this branch
Create a new PR
🧪 Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
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
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.
Two tests in
.github/tests/secrets-policy-promotion.test.tsfailed once during a pre-push gate on 2026-10-25 and passed on the identical tree two hours earlier. Both died ingit clone --no-hardlinksfrom the fixture's bare remote, one with "failed to copy file" on a loose object and one onobjects/pack/multi-pack-index.lock.Each fixture already has its own
mkdtemproot, so they weren't stepping on each other. The push into the local bare remote right before the clone can start a detached auto-gc or maintenance run there. A path clone copiesobjects/file by file, so it trips over whatever that run is rewriting.The fixture's
gitEnv()now turns automatic housekeeping off for every git process it starts (gc.auto=0,gc.autoDetach=false,maintenance.auto=false,receive.autogc=false,fetch.writeCommitGraph=false) and drops any inheritedGIT_CONFIG_COUNTentries. The clone uses afile://URL, which goes through the pack transport instead of copying the directory. Test-only change, no workflow or production code touched.Verified: the file passes, 20 consecutive local runs passed with no failure, Biome is clean, and the full pre-push gate passed on this head.
Changelog
gitEnv()to clear inherited indexed Git configuration and disable automatic garbage collection, maintenance, receive-side auto-gc, and fetch commit-graph writes.file://URL instead of copying its directory.Concerns