[PR #2202] [CLOSED] image_fuzz: retry fatal pre-device harness startup once #2206

Closed
opened 2026-11-26 21:20:24 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2202
Author: @whoalin1
Created: 11/26/2026
Status: ❌ Closed

Base: main ← Head: image-fuzz-predevice-retry


📝 Commits (2)

  • b7cea7a image_fuzz: report harness errors separately from pixel mismatches
  • 6f6865c image_fuzz: retry fatal pre-device harness startup once

📊 Changes

2 files changed (+111 additions, -15 deletions)

View changed files

📝 tests/test_image_fuzz.py (+73 -5)
📝 tools/image_fuzz.py (+38 -10)

📄 Description

Summary

  • retry vk_image_fuzz exactly once when it dies with a fatal process status before printing its device: line
  • keep ordinary exit 1/2 failures, post-device crashes, skips and persistent startup crashes classified exactly as before
  • add synthetic sequence tests for retry success, persistent startup failure, post-device crash and ordinary pre-device error

Depends on: #2196
Item: TEST-IMAGE-FUZZ-PREDEVICE-RETRY

Why

On the AMD RDNA2 validation setup used for the image fuzz campaign, the Windows validation loader intermittently exits 0xc000041d during instance/device startup. The exact same generated case then passes repeatedly (one case passed a validation-on 10/10 manual loop), but a 20-case campaign is likely to hit one transient startup crash because every case starts a fresh harness process.

vk_image_fuzz prints device: before creating the shader modules, so a fatal exit before that line cannot have been caused by the shader under test. Retrying once therefore removes startup noise without hiding a shader-induced crash. A crash after device: is never retried.

Tests

  • python -m pytest -q tests/test_image_fuzz.py: 69 passed, 1 skipped
  • python -m compileall -q tools tests: pass
  • python -I tools/image_fuzz.py --self-test: pass (image_fuzz self-test: ok (6 formats, 64x64 draw))
  • git diff --check: pass

No game files or GPU needed for the tests.

AI-assisted with Devin.


🔄 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/2202 **Author:** [@whoalin1](https://github.com/whoalin1) **Created:** 11/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `image-fuzz-predevice-retry` --- ### 📝 Commits (2) - [`b7cea7a`](https://github.com/ubiquitarianism/leonida/commit/b7cea7ad9ac999444959e28b54fbab4cded84d32) image_fuzz: report harness errors separately from pixel mismatches - [`6f6865c`](https://github.com/ubiquitarianism/leonida/commit/6f6865c9a0a5d9b714c6ec0b54d827f96b5793be) image_fuzz: retry fatal pre-device harness startup once ### 📊 Changes **2 files changed** (+111 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_image_fuzz.py` (+73 -5) 📝 `tools/image_fuzz.py` (+38 -10) </details> ### 📄 Description ## Summary - retry `vk_image_fuzz` exactly once when it dies with a fatal process status before printing its `device:` line - keep ordinary exit 1/2 failures, post-device crashes, skips and persistent startup crashes classified exactly as before - add synthetic sequence tests for retry success, persistent startup failure, post-device crash and ordinary pre-device error Depends on: #2196 Item: TEST-IMAGE-FUZZ-PREDEVICE-RETRY ## Why On the AMD RDNA2 validation setup used for the image fuzz campaign, the Windows validation loader intermittently exits `0xc000041d` during instance/device startup. The exact same generated case then passes repeatedly (one case passed a validation-on 10/10 manual loop), but a 20-case campaign is likely to hit one transient startup crash because every case starts a fresh harness process. `vk_image_fuzz` prints `device:` before creating the shader modules, so a fatal exit before that line cannot have been caused by the shader under test. Retrying once therefore removes startup noise without hiding a shader-induced crash. A crash after `device:` is never retried. ## Tests - `python -m pytest -q tests/test_image_fuzz.py`: 69 passed, 1 skipped - `python -m compileall -q tools tests`: pass - `python -I tools/image_fuzz.py --self-test`: pass (`image_fuzz self-test: ok (6 formats, 64x64 draw)`) - `git diff --check`: pass No game files or GPU needed for the tests. AI-assisted with Devin. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 21:20:24 +01:00
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#2206
No description provided.