Repository navigation
Prevent concurrent Ticket fetches from racing with Worktree changes - #513
Merged
Merged
Conversation
…g to fix on the branch) 2026-10-07T13:13:39Z, host thirdshift. Uncommitted work at the time of failure is included in this commit.
JacobStephens2
marked this pull request as draft
October 7, 2026 13:13
JacobStephens2
marked this pull request as ready for review
October 7, 2026 13:25
Merged
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Coordinate fetches with Worktree changes in the shared local repository:
An unchanged-origin Linux reproduction reached the exact Git 2.55.0 CI error. Fetch checks local refs and sibling Worktree heads, so atomic origin deletion does not protect that read. Diagnosis and evidence distinguish observations from the inference about GitHub transport. Ticket sessions continue to run concurrently.
Closes #509
Evidence
a_sibling_fetch_waits_for_worktree_creation_to_finishfailed withbad object worktrees/work-issue-22/HEAD; the disposal regression also detected an overlapping fetch with its guard removed.After: both controlled regressions pass on Git 2.43.0 and 2.55.0, alongside checks that missing required refs, missing objects, and transport failures remain errors. No new retries.
cargo test(1431 passed; 1 existing ignored test), 22 Git checks, 110 Worktree checks,cargo fmt --check, andcargo clippy --all-targets -- -D warnings.CI notes
child_run::execution_tests::a_pending_collection_waits_for_its_child_and_retires_it_before_deliveryhit the pre-existingText file busy (os error 26)fixture-launch flake tracked in #483; the child-run code is identical tomain, the exact test passed on both branches, all local CI checks passed (cargo test: 1,431 passed; 1 existing ignored test), and the Linux rerun passed.Test seams
Git::fetch: required-ref/object/transport errors.Worktree::create_freshand scope-exit disposal alongside a siblingWorktree::merge_base_branch: controlled shared-ref transitions.Review
Reviewed with
thirdshift-code-reviewagainstmain(d000eee). Standards finding S1, duplicated test orchestration, was addressed with a shared helper and verified by the reviewer. Spec reported no findings.Unaddressed findings
Standards
None.
Spec
None.
Merge Danger
Door: two-way
Revert the locking change to restore the previous behavior.
Blast Radius: Git
Fetches and Worktree acquisition/disposal briefly wait for each other within one shared repository.
Built with codex · gpt-6.1-sol · xhigh