Repository navigation
Fix four devtools reds and give a run result an identity - #4716
Merged
Merged
Conversation
Two reds in test_verify.py, from different causes. `test_accepted_flake_clears_both_recorded_exit_statuses` is inherited, not new: it fails identically at d430734, the commit before #4709 merged. The rerun formats its report path with `relative_to(ROOT)`, which raises when the step directory sits outside the checkout, so a rerun that had already adjudicated its flakes correctly died formatting the result. Reported relative when it is inside the checkout, absolute otherwise. `test_missing_checkout_venv_tool_is_a_typed_failure` is a stale expectation from #4709: an absent .venv now reports gate_unprovisioned_environment rather than gate_missing_executable, which is the intended distinction. Split into both cases so the original coverage survives alongside the new one. Verification: tests/unit/devtools/test_verify.py, 41 passed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
Sinity
enabled auto-merge (squash)
September 5, 2026 23:54
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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
Fixes four master reds in
tests/unit/devtools, and three defects that let arun's result be misread or missing.
The four reds: which were real
Measured at
d430734f1(the commit before #4709 merged) withdevtoolsandtestsboth checked out there, not inferred:test_accepted_flake_clears_both_recorded_exit_statusestest_missing_checkout_venv_tool_is_a_typed_failuretest_the_default_tier_selects_and_the_all_tier_drops_testmon04e297bbcThe rerun routing through
run_pytestis not implicated: it arrived in#4581 and is unchanged here.
Problems
_rerun_failed_onceformatted its receipt withrelative_to(ROOT), whichraises when the step directory is outside the checkout. A rerun that had
already adjudicated its flakes correctly died formatting its own path.
reassigns ids, so a waiting client could see a foreign job reach a terminal
state and report it as its own release — claiming success for work it never
ran, silently, in the direction that launders an unverified change.
current-pytest-summary.jsonwas named in both runners' output and writtenby neither for a failing run. Evidence: across every worktree, a successful
focused run leaves 11 artifacts; one that ran tests and failed leaves 1,
diagnosed
pytest_no_report. So "read the receipt, not the log" was notavailable advice.
verify | tailreports tail'sstatus, and three readers here (me included) called failing runs green on
that basis. This was not a devtools bug — the exit codes were correct.
Solutions
reassigned id is refused rather than read.
for every run, and carries its
run_idso a stale read is detectable.truncation cannot lose it.
their anti-vacuity conditions against the current contract.
Verification
tests/unit/devtools/{test_pytest_invocation,test_run_result_identity,test_verify}.py— 52 passed, redirected to a file and read, not piped.
devtools verify --quick— exit 0, all gates ok, read from a file.What did not run
No full corpus and no affected-tier run: the shared pytest slot had an hour of
queue depth and, per coordinator direction, this is landing on the static gates
plus the focused run above rather than waiting for it.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid