Skip to content

test(sessions): keep git auto-maintenance out of the fixture - #1885

Closed
ScriptedAlchemy wants to merge 1 commit into
masterfrom
fix/sessions-fixture-maintenance
Closed

ScriptedAlchemy wants to merge 1 commit into
masterfrom
fix/sessions-fixture-maintenance

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

provenance_capture_copies_no_git_objects went red on PR #1877's run (FLKY-FL 2/2 in the core-storage partition) with .git/objects/maintenance.lock present in the before fingerprint and absent in the after one. Git 2.47+ detaches maintenance run --auto after a commit and holds that lock while it runs, so the fixture's own commit, not the capture, moved the object store. This is the mechanism #1869 fixed for the runtime-core fixture; the sessions fixture now disables auto maintenance and gc for every git call the same way.

The 20 provenance tests pass locally and the crate's clippy is clean.

🤖 Generated with Claude Code

Git 2.47+ detaches maintenance after a commit and holds
.git/objects/maintenance.lock while it runs. The read-only capture test
fingerprints the git dir before and after two captures, so a lock that
appears in the first snapshot and is gone by the second reads as the
capture having touched the object store. The fixture now disables auto
maintenance and gc for every git call, as the runtime-core fixture does.

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

changeset-bot Bot commented Sep 20, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: eb95a52

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 20, 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-20T07:19:54.812572Z eb95a52 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

Copy link
Copy Markdown
Owner Author

Folded into #1886 as its second commit so one CI cycle covers both test-fixture fixes; this branch's own base was the broken master head.

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