crosslane_fuzz: reject dumps from failed GPU processes #318

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

@⁠Andretuta on GitHub · 2026-11-24 03:08 UTC · original
ubiquitarianism:old-pr/10052 → main · +86 −2 · 2 files · 1 commits · draft

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.

**@⁠Andretuta** on GitHub · 2026-11-24 03:08 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/318) `ubiquitarianism:old-pr/10052` → `main` · +86 −2 · 2 files · 1 commits · draft > 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:53:10 +00:00
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/318/head:github-bot/gh-318'
git switch 'github-bot/gh-318'

Merge

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