Skip to content

Tests: expand disasm_e2e for containers, FSSM, --all, and errors - #524

Open
amazedturnip wants to merge 1 commit into
xcl-dev:mainfrom
amazedturnip:xcl/tests-disasm-e2e-containers-fssm-and-all-flag-011102
Open

amazedturnip wants to merge 1 commit into
xcl-dev:mainfrom
amazedturnip:xcl/tests-disasm-e2e-containers-fssm-and-all-flag-011102

Conversation

@amazedturnip

Copy link
Copy Markdown

Expand xcl disasm end-to-end CLI test coverage in crates/xcl/tests/disasm_e2e.rs beyond basic --offset/--length slicing to cover container classification, rdna2-raw scanning, --all, synthetic xbox-native XDAT/XBCH/FSSM extraction (--fssm, --hex), and error exit codes.

What is in it

  • crates/xcl/tests/disasm_e2e.rs: add e2e tests covering --all vs stop-at-s_endpgm, full-file rdna2-raw / unknown scanning, PC dxbc / dxil container classification, synthetic xbox-native XDAT/XBCH/FSSM unpacking (--fssm file output and --hex), and out-of-range --offset / missing-file exit code 2 paths

Tested

  • Hardware / OS / Rust: AMD Ryzen 7 9800X3D 8-Core Processor, Windows 11 Pro 10.0.26100 (Build 26100), rustc 1.94.1 (e408947bf 2026-03-25), stable-x86_64-pc-windows-msvc, debug build
  • NVIDIA (NVIDIA GeForce RTX 5070 Ti (driver 32.0.16.2124, DXC 1.9.2609)): cargo test --workspace -- --test-threads=4 — 681 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2 (no wave64))
  • AMD (AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64), XCL_ADAPTER=radeon): cargo test --workspace -- --test-threads=4 — 681 passed, 0 failed, 41 ignored (SKIPPED GPU tests: none)
  • Verification / negative control: new test suite — verified 3x deterministic

Not tested

  • retail Xbox Series X|S title (not available on this host)

AI use

  • Antigravity CLI (Gemini 4 Hydrogen (Medium)) assisted with diagnosis, implementation, tests, review, and description; all tests executed locally on NVIDIA RTX 5070 Ti and AMD Radeon (native wave64).

@futurepro62

Copy link
Copy Markdown

Tested exact head a328c87 (on its base 508a0c7).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 684 passed, 0 failed, 41 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • One earlier run of the same command hung in the lib tests at gpu_uma_import_check_at_init, gpu_typed_buffer_loads_and_stores, gpu_valu_16_and_64_bit and gpu_wave32_and_wave64_src_vccz_execz (the D3D12.X: replacing the sparse state deadlocks when the old state still holds placed buffers #344 deadlock, which main has too and D3D12.X: the sparse state is replaced outside its lock #443 fixes); I stopped it after 900 s and reran.
    Not tested
  • A retail title or scripts/smoke.ps1 (no title on this machine), AMD, wave64 hardware, a release build.

AI use

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

@MesshM

MesshM commented Nov 24, 2026

Copy link
Copy Markdown

Test run of a328c8751ac8ab63a239a18c7d087b4ea2cf9441 on AMD RDNA4. I merged it onto current main f4ce27c locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 657 passed, 3 failed, 21 ignored, exit code 101; 0 SKIPPED
  • the 3 failures: placed_title_textures_share_vram_and_preserve_pixels, transitions_apply_when_their_list_is_submitted, d32s8_targets_take_their_own_size_of_video_memory. These three also fail on main f4ce27c with no PR applied (cargo test -p xcl --lib -- --test-threads=4: 657 passed, 3 failed), so they are not from this change. The first is placed_title_textures_share_vram_and_preserve_pixels at cubemap extra_pages must be reused at same va; the other two are PoisonErrors from the lock it poisons (Tests: a panicking title-texture test no longer poisons the others #673 addresses the cascade, Tests: check cubemap tile reuse independently of idle page reclamation #447 the cubemap check). It is intermittent: alone it passes 3 of 3, and in the parallel lib run it failed on 6 of 7 runs at f4ce27c, 2 of 6 at d852f9a and 1 of 3 at 1387b4b on this machine.
  • the disasm_e2e tests are in crates/xcl/tests/ and pass.

Review: Test-only; the containers it disassembles are built in the test (no game data). I found nothing to change.

Not tested: no retail title or regression run (I have no unpacked game), no XCL_SAMPLE_* tests, release build; the PR's head on its old base was not run, only its merge onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

@YYchainsAw

YYchainsAw commented Nov 24, 2026 •

Copy link
Copy Markdown

Tested

  • Windows 11 build 26300, Ryzen 7 8845H, Rust 1.100.0 MSVC, debug build.
  • I manually ran xcl disasm on a synthetic 8-byte input with --offset 4 --length 4 and confirmed it printed 00000004: s_endpgm.
  • Codex ran cargo test --locked -p xcl --test disasm_e2e on main 930e8b49c1c2ec683d22c724a398b39111cd0e56 with the test file from PR commit a328c8751ac8ab63a239a18c7d087b4ea2cf9441 applied: 5 passed, 0 failed.

Not tested

Full workspace suite, GPU tests, or any retail game files.

AI use

Codex (GPT-6) prepared the synthetic input, ran the automated test, and drafted this report. I ran the manual CLI check.

Update: Codex (GPT-6) reran cargo test --locked -p xcl --test disasm_e2e on the exact PR head fdfe5e9 on the same Windows machine. 8 passed, 0 failed, 0 ignored.

@ivall ivall added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 24, 2026
@amazedturnip
amazedturnip force-pushed the xcl/tests-disasm-e2e-containers-fssm-and-all-flag-011102 branch from a328c87 to fdfe5e9 Compare November 25, 2026 02:43
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.

5 participants