Skip to content

Tests: add launcher integration tests for target selection and error handling - #1963

Merged
raylitebull merged 1 commit into
xcl-dev:mainfrom
heditrigui:tests/launcher-e2e-suite
Nov 25, 2026
Merged

raylitebull merged 1 commit into
xcl-dev:mainfrom
heditrigui:tests/launcher-e2e-suite

Conversation

@heditrigui

Copy link
Copy Markdown
Contributor

Summary

Adds integration tests for xcl run launcher target resolution and CLI error handling in crates/xcl/tests/launcher_e2e.rs:

  • Verifies that running xcl run without a target argument exits with code 2 and prints usage.
  • Verifies that running xcl run with a nonexistent directory or file path exits with code 2 and outputs a descriptive error.
  • Verifies that attempting to run xcl.exe itself as the target (xcl run <xcl.exe>) is rejected with code 2 (is XCL itself, not a game).
  • Verifies that running a directory containing no executables exits with code 2 (no game .exe file in ...).
  • Verifies that running an ambiguous directory with multiple .exe files and no configuration exits with code 2 (several .exe files (...) – point to the game exe directly).
  • Verifies that running a directory where the only executable is a copy of xcl.exe warns specifically that it is XCL itself and exits with code 2.

Tested

  • Non-runtime integration test additions under crates/xcl/tests/launcher_e2e.rs.
  • Python scripts test suite (python -m pytest scripts/ passing 16/16).
  • Validated with scripts/pr_check.py --local.

Not tested

  • Retail game smoke execution (crates/xcl/tests/ files are integration tests and non-runtime code).

AI use

  • Antigravity (Gemini 3.8 Flash (High))

@futurepro62

futurepro62 commented Nov 25, 2026 •

Copy link
Copy Markdown

Full-suite run, since this PR has no test report yet. Tested exact head 513a18e (on its base 8e87fc7).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 985 passed, 0 failed, 43 ignored. SKIPPED (no wave64): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, a_per_lane_2d_or_3d_group_runs_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.
  • The new tests ran and passed: launcher_missing_target_argument_exits_code_two, launcher_nonexistent_target_exits_code_two, launcher_rejects_xcl_binary_itself, launcher_directory_without_executables_exits_code_two, launcher_directory_with_ambiguous_executables_exits_code_two, launcher_directory_with_only_xcl_copy_warns_self.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 995 passed, 0 failed, 45 ignored. SKIPPED: f16_programs_on_the_gpu (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 semantics differ from the console's))), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • --skip leaves out tests that fail on main 80f4819 too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (Tests: heap_window_out_of_memory_falls_back_to_the_switch_form fails under XCL_REQUIRE_GPU=mesh (opt-in skip counted as missing coverage) #1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests and const_and_null_mask_operands_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.

@raylitebull

Copy link
Copy Markdown
Member

Audit & CI note on 513a18e:

  • crates/xcl/tests/launcher_e2e.rs adds 6 clean CLI launcher target-selection/error-handling integration tests (missing_target, nonexistent_target, xcl_binary_itself, no_exe, multi_exe, only_xcl_copy).
  • Diff audited and CI workflow approved (running).

Remaining before merge: Build and test finishing green plus AMD / independent verification on 513a18e.

@JJAutoCompare

Copy link
Copy Markdown

PR #1963 compatibility verification

Verified commit 513a18e8db77f562a23a39f492840e265c864205 on STOR-WINLAB. The PR adds six tests in crates/xcl/tests/launcher_e2e.rs. All six passed in both runs.

Tested

  • Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB with driver 32.0.101.9175. Adapter wave range 8–32, DoublePrecisionFloatShaderOps=0, and d3d12SDKLayers.dll absent. Rust 1.100.0 (0ef1bc386 2026-11-09), unoptimized dev/test profiles with debug info and incremental builds disabled.
  • The runtime logged DXC 1.9.2602.17 (21d28f72) and DXIL 1.9.2602.17 from Windows SDK 10.0.26100.0\x64. XCL discovers DXC through its configured override, executable directory, or Windows SDK. The requested 1.9.2609.5 directory was on PATH.
  • cargo build --workspace and cargo test --workspace --no-run succeeded outside the Arc lock.
  • cargo test -p xcl --test launcher_e2e -- --nocapture — 6 passed, 0 failed, 0 ignored. All verified exit code 2 and matching output for a missing argument, nonexistent target, the XCL binary itself, a directory with zero or several executables, and a directory containing only a copy of XCL.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 ran once under the shared Arc lock and exited 101. The 20 binaries and one doctest summary totaled 970 passed, 26 failed, 45 ignored. The log contains 23 SKIPPED lines. Those markers can refer to subcases and provide no GPU coverage.

Failures and skips

  • Library tests had 21 CreateComputePipelineState failures with 0x80070057 and four output mismatches involving FMA overflow, texture LOD, an f16 lane result, and a pixel-shader reduction. The synthetic title test failed the RSSetDepthBiasX depth check.
  • Skip markers covered 18 wave64 cases, three refused wave32 lowering subcases, one unavailable driver-cache disable operation, and one unavailable heap-window case.

Not tested

Main baseline, retail titles or sample-data paths, DXC/DXIL 1.9.2609.5, and other GPU vendors.

AI use

T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1963-suite.log and published this report.

@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

@throny throny added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 25, 2026
@raylitebull
raylitebull merged commit 9633138 into xcl-dev:main Nov 25, 2026
3 checks passed
@heditrigui
heditrigui deleted the tests/launcher-e2e-suite branch November 25, 2026 11:09
anoyarou added a commit to anoyarou/xcl that referenced this pull request Nov 25, 2026
)

Incorporates:
- xcl-dev#2245 (commit 0d13b07 by @b3IKK): update DXIL container synthetic test
  marker offset and format-stripping expectations to match current codebase.
- xcl-dev#1963 (commit 513a18e by @heditrigui): launcher end-to-end integration
  tests for target selection and error handling.

Assisted-by: Antigravity (Gemini 4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants