Repository navigation
test_gate_controls: a count below MAX_UNPROVEN warns instead of failing (main red, #8995) - #8997
Merged
Merged
Conversation
…ng (main red, #8995) Concurrent control PRs each lowered the limit against their own base and left it above the real count after merging; the equality half failed main. The ceiling stays a hard failure. 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.
What
Main's GitGalaxy Smoke Tests went red at
085bb1c67on one test:test_gate_controls.py::test_the_unproven_count_only_goes_down("7 unproven now, so lower MAX_UNPROVEN to 7"; the committed limit was 10). Sibling "Gate controls" PRs each lowered the limit against their own base and left it above the real count once merged. HEAD already agrees (4 == 4), so the red had healed, but the same race recurs on the next pair of control PRs.The ceiling (
n <= MAX_UNPROVEN) stays a hard failure. The "count is below the limit" half now emits a warning instead of failing main. A new test pins both directions.Refs #8995
Class / sibling sweep
Class: an exact-equality ratchet on a committed constant that two concurrent PRs can each satisfy against their own base but not after merging. Siblings (
time_ratchet, the*_auditbaselines) use<=/--write-baselineflows and are not affected; no other "lower ... to" equality assertion exists intests/.Lessons for agents
A ratchet test that fails on "better than the limit" turns main red when two PRs lower the same constant concurrently. Fail only on the worse direction.
Facts checked
44993937253: 1 failed, 6968 passed; the failure is the test above, not infrastructure.b7802adbf:len(gate_controls.unproven()) == MAX_UNPROVEN == 4.pytest tests/tools/test_gate_controls.pyfrom /tmp: 18 passed.ruff format --checkclean;ruff_audit --ci: no new findings.Decision for the reviewer
Softening the equality half lets the limit drift above the real count until the next control PR lowers it. Ratchet strength is unchanged (the count still cannot rise).
🤖 Generated with Claude Code