[PR #318] crosslane_fuzz: reject dumps from failed GPU processes #370

Open
opened 2026-11-26 20:17:39 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/318
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/10052


📝 Commits (1)

  • a27bc7c Reject failed crosslane GPU dumps

📊 Changes

2 files changed (+86 additions, -2 deletions)

View changed files

📝 tests/test_crosslane_fuzz.py (+80 -0)
📝 tools/crosslane_fuzz.py (+6 -2)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/318 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/10052` --- ### 📝 Commits (1) - [`a27bc7c`](https://github.com/ubiquitarianism/leonida/commit/a27bc7cdfda6e4c3fc730c4ca1780f8fcbe0325c) Reject failed crosslane GPU dumps ### 📊 Changes **2 files changed** (+86 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_crosslane_fuzz.py` (+80 -0) 📝 `tools/crosslane_fuzz.py` (+6 -2) </details> ### 📄 Description > 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#370
No description provided.