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

Open
github-bot wants to merge 1 commit from github-bot/gh-716 into main AGit
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 12:49 UTC · original
abnalstlll-byte:restore/old-10052-crosslane-failed-dumps → main · +86 −2 · 2 files · 1 commits · open

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).
**@⁠abnalstlll-byte** on GitHub · 2026-11-24 12:49 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/716) `abnalstlll-byte:restore/old-10052-crosslane-failed-dumps` → `main` · +86 −2 · 2 files · 1 commits · open ### 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).
Reject dumps written by crashed/failed GPU runs and update test harnesses for pc_tail keyword parameter.

AI-assisted (Claude Code, Claude Opus 5.5).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:17:44 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-24 19:34 UTC · original

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.

**@⁠PierreEbele** on GitHub · 2026-11-24 19:34 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/716#issuecomment-7142294345) 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.
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-25 21:56 UTC · original

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

**@⁠abnalstlll-byte** on GitHub · 2026-11-25 21:56 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/716#issuecomment-7175737121) 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).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/716/head:github-bot/gh-716'
git switch 'github-bot/gh-716'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-716'
git switch 'github-bot/gh-716'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-716'
git switch 'github-bot/gh-716'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-716'
git switch 'main'
git merge --squash 'github-bot/gh-716'
git switch 'main'
git merge --ff-only 'github-bot/gh-716'
git switch 'main'
git merge 'github-bot/gh-716'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.