Repository navigation
test(orchestrate-sdlc): isolate worktree-control-test from host git config - #1178
Draft
sbalabanov wants to merge 1 commit into
Draft
sbalabanov wants to merge 1 commit into
sbalabanov wants to merge 1 commit into
Conversation
…onfig The worktree-control test timed out at its 60 s limit in 8 of 20 baseline runs and in 2 of 50 per alias under CPU load. Its own git calls and those of the code under test inherit the host's system git config. A system config that installs hooks (core.hooksPath) runs them on every commit and checkout, costing about 0.5 s per commit against about 0.05 s isolated, so the suite took 36-50 s locally against a few seconds in CI. setUp now starts the environment patch before the first git call and sets GIT_CONFIG_NOSYSTEM=1 and GIT_CONFIG_GLOBAL=/dev/null, so every git process the test or the code under test starts ignores system and global config. Identity and signing stay set through the -c options in GIT. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
sbalabanov
commented
Dec 3, 2026
sbalabanov
left a comment
Collaborator
Author
There was a problem hiding this comment.
[flaky-1-f4-reviewer] satisfied: the environment patch now starts before the first git call and covers every git process the test and worktree_control.py spawn, with cleanup registered right after start; no behavior, scope, comment-rule or PR-body issues found.
This branch has not been deployed
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.
TLDR:
worktree-control-testno longer reads host system or global git config, so hosts that install git hooks no longer push it past its 60 s timeout.Summary
core.hooksPath) runs them on every commit and checkout, about 0.5 s per commit against about 0.05 s isolated.setUpnow starts the environment patch before the first git call and addsGIT_CONFIG_NOSYSTEM=1andGIT_CONFIG_GLOBAL=/dev/null. Identity and signing stay set through the-coptions. Onlyworktree_control_test.pychanges.Test Plan
./tool/bazel test //.agents/skills/orchestrate-sdlc/scripts:worktree-control-test --nocache_test_resultsPASSED in 50.0s../tool/bazel test //.agents/skills/orchestrate-sdlc/scripts:worktree-control-test //.claude/skills/orchestrate-sdlc/scripts:worktree-control-test --runs_per_test=50 --runs_per_test_detects_flakes --nocache_test_results --local_test_jobs=24. Result: 100/100 pass.Stats over 50 runs: max = 4.8s, min = 3.7s, avg = 4.4s, dev = 0.3sStats over 50 runs: max = 3.9s, min = 3.1s, avg = 3.8s, dev = 0.2spew-test,watch-control-testandworktree-control-testall pass.make lint check-gazellepasses.🤖 Generated with Claude Code