Repository navigation
Excerpt-vs-clone test skips before running git in an absent clone dir (#8572) - #8576
Merged
Merged
Conversation
…#8572) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
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.
Fixes the red Full Suite Gate on main (#8572, run 44096791630): all 8 failing matrix legs failed only on the 10
test_committed_excerpt_is_byte_identical_to_the_clone[*]cases.Root cause
The test ran
git rev-parse HEADwithcwd=<clone>before checking the clone exists. On CI.mainframe_corpora/<name>is absent, sosubprocess.runraisedFileNotFoundError(Linux/macOS) /NotADirectoryError [WinError 267](Windows) instead of reaching the documented skip. It passed only on boxes with the clones.Fix
Check
(clone / ".git").exists()and skip first; only then run git and compare to the pin. Logic moved to_assert_excerpt_matches_clone; skip-on-ref-mismatch and byte comparison unchanged.Class sweep
Class: a test runs a subprocess with
cwd=a possibly-absent corpus clone before its skip guard. Siblings checked, all already guard on.gitexistence first:test_refraction_differential.py::test_full_corpus_no_new_unexplained,test_refraction_snapshot.py::test_full_corpus_snapshot,test_completeness.py::test_pinned_corpus_completeness. Otherrev-parse ... cwd=uses in tests run in tmp repos they create.Sibling gaps: none.
Tests
New
test_excerpt_check_skips_when_the_clone_is_absent(missing dir, dir without.git). Verified: 48 passed from an unrelated cwd; with an empty corpora dir the excerpt cases skip (9 skipped) instead of erroring.ruff_audit --cirun.Facts checked: no other failing tests in the run log; no engine/golden change.
Cross-repo: none.
🤖 Generated with Claude Code