Skip to content

test(runtime-core): keep git auto-maintenance out of the fixture - #1869

Merged
ScriptedAlchemy merged 1 commit into
masterfrom
fix/git-fixture-maintenance
Sep 19, 2026
Merged

ScriptedAlchemy merged 1 commit into
masterfrom
fix/git-fixture-maintenance

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

authority_reports_sha256_identity_head_and_refs failed on PR #1868's run 35471234177 at git_repository_authority.rs:189. The test snapshots the git dir before and after the authority's reads to prove the authority writes nothing. The junit diff shows the before snapshot held .git/objects/maintenance.lock and the after snapshot did not.

Git 2.47 and later detach maintenance run --auto after a commit, and the detached process holds that lock for a moment. The CI runner has git 2.55, so the fixture's own commit raced the snapshot. The authority did not write anything.

The fixture now passes maintenance.auto=false and gc.auto=0 to every git call, including fast-import. The application crate's git fixture already does this for the same reason. Local git here is 2.43, which does not detach maintenance, so the file's 14 tests passing locally only shows nothing regressed. The CI run on this branch is the real check.

🤖 Generated with Claude Code

Git 2.47+ detaches maintenance after a commit and holds
.git/objects/maintenance.lock while it runs. The authority tests
snapshot the git dir before and after their reads to prove the
authority writes nothing, and the lock file landed in the before
snapshot and vanished before the after one, so the comparison failed
on a CI runner with git 2.55. The application crate fixture already
disables maintenance.auto and gc.auto for the same reason.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Sep 19, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: d7f4764

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 19, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-19T22:13:51.245165Z d7f4764 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ScriptedAlchemy
ScriptedAlchemy merged commit 76ebfee into master Sep 19, 2026
25 checks passed
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