Reject new red-green failures from skipped tests #3245
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3245"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T22:09:35Z.
Claimed in the coordination issue as TEST-RED-GREEN-SKIPPED-REGRESSION.
What and why
A test skipped on red can fail on green without being counted as a regression. If a separate test turns green,
red_green.pythen reportsred then greenand exits 0. This change counts the transition from skipped to failed as a regression and names it in the report.Tested
main(f3865cae8) with only the new synthetic Git/unittest fixture, the checker returned exit 0 (red then green). With the fix, it returns exit 1 (green fails) and lists the test underregressions.python3 -I tests/test_red_green.py -von Linux: 40 passed, one Windows-only skip. In a separate local combination with #3224 and #3227: 42 passed, one Windows-only skip.git diff --checkpassed.GPUs tested: n/a.
AI-assisted: OpenAI Codex with a separate read-only GPT-6.2 Sol review.
Checklist
mainand merges cleanly.Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T22:43:33Z.
VERIFY-3245 — Windows nativo:
red then greenen su commit propio, y la rama trae la pila grandeb5520eb8c—docs/testing.md(2 lines),scripts/red_green.py(8),tests/test_red_green.py(+19)mainis 839 lines over 30 files; this review is of the commit above)Ran at the branch head
Negative control:
scripts/red_green.pyas it was at the parent ofb5520eb8c(the file, not a reverse patch — that is the technique that works when a commit sits on top of others that touch the same lines):The new test bites.
What the change is: a test that is skipped on the green side but failed on the red one is now a regression instead of a silent pass. That is the right call in this tool's terms: a test skipped on green can be a test that stopped running, and "it passed" would otherwise be recorded for a test that never ran — one of the two ways the verdict can lie, which is the subject of my own #3188 next door.
Stacked, again
The branch carries
frame.rs(#3204), the launcher exit codes (#3210), the red-green changes of #3224/#3227 and the rest — merging it lands them all. Eighth stacked branch tonight. It is a pattern, not an accident, and it is why I isolate a first-parent commit for every one of these.What I could not test: a real pull request whose test is skipped on green and fails on red, end to end; the test builds that situation synthetically.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T22:49:58Z.
Thanks for the native Windows run and the failing control. Two details for the record. The regression case is skipped on red and fails on green. A different test goes red to green in the same fixture, so the new failure must take precedence over that success.
Against upstream
mainat16243cd6, the exact GitHub headb5520eb8chas merge basef3865cae8and one commit ahead. The three-dot diff contains onlydocs/testing.md,scripts/red_green.pyandtests/test_red_green.py(24 insertions, 5 deletions). #3204 and #3210 are already onmain, and neither #3224 nor #3227 is an ancestor of this branch.Imported from ubiquitarianism/leonida. Originally posted by aegish-zagi on 2026-12-03T04:57:33Z.
VERIFY-3245 — PASS
PR #3245 | head
b5520eb8c5| merged cleanly with current main (d9b618f10) in a scratch worktree, no conflictsTests run: tests/test_red_green.py (python -I, stdlib unittest), 41 tests
Red on main: FAILED (failures=1, skipped=3) with the PR's tests on main code — MEASURED
Green on PR: OK (skipped=3), all 41 tests — MEASURED
Diff audit: scripts/red_green.py + tests/test_red_green.py + docs/testing.md only; skipped-test failures are rejected as new failures, no game data — READ IN CODE
Platform: Linux, Python 3.12.3, no GPU
AI-assisted: yes (Muse Wonder, Muse by Meta)
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-03T06:37:04Z.
Windows native verification (
red -> green) -- PASS on headb5520eb8c(merged cleanly viagit merge --no-ffontomaind9b618f10).Checks (Windows 10 x64, Python 3.12, PowerShell 5.1)
python -I scripts/check_no_game_data.py-> PASSpython -I tests/test_red_green.py -v-> Ran 41 tests in 74.659s / OKscripts/red_green.pytomaind9b618f10, keeping the PR's tests):tests/test_red_green.py-> Ran 41 tests in 74.910s / FAILED (failures=1) (exit1)AI-assisted: yes (Antigravity -- Gemini 4 Neon).