crosslane_fuzz: reject dumps from failed GPU processes #318

Closed
Andretuta wants to merge 1 commit from upstream-pr/318 into main
Andretuta commented 2026-11-24 03:08:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T03:08:13Z.


Carried over from old PR 10052 by WebIdentity1 in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/10052, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
WebIdentity1: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Resubmits my closed, unmerged #9150 on current main. Current claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7117081849

What and why

crosslane_fuzz.py::run_gpu used a fresh VKC_DUMP even if vk_compute_test exited nonzero. A child that writes matching words and then fails could make the whole campaign report success; a failed wave32 child with an unpinned warning could instead be skipped. 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. Other campaign programs continue running, but the campaign exits 2.

The compute test writes the dump before its validation exit status is returned, so this ordering matters. The regression uses synthetic child responses and hand-written programs; it does not require a GPU or game files.

Tested on current main de4c37383

  • Negative control with the new test against unmodified main: exit 1 and -11 fresh dumps incorrectly pass, and a four-program campaign reports four matches/exit 0 (3 expected assertion failures).
  • Fixed python3.12 -I tests/test_crosslane_fuzz.py: 76 pass, 2 existing skips; test_compute_fixture.py: 1 pass.
  • compileall on both changed files, changed-file no-game-data scan, and git diff --check: pass.
  • No new physical-GPU or native Windows run. The original #9150 received independent macOS and Linux CPU test confirmations and bounded Apple GPU smoke; this resubmission is the same production change rebased onto current main.

Earlier integration-overlap PRs #8679, #8860, #8086 and #5057 were closed unmerged during the migration cleanup. No open crosslane overlap exists at submission time. If #8860 is resubmitted, its error minimizer should classify this failed-exit message with the return code.

AI-assisted: yes.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5465333638 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/318). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T03:08:13Z. --- > Carried over from **old PR 10052** by `WebIdentity1` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/10052`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `WebIdentity1`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Resubmits my [closed, unmerged `#9150`](https://github.com/ProjectLeonida/Leonida/pull/9150) on current main. Current claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7117081849 ### What and why `crosslane_fuzz.py::run_gpu` used a fresh `VKC_DUMP` even if `vk_compute_test` exited nonzero. A child that writes matching words and then fails could make the whole campaign report success; a failed wave32 child with an unpinned warning could instead be skipped. 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. Other campaign programs continue running, but the campaign exits 2. The compute test writes the dump before its validation exit status is returned, so this ordering matters. The regression uses synthetic child responses and hand-written programs; it does not require a GPU or game files. ### Tested on current main `de4c37383` - Negative control with the new test against unmodified main: exit 1 and -11 fresh dumps incorrectly pass, and a four-program campaign reports four matches/exit 0 (3 expected assertion failures). - Fixed `python3.12 -I tests/test_crosslane_fuzz.py`: 76 pass, 2 existing skips; `test_compute_fixture.py`: 1 pass. - `compileall` on both changed files, changed-file no-game-data scan, and `git diff --check`: pass. - No new physical-GPU or native Windows run. The original `#9150` received independent macOS and Linux CPU test confirmations and bounded Apple GPU smoke; this resubmission is the same production change rebased onto current main. Earlier integration-overlap PRs `#8679`, `#8860`, `#8086` and `#5057` were closed unmerged during the migration cleanup. No open crosslane overlap exists at submission time. If `#8860` is resubmitted, its error minimizer should classify this failed-exit message with the return code. AI-assisted: yes.
MoonEyes commented 2026-11-27 23:35:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-27T23:35:59Z.


Thanks a lot for carrying this over, @Andretuta. The same change is open in #716, opened by abnalstlll-byte for old PR 10052 with WebIdentity1's commit kept (their done: OLD-10052 -> #716 is in #14). Both pull requests change the same two files with the same lines; the only difference is the test's stand-in for run_gpu, which in #716 accepts the pc_tail argument. Nothing from this draft is lost.

I am closing this draft to keep the queue clear. Please continue the discussion in #716, or reopen this one if something is missing there.

AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7230263972 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/318#issuecomment-7230263972). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-27T23:35:59Z. --- Thanks a lot for carrying this over, @Andretuta. The same change is open in #716, opened by `abnalstlll-byte` for old PR 10052 with `WebIdentity1`'s commit kept (their `done: OLD-10052 -> #716` is in #14). Both pull requests change the same two files with the same lines; the only difference is the test's stand-in for `run_gpu`, which in #716 accepts the `pc_tail` argument. Nothing from this draft is lost. I am closing this draft to keep the queue clear. Please continue the discussion in #716, or reopen this one if something is missing there. AI-assisted (Claude Code, Claude Opus 5.5)

Pull request closed

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!318
No description provided.