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

Manually merged
github merged 1 commit from gh-pr/1963/head into gh-pr/1963/base 2026-11-26 05:11:46 +00:00
Owner

@⁠heditrigui on GitHub · 2026-11-24 23:58 UTC · original
heditrigui:tests/launcher-e2e-suite → main · +109 −0 · 1 files · 1 commits · merged 2026-11-25 11:04 UTC

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))
**@⁠heditrigui** on GitHub · 2026-11-24 23:58 UTC · [original](https://github.com/xcl-dev/xcl/pull/1963) `heditrigui:tests/launcher-e2e-suite` → `main` · +109 −0 · 1 files · 1 commits · merged 2026-11-25 11:04 UTC ### 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))
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:11:43 +00:00
github manually merged commit 513a18e8db into gh-pr/1963/base 2026-11-26 05:11:46 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-25 00:24 UTC · original · edited 2026-11-25 00:35 UTC

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 #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #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 #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 #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 #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 #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 (#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.
**@⁠futurepro62** on GitHub · 2026-11-25 00:24 UTC · [original](https://github.com/xcl-dev/xcl/pull/1963#issuecomment-7148473251) · edited 2026-11-25 00:35 UTC 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 #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #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 #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 #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 #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 #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` (#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](https://git.gtahub.st/github/xcl-dev--xcl/issues/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.
Author
Owner

@⁠raylitebull on GitHub · 2026-11-25 01:54 UTC · original

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.

**@⁠raylitebull** on GitHub · 2026-11-25 01:54 UTC · [original](https://github.com/xcl-dev/xcl/pull/1963#issuecomment-7150097643) 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`.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 02:49 UTC · original

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.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 02:49 UTC · [original](https://github.com/xcl-dev/xcl/pull/1963#issuecomment-7151224777) # 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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 03:09 UTC · original

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

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 03:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/1963#issuecomment-7151640125) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
This discussion has been locked. Commenting is limited to contributors.
No description provided.