Tests: add CLI integration test suite covering top-level flags and inspect #1725
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by heditrigui on 2026-11-24T20:03:30Z.
Summary
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
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T22:15:09Z.
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
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T22:44:00Z.
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!
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T03:26:19Z.
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.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:01:43Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:37:40Z.
Triage (#1607) – head
010faf3#2211 (merged, same author) put the same four
inspectcases on main ascrates/xcl/tests/inspect_e2e.rs: missing argument, missing file, non-PE file (exit 3), valid PE in text and JSON. Here they are duplicates and should be dropped.The
--version/-V,--help/-hand unknown-subcommand tests are not on main and still matchmain.rs.shaders_e2e.rsalready checks--helpfor its flags only.Recommendation: keep open (drop the inspect tests that duplicate main's
inspect_e2e.rs).AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.