crosslane_fuzz: reject dumps from failed GPU processes (OLD-10052) #716

Merged
abnalstlll-byte merged 1 commit from upstream-pr/716 into main 2026-11-28 11:00:08 +00:00
abnalstlll-byte commented 2026-11-24 12:49:55 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T12:49:55Z.


Summary

Restores old upstream PR 10052 (OLD-10052, replaces draft #318) with original author attribution (@WebIdentity1) preserved.

\crosslane_fuzz.py::run_gpu\ used a fresh \VKC_DUMP\ even if \ k_compute_test\ exited nonzero. A child that writes matching words and then fails could make the whole campaign report success. After preserving the intended successful and reserved exit-77 unpinned skips, the harness now rejects a failed process before reading its dump and reports its exit status and diagnostics.

Verification

  • Tested with standard library: \python -I tests/test_crosslane_fuzz.py\ (78 tests: 76 PASS, 2 skipped in 5.35s).
  • Clean-room check: \python -I scripts/check_no_game_data.py\ clean (0 issues).
  • Zero dependencies outside the Python standard library. No game files, retail binaries, or keys.
  • AI-assisted (Claude Code).
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5472469091 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/716). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-24T12:49:55Z. --- ### Summary Restores old upstream PR 10052 (OLD-10052, replaces draft #318) with original author attribution (@WebIdentity1) preserved. \crosslane_fuzz.py::run_gpu\ used a fresh \VKC_DUMP\ even if \ k_compute_test\ exited nonzero. A child that writes matching words and then fails could make the whole campaign report success. After preserving the intended successful and reserved exit-77 unpinned skips, the harness now rejects a failed process before reading its dump and reports its exit status and diagnostics. ### Verification - Tested with standard library: \python -I tests/test_crosslane_fuzz.py\ (78 tests: 76 PASS, 2 skipped in 5.35s). - Clean-room check: \python -I scripts/check_no_game_data.py\ clean (0 issues). - Zero dependencies outside the Python standard library. No game files, retail binaries, or keys. - AI-assisted (Claude Code).
PierreEbele commented 2026-11-24 19:34:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-24T19:34:34Z.


Reviewed 3784d62: python3 -I tests/test_crosslane_fuzz.py OK (2 skipped) on Ubuntu 24.04 arm64, Python 3.12.3.
Read the change: unpinned skip only on exit 0/77, then missing dump, then any other non-zero exit is a
HarnessError with the exit code and output; the new tests cover exit 1, -11, the unpinned-with-failure case and a
full run that continues. Note that exit 77 with a dump and no unpinned message is now a harness error rather than a
result, which looks intended. No issues found. AI-assisted review.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7142294345 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/716#issuecomment-7142294345). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-24T19:34:34Z. --- Reviewed 3784d62: `python3 -I tests/test_crosslane_fuzz.py` OK (2 skipped) on Ubuntu 24.04 arm64, Python 3.12.3. Read the change: unpinned skip only on exit 0/77, then missing dump, then any other non-zero exit is a HarnessError with the exit code and output; the new tests cover exit 1, -11, the unpinned-with-failure case and a full run that continues. Note that exit 77 with a dump and no unpinned message is now a harness error rather than a result, which looks intended. No issues found. AI-assisted review.
abnalstlll-byte commented 2026-11-25 21:56:36 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-25T21:56:36Z.


Rebased onto latest \main.
Updated \ ests/test_crosslane_fuzz.py\ to forward \pc_tail\ keyword argument across the mock harness to match \main's
un_gpu\ signature.
Verified \python3 -I tests/test_crosslane_fuzz.py\ (81/81 passed, 2 skipped), \scripts/check_no_game_data.py\ (clean), and \git diff --check.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7175737121 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/716#issuecomment-7175737121). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-25T21:56:36Z. --- Rebased onto latest \main\. Updated \ ests/test_crosslane_fuzz.py\ to forward \pc_tail\ keyword argument across the mock harness to match \main\'s \ un_gpu\ signature. Verified \python3 -I tests/test_crosslane_fuzz.py\ (81/81 passed, 2 skipped), \scripts/check_no_game_data.py\ (clean), and \git diff --check\. AI-assisted (Claude Code, Claude Opus 5.5).
MoonEyes commented 2026-11-28 11:00:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T11:00:03Z.


Red/green: the PR's tests fail on main and pass with this PR (Linux, Python 3.13.18).
Targeted batch of 23 PRs (their tests, the tests importing the changed modules, the docs tests) on main 3ca0707: no new failure, Linux / Python 3.13.
AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7238258517 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/716#issuecomment-7238258517). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T11:00:03Z. --- Red/green: the PR's tests fail on main and pass with this PR (Linux, Python 3.13.18). Targeted batch of 23 PRs (their tests, the tests importing the changed modules, the docs tests) on main 3ca0707: no new failure, Linux / Python 3.13. AI-assisted (Claude Code, Claude Opus 5.5)
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!716
No description provided.