Skip to content

image_fuzz: default --build is runtime/build, and a VS config subfolder is found - #1445

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
UlteriorMotive00:fix/image-fuzz-build-default
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
UlteriorMotive00:fix/image-fuzz-build-default

Conversation

@UlteriorMotive00

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: no item; a finding from testing PR #1005 (image_fuzz defaulted to the Linux build folder on Windows).

What and why

tools/image_fuzz.py defaulted --build to runtime/build/linux. Only a Linux build that follows docs/testing.md has that folder. If you follow docs/shader_validation.md (cmake --build runtime/build --target vk_image_fuzz, then python -I tools/image_fuzz.py --programs 8 --seed 1), every run stops with runtime\build\linux\vk_image_fuzz.exe not found.

This changes the default to runtime/build, the same as lds_fuzz.py and valu_fuzz.py. It also looks in the build's RelWithDebInfo/Release subfolder with compute_fixture.find_test_program, as lds_fuzz.py does, so a Visual Studio generator build is found too. Passing --build explicitly works as before.

Tested

Windows 11 Home 10.0.26300, main bb2e184, MSVC 14.44 (scripts/build_runtime.ps1), Python 3.14.7, llvm-mc 21.1.8, Vulkan SDK 1.4.363.0, VK_LOADER_LAYERS_DISABLE=~implicit~.

run before (main) after
python -I tools/image_fuzz.py --programs 8 --seed 1, RTX 5070 (617.42) ...\runtime\build\linux\vk_image_fuzz.exe not found 8/8 programs that ran match
same, AMD Radeon RDNA2 iGPU (32.0.21042.62) not found 8/8 programs that ran match
pytest tests/test_image_fuzz.py 40 passed, 2 new tests fail 42 passed

The two new tests check the default build folder and that a RelWithDebInfo subfolder is picked up. Both fail against main's image_fuzz.py and pass with this change.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: no translator change)

AI-assisted (Claude Code).

🤖 Generated with Claude Code

…er is found

The default was runtime/build/linux, which only a Linux build that follows docs/testing.md has. Following
docs/shader_validation.md (cmake --build runtime/build --target vk_image_fuzz, then run with no --build), every
run stopped with "vk_image_fuzz not found". Default to runtime/build like lds_fuzz and valu_fuzz, and look in its
RelWithDebInfo/Release subfolder with compute_fixture.find_test_program as lds_fuzz does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kapitche

Copy link
Copy Markdown
Contributor

Tested on Linux (WSL2 Ubuntu), Python 3.12, CPU only: pass. Tests: 42 passed. With tools/image_fuzz.py from main, 2 fail.

@bobcatchris

Copy link
Copy Markdown
Contributor

Independent CPU verification, at head 52616e8f against main bb2e1842 (Windows, Python 3.12, no GPU):

  • tests/test_image_fuzz.py: 42 passed.
  • Negative control with tools/image_fuzz.py reverted to main: 2 failed, 40 passed — test_default_build_is_runtime_build_on_every_platform and test_visual_studio_config_subfolder_is_found, so both lookups are covered without a working harness.

@ItsNotRexed
ItsNotRexed merged commit b656c25 into ItsNotRexed:main Nov 22, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants