Skip to content

test(ci): stop background git housekeeping racing the policy fixture clone - #1480

Merged
scttbnsn merged 1 commit into
dev/v1.8from
fix/v1.8-policy-fixture-race
Oct 26, 2026
Merged

scttbnsn merged 1 commit into
dev/v1.8from
fix/v1.8-policy-fixture-race

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

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.

@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drydock-website Ready Ready Preview Oct 26, 2026 3:46am UTC
drydockdemo-website Ready Ready Preview Oct 26, 2026 3:46am UTC

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

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: Passed 2
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttbnsn
scttbnsn merged commit e43b990 into dev/v1.8 Oct 26, 2026
32 checks passed
@scttbnsn
scttbnsn deleted the fix/v1.8-policy-fixture-race branch October 26, 2026 04:03

This branch was successfully deployed

2 active deployments
Preview – drydockdemo-website — 12ea0c1e Deployed Oct 26, 2026 by vercel[bot]
Preview – drydock-website — 12ea0c1e Deployed Oct 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant