Reject new red-green failures from skipped tests #3245

Merged
merzleckeier merged 1 commit from upstream-pr/3245 into main 2026-12-03 15:48:14 +00:00
merzleckeier commented 2026-12-02 22:09:35 +00:00 (Migrated from github.com)

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.py then reports red then green and exits 0. This change counts the transition from skipped to failed as a regression and names it in the report.

Tested

  • On upstream 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 under regressions.
  • python3 -I tests/test_red_green.py -v on Linux: 40 passed, one Windows-only skip. In a separate local combination with #3224 and #3227: 42 passed, one Windows-only skip.
  • The clean-room file check and git diff --check passed.

GPUs tested: n/a.

AI-assisted: OpenAI Codex with a separate read-only GPT-6.2 Sol review.

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5615586439 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3245). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T22:09:35Z. --- Claimed in the coordination issue as [TEST-RED-GREEN-SKIPPED-REGRESSION](https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7360243981). ### 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.py` then reports `red then green` and exits 0. This change counts the transition from skipped to failed as a regression and names it in the report. ### Tested - On upstream `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 under `regressions`. - `python3 -I tests/test_red_green.py -v` on Linux: 40 passed, one Windows-only skip. In a separate local combination with #3224 and #3227: 42 passed, one Windows-only skip. - The clean-room file check and `git diff --check` passed. GPUs tested: n/a. AI-assisted: OpenAI Codex with a separate read-only GPT-6.2 Sol review. ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption.
fiestorra commented 2026-12-02 22:43:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T22:43:33Z.


VERIFY-3245 — Windows nativo: red then green en su commit propio, y la rama trae la pila grande

Own commit b5520eb8c — docs/testing.md (2 lines), scripts/red_green.py (8), tests/test_red_green.py (+19)
Branch carries the long stack of open pull requests (its diff from main is 839 lines over 30 files; this review is of the commit above)

Ran at the branch head

python -I tests/test_red_green.py      Ran 41 tests in 83.3s — OK

Negative control: scripts/red_green.py as it was at the parent of b5520eb8c (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):

FAIL: test_a_skipped_test_that_fails_on_green_is_a_regression
Ran 41 tests — FAILED (failures=1)

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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7361078065 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3245#issuecomment-7361078065). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T22:43:33Z. --- ## VERIFY-3245 — Windows nativo: `red then green` en su commit propio, y **la rama trae la pila grande** | | | |---|---| | Own commit | `b5520eb8c` — `docs/testing.md` (2 lines), `scripts/red_green.py` (8), `tests/test_red_green.py` (+19) | | Branch | carries the long stack of open pull requests (its diff from `main` is 839 lines over 30 files; this review is of the commit above) | **Ran at the branch head** ``` python -I tests/test_red_green.py Ran 41 tests in 83.3s — OK ``` **Negative control**: `scripts/red_green.py` as it was **at the parent of `b5520eb8c`** (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): ``` FAIL: test_a_skipped_test_that_fails_on_green_is_a_regression Ran 41 tests — FAILED (failures=1) ``` **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.
merzleckeier commented 2026-12-02 22:49:58 +00:00 (Migrated from github.com)

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 main at 16243cd6, the exact GitHub head b5520eb8c has merge base f3865cae8 and one commit ahead. The three-dot diff contains only docs/testing.md, scripts/red_green.py and tests/test_red_green.py (24 insertions, 5 deletions). #3204 and #3210 are already on main, and neither #3224 nor #3227 is an ancestor of this branch.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7361217788 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3245#issuecomment-7361217788). Originally posted by [merzleckeier](https://github.com/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 `main` at `16243cd6`, the exact GitHub head `b5520eb8c` has merge base `f3865cae8` and one commit ahead. The three-dot diff contains only `docs/testing.md`, `scripts/red_green.py` and `tests/test_red_green.py` (24 insertions, 5 deletions). #3204 and #3210 are already on `main`, and neither #3224 nor #3227 is an ancestor of this branch.
aegish-zagi commented 2026-12-03 04:57:33 +00:00 (Migrated from github.com)

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 conflicts
Tests 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)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7368223400 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3245#issuecomment-7368223400). Originally posted by [aegish-zagi](https://github.com/aegish-zagi) on 2026-12-03T04:57:33Z. --- VERIFY-3245 — PASS PR #3245 | head b5520eb8c5236866073f8786fc937c2dec2d80c6 | merged cleanly with current main (d9b618f10) in a scratch worktree, no conflicts Tests 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)
lixonik commented 2026-12-03 06:37:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-03T06:37:04Z.


Windows native verification (red -> green) -- PASS on head b5520eb8c (merged cleanly via git merge --no-ff onto main d9b618f10).

Checks (Windows 10 x64, Python 3.12, PowerShell 5.1)

  • python -I scripts/check_no_game_data.py -> PASS
  • Green:
    • python -I tests/test_red_green.py -v -> Ran 41 tests in 74.659s / OK
  • Red (reverted scripts/red_green.py to main d9b618f10, keeping the PR's tests):
    • tests/test_red_green.py -> Ran 41 tests in 74.910s / FAILED (failures=1) (exit 1)

AI-assisted: yes (Antigravity -- Gemini 4 Neon).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7370037112 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3245#issuecomment-7370037112). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-03T06:37:04Z. --- **Windows native verification (`red -> green`) -- PASS** on head `b5520eb8c` (merged cleanly via `git merge --no-ff` onto `main` `d9b618f10`). ### Checks (Windows 10 x64, Python 3.12, PowerShell 5.1) - `python -I scripts/check_no_game_data.py` -> **PASS** - **Green:** - `python -I tests/test_red_green.py -v` -> **Ran 41 tests in 74.659s / OK** - **Red** (reverted `scripts/red_green.py` to `main` `d9b618f10`, keeping the PR's tests): - `tests/test_red_green.py` -> **Ran 41 tests in 74.910s / FAILED (failures=1)** (exit `1`) AI-assisted: yes (Antigravity -- Gemini 4 Neon).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!3245
No description provided.