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

Merged
leonida/mandy
abnalstlll-byte merged 1 commit from restore/old-10052-crosslane-failed-dumps into main 2026-11-28 11:00:08 +00:00

Pull request successfully merged and closed

abnalstlll-byte commented 2026-11-24 12:49:55 +00:00

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).
### 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

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.

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

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).

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

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)

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 description provided.