Skip to content

test(xdxr): report fixture output cleanup errors before running - #7310

Open
Barbital11111 wants to merge 1 commit into
ItsNotRexed:mainfrom
Barbital11111:test/xdxr-report-output-cleanup-errors
Open

Barbital11111 wants to merge 1 commit into
ItsNotRexed:mainfrom
Barbital11111:test/xdxr-report-output-cleanup-errors

Conversation

@Barbital11111

Copy link
Copy Markdown
Contributor

Coordination claim.

XDXR test setup returned success after failing to enumerate or remove stale output. Return the filesystem error from iterator construction, iteration, or case removal. The Vulkan fixture now names output preparation in its diagnostic and exits before starting the GPU fixture.

Depends on: #4459

Current main already contains the output helper via 7d60a27a6. This patch works on main as-is. The open #4459 branch has textual conflicts in the helper and its test; a three-way check against #7157 is clean.

On Windows 11 / MSVC 19.44, the new regression failed against 8575d36ed when a synthetic .json case path was a nonempty directory. It now passes. The xdxr_build_output CTest passed, and vk_xdxr_build_test returned 1 with a preparation diagnostic and preserved a file inside the blocked path. A fresh-directory run on RTX 5090 D v2 with NVIDIA 591.86 produced all 30 synthetic cases. xdxr_bvh.py check-build --rays 1000 found zero validation errors and zero differences across 26,200 rays. The changed-file no-game-data check and git diff --check passed.

AI-assisted (Codex), synthetic tests.

@gut0to

gut0to commented Nov 23, 2026

Copy link
Copy Markdown

Tested on Windows with MSVC 19.44.35228.

  • runtime/test/xdxr_build_output_test.cpp compiled and passed when run directly.
  • The new blocked stale.json directory case returns an error from prepare_xdxr_build_output() while preserving keep.txt, so the failure can no longer be mistaken for a clean preparation.
  • git diff --check HEAD^ HEAD is clean.

I could not run the CTest wrapper in this fresh worktree because CMake's compiler-link probe fails before project generation, with no linker diagnostic; the standalone test itself compiled and executed successfully.

@devnull34 devnull34 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified on Windows 11 (MSVC RelWithDebInfo):

  • Built xdxr_build_output_test cleanly with MSVC.
  • xdxr_build_output_test.exe passed:
    • Validated cleanup error handling in runtime/test/xdxr_build_output.h: existing fixture output directory and file cleanup errors are reported cleanly before test execution instead of producing ambiguous subsequent test assertions.
  • CTest target 6: xdxr_build_output passed 100% (0.02s).
  • Whitespace clean (git diff HEAD~1..HEAD --check).

@itsonlysimbo

Copy link
Copy Markdown
Contributor

Tested b6682083 merged onto main 14b2e446 (merges cleanly) on RTX 4070, NVIDIA 621.14, Windows 11 (10.0.26300), MSVC 19.44, Ninja, RelWithDebInfo, Vulkan SDK 1.4.363: no regression.

AI-assisted (Claude Code).

@karearl

karearl commented Nov 23, 2026

Copy link
Copy Markdown

Baseline on main here: d3d12_vulkan_device, d3d12_present and xbox_present fail on this machine without the PR too; no Vulkan SDK installed, so the glslang/llvm-mc shader tests were not built.

AI-assisted (Claude Code).

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.

5 participants