Tests: add launcher integration tests for target selection and error handling #1963
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1963
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1963/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCSummary
Adds integration tests for
xcl runlauncher target resolution and CLI error handling incrates/xcl/tests/launcher_e2e.rs:xcl runwithout a target argument exits with code 2 and prints usage.xcl runwith a nonexistent directory or file path exits with code 2 and outputs a descriptive error.xcl.exeitself as the target (xcl run <xcl.exe>) is rejected with code 2 (is XCL itself, not a game).no game .exe file in ...)..exefiles and no configuration exits with code 2 (several .exe files (...) – point to the game exe directly).xcl.exewarns specifically that it is XCL itself and exits with code 2.Tested
crates/xcl/tests/launcher_e2e.rs.python -m pytest scripts/passing 16/16).scripts/pr_check.py --local.Not tested
crates/xcl/tests/files are integration tests and non-runtime code).AI use
@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 base8e87fc7).Tested
cargo build --workspace, thenXCL_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.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.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).--skipleaves out tests that fail on main80f4819too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests andconst_and_null_mask_operands_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
@raylitebull on GitHub · 2026-11-25 01:54 UTC · original
Audit & CI note on
513a18e:crates/xcl/tests/launcher_e2e.rsadds 6 clean CLI launcher target-selection/error-handling integration tests (missing_target,nonexistent_target,xcl_binary_itself,no_exe,multi_exe,only_xcl_copy).CIworkflow approved (running).Remaining before merge:
Build and testfinishing green plus AMD / independent verification on513a18e.@JJAutoCompare on GitHub · 2026-11-25 02:49 UTC · original
PR #1963 compatibility verification
Verified commit
513a18e8db77f562a23a39f492840e265c864205on STOR-WINLAB. The PR adds six tests incrates/xcl/tests/launcher_e2e.rs. All six passed in both runs.Tested
DoublePrecisionFloatShaderOps=0, andd3d12SDKLayers.dllabsent. Rust1.100.0 (0ef1bc386 2026-11-09), unoptimized dev/test profiles with debug info and incremental builds disabled.1.9.2602.17 (21d28f72)and DXIL1.9.2602.17from Windows SDK10.0.26100.0\x64. XCL discovers DXC through its configured override, executable directory, or Windows SDK. The requested1.9.2609.5directory was on PATH.cargo build --workspaceandcargo test --workspace --no-runsucceeded 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=4ran 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 23SKIPPEDlines. Those markers can refer to subcases and provide no GPU coverage.Failures and skips
CreateComputePipelineStatefailures with0x80070057and four output mismatches involving FMA overflow, texture LOD, an f16 lane result, and a pixel-shader reduction. The synthetic title test failed theRSSetDepthBiasXdepth check.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 againstpr1963-suite.logand published this report.@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!