Tests: add CLI integration test suite covering top-level flags and inspect #1735
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!1735
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1735"
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 20:03 UTC · original
heditrigui:tests/cli-e2e-suite→main· +125 −0 · 1 files · 1 commits · openSummary
Adds integration tests for
xcltop-level CLI flags andinspectsubcommand incrates/xcl/tests/cli_e2e.rs.Coverage includes:
--versionand-Vflags (verifies exit 0 andxcl <version>output).--helpand-hflags (verifies exit 0 and usage text coveringrun,inspect,disasm,shaders, andrpf).xcl inspectwith missing arguments (verifies exit 2 with usage).xcl inspectwith nonexistent file (verifies exit 2 with cannot read error on stderr).xcl inspectwith invalid PE binary (verifies exit 3 with PE format error on stderr).xcl inspectwith valid PE binary both in plain-text output (File:,Type:,ImageBase:) and--jsonformat output (verifies valid JSON containingfile,machine,image_base, andimports).Tested
crates/xcl/tests/cli_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-24 22:15 UTC · original
Full-suite run, since this PR has no test report yet. Tested exact head
010faf3(on its base85e3826).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 pso_measurement_compiles_an_exact_synthetic_record: 880 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.version_flag_prints_version_and_exits_zero,help_flag_prints_usage_and_exits_zero,unknown_subcommand_exits_code_two_with_help,inspect_missing_argument_exits_code_two,inspect_nonexistent_file_exits_code_two,inspect_invalid_pe_exits_code_three,inspect_valid_pe_text_and_json.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 882 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)).heap_window_out_of_memory_falls_back_to_the_switch_formwas skipped with--skipon NVIDIA. It fails on main7f7e768too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns its opt-in skip (XCL_HEAP_WINDOWSunset) into a failure (#1651). The second--skipcoversshaders::tests::pso_measurement_compiles_an_exact_synthetic_record, which failed the same way on main while Developer Mode was off on this PC.hle::d3d12x::real::readback_routing_tests::coherent_buffer_sanitizes_console_flags_and_statefailed (real.rs:6076,left != rightwith both 0). This PR only addscrates/xcl/tests/cli_e2e.rs, and that test passed in every other PR's run in the same batch. The run above was alone on the machine and is clean; the failure also stopped cargo beforecli_e2eran the first time.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 22:44 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@JJAutoCompare on GitHub · 2026-11-25 03:26 UTC · original
PR #1735 compatibility verification
Tested commit
010faf3839cf3507e71afdc02c9511d6dbaa7415(exact fetched PR head). The diff adds onlycrates/xcl/tests/cli_e2e.rs.Environment STOR-WINLAB, Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X. Intel Arc A770 16 GiB, driver 32.0.101.9175, wave size 8–32,
DoublePrecisionFloatShaderOps=0, and nod3d12SDKLayers.dll. DXC/DXIL 1.9.2609.5. Rust 1.100.0 (0ef1bc386, 2026-11-09). Unoptimized Cargo dev/test profiles with debug info and incremental compilation disabled.Tested
cargo build --workspaceandcargo test --workspace --no-runboth exited 0.cargo test -p xcl --test cli_e2e -- --nocapturereported 7 passed, 0 failed, 0 ignored. Both forms of the help and version flags passed, as did the unknown-subcommand andinspecterror exits. Inspecting the built executable passed in both text and JSON modes. All seven also passed in the workspace run.cargo test --workspace --no-fail-fast -- --test-threads=4under the shared Arc A770 lock exited 101. Summing 21 harness summaries inpr1735-suite.loggives 864 passed, 18 failed, 42 ignored. The log contains exactly 4SKIPPEDlines. Those early returns can appear in Cargo's pass count and provide no coverage for the skipped paths.Failures and skips
CreateComputePipelineStaterejections (0x80070057), including FP64 cases, and 4 result mismatches involving FMA, texture-sampling LOD, FP16 lane packing, and wave reduction.RSSetDepthBiasXcheck read a blue pixel where it expected green.0x887A002D).Not tested A baseline run on
main, retail-title smoke tests, optionalXCL_SAMPLE_*inputs, release builds, and other GPUs or drivers.T3 Code / Codex (
gpt-6.2-sol,reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified counts againstpr1735-suite.logand published this report.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.