Repository navigation
continuum-git: tests that spawn git and tests that judge a live git run one at a time (card bd3f9f12) - #5530
Merged
joelteply merged 1 commit intoOct 27, 2026
Conversation
…un one at a time (card bd3f9f12) #5525's real-git submodule test spawns git in the same test binary as index_lock's dead-lock test. may_work_on counts a git whose cwd cannot be read as possibly working in the tree, and on ubuntu an exiting git reads that way, so the lock was Held: 'no git runs in a fresh tempdir' (index_lock.rs:238, run 40512737561, ubuntu-latest). A crate test mutex, GIT_PROCESSES, is held by both. macOS reads other processes' cwd and never reproduced it (0/12 on canary); with the mutex, 3/3 local runs pass. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
Contributor
Author
|
PASS source review at 993bf7e. The test-only mutex covers the entire synchronous git-spawning fixture and the live-process scanning fixture, removing their intra-binary race without weakening production lock ownership checks. Unrelated external git processes remain outside this test mutex. Independently verified all checks passing or intentionally skipped, including Linux continuum-git and the completed core gate. No local build beside active serving. |
joelteply
deleted the
bd3f9f12/continuum-git-a-git-spawned-by-one-test
branch
October 27, 2026 13:58
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.
Why
My #5525 added a real-git test to
continuum-gitthat makes CI fail intermittently, so every PR sharing that job is at risk until this lands. #5528 just hit it: run 40512737561, job 122218611279,ubuntu-latest. The failure isindex_lock::tests::a_dead_gits_lock_is_found_in_a_clone_and_a_worktree_and_removed, panicking atindex_lock.rs:238with "no git runs in a fresh tempdir".Cause
index_lock::may_work_oncounts a git whose working directory can't be read as possibly working in the tree, deliberately: "An unreadable cwd is never evidence of absence."submodulestest spawns git processes in the same test binary, concurrently. The dead-lock test then saw "a git that may own it", held the lock, and failed.Change
continuum_git::GIT_PROCESSES, a#[cfg(test)]mutex held by both the git-spawning test and the live-git test, so no test-spawned git is alive while the judgment runs. Production code is unchanged.Verified (enrico, 2026-10-27, head 993bf7e)
cargo test -p continuum-git --lib: 5 passed, three runs in a row.Card bd3f9f12.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE