Repository navigation
Merged
Conversation
…ard fails instead of silently skipping test_the_per_tool_call_path_is_not_touched has self-skipped on every pull_request CI run since actions/checkout never resolves origin/main on that event -- so the byte-pin guard it implements has never once run during a review, only after a push-triggered merge to main, which is exactly how #429's sanctioned-divergence allowance reached main and turned it red without its own PR catching it (#440). Fixed in the order the issue calls for: .github/workflows/tests.yml now fetches origin/main explicitly right after checkout, then the guard's unavailable-base case fails loudly on a CI runner instead of skipping, while a contributor's local clone with no origin remote still skips. Confirmed no other test in tests/ shares this exposure (grep across the suite for origin/main usage) -- the rest use synthetic local repos or mention origin/main only in prose. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.
What was wrong
tests/test_case_divergence_298.py::test_the_per_tool_call_path_is_not_touched-- the byte-pin guard stopping the per-tool-call hot path from growing a git spawn -- self-skipped ("origin/main not available") on everypull_request-triggered CI run.actions/checkoutnever makesorigin/maina resolvable ref on that event, so the guard could never resolve its comparison base while a change was still reviewable. It only ran after a squash-merge landed onmainvia apushevent -- exactly how #429's sanctioned-divergence allowance reachedmainand turned it red (#440) without its own pull request ever exercising the guard that would have caught it.What changed, in the order the issue asked for
.github/workflows/tests.yml: addedgit fetch --no-tags --depth=1 origin main:refs/remotes/origin/mainright afteractions/checkout, soorigin/mainresolves onpull_requestruns too.tests/test_case_divergence_298.py: the guard's unavailable-base branch now calls a new pure helper,_origin_main_should_be_resolvable(env)(true whenCI=trueorGITHUB_ACTIONS=true). True ->pytest.failwith a message naming test_the_per_tool_call_path_is_not_touched silently self-skips on every pull_request run, so the byte-pin guard has never run during review #442. False (a contributor's local clone with no CI signal, e.g. nooriginremote) -> stillpytest.skip, so the suite stays runnable for a contributor who did nothing wrong.changelog.d/442.fixed.mdadded.Doing the fetch first and the fail-loud second (rather than the reverse) was deliberate -- inverting it would turn CI red for a reason unrelated to the defect.
Tests
Red (helper missing):
NameError: name '_origin_main_should_be_resolvable' is not definedon both new tests.Green:
tests/test_case_divergence_298.py, 22 passed.Full suite: 1806 passed, 43 skipped, 1 error -- the error is an unrelated
conftest.pyworktree-set-changed guard tripped by concurrent sibling lanes (#443, #444) mutating the clone's worktree list mid-run, not a regression from this change.Other skips checked (issue asked for a survey, not a fix)
Grepped every
pytest.skipintests/for this same environment-conditioned shape. All others are legitimate platform-capability or permission-model skips, except one worth a maintainer's eye:tests/test_shell_parse_gate.py:161,"not a git checkout -- cannot cross-check the walk". Structurally similar (skips on a git precondition) but not the #442 exposure, because CI always runs inside a git checkout --actions/checkoutguarantees.gitexists -- so it is never actually a false-pass on CI the wayorigin/mainunavailability was. below-bar: this one is a class with no reachable CI caller today, so it is recorded here rather than filed -- flagging it for the maintainer's judgment rather than opening a new issue against it.Review
Two spawns reviewed the committed diff (Explore + oss:auditor), both
FINDINGS: 0, independently confirmed viascripts/review_return.py --framed, verdictno-findingsfor both.Closes #442.