Tests: expand bcpack_parity integration tests for block sizes, errors, and decode validation #2239
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!2239
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2239"
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-25 11:01 UTC · original
heditrigui:tests/bcpack-parity-and-invariants-suite→main· +100 −0 · 1 files · 1 commits · openSummary
Expands
crates/xcl/tests/bcpack_parity.rswith integration test invariants covering block sizes, error handling, and decoding validation:block_sizemode mappings: BC1 and BC4 (8 bytes), BC3, BC5, BC6H, and BC7 (16 bytes), andNonefor unsupported modes (0, 2, 8, 9, 10, 255).can_decode(mode)parity withblock_size(mode).is_some()across all 256 modes (0..=255u8).Errorvariants (Unsupported,OutputSize,Decode),.kind()string mappings ("unsupported","output size","decode"),Displayformatting, and value equality.decodeparameter validation: rejection of unsupported modes withError::Unsupported, rejection of zero or non-block-aligned output lengths withError::OutputSize, and graceful rejection of empty inputs withError::Decode(_).Error::Decode(_)safely across all supported modes without panicking.Tested
crates/xcl/tests/bcpack_parity.rsintegration suite additions.python -m pytest scripts/passing 25/25 in 0.45s).scripts/pr_check.py --local.Not tested
crates/xcl/tests/files are integration tests and non-runtime code).AI use
@heditrigui on GitHub · 2026-11-25 11:09 UTC · original
Note: CI Build and test failure is due to the two pre-existing unit test breakages on upstream main (
erouted_disk_entries_follow_the_direct_translator and pc_resource_desc_strips_uav_on_unsupported_formats_and_msaa), documented in #2242. All cpack_parity additions in this PR compiled and passed cleanly.
@jennydeth on GitHub · 2026-11-25 14:45 UTC · original
NVIDIA / Windows run.
Setup: RTX 3060 12 GB (32-lane waves, driver 32.0.16.2101), Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2609.5, debug build. Head
78bea20.Result: cargo test --workspace -- --test-threads=4: 1254 passed, 0 failed, 46 ignored. tests/bcpack_parity.rs: 5 passed. SKIPPED: 18 GPU tests for no wave64 (expected on this card) and the usual per-lane / heap-window / driver-cache skips.
Not tested: the XCL_SAMPLE_BCPACK retail comparison (variable not set).
AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
@nnonno91 on GitHub · 2026-11-25 15:17 UTC · original
Independent Windows test of
78bea207bb1d728043c068b1c6e7f16bb7437f76. All four new synthetic integration tests and the six existing decoder unit tests passed.Tested
cargo test --locked -p xcl --test bcpack_parity -- --skip retail_chunks_match_the_reference --nocapture --test-threads=1: 4 passed, 0 failed, 0 ignored, 1 filtered out. This ran all new block-size, error and malformed-input assertions, with the optional retail comparison explicitly excluded.cargo test --locked -p xcl --lib hle::bcpack::tests -- --nocapture --test-threads=1: 6 passed, 0 failed, 0 ignored, and no logged skips. This also exercised the bundled synthetic decoder fixtures.Not tested
Retail chunks against a reference decoder, parent revision, or the full workspace suite.
AI use
OpenAI Codex (GPT-6.2 Sol) ran the tests, verified the results, and wrote this report.
@DavidM1911 on GitHub · 2026-11-25 16:42 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!
@raylitebull on GitHub · 2026-11-25 18:28 UTC · original
Code review on
78bea20(crates/xcl/tests/bcpack_parity.rs): clean unit/integration coverage for block sizes, mode roundtrips, and invalid stream handling, and CI is green.Remaining before merge: Dual-vendor (AMD + NVIDIA) verification running
--test bcpack_parityon78bea20(--libalone does not execute integration test targets).@tiagonleal on GitHub · 2026-11-25 18:58 UTC · original
Verification on NVIDIA RTX 5070 Ti (Windows 11), head
78bea207bb1d728043c068b1c6e7f16bb7437f76:--test bcpack_paritypassesTested
78bea207bb1d728043c068b1c6e7f16bb7437f76(git rev-parse HEADof a clean detached worktree, no local changes, built as is, not merged withmain). The PR was open and the head unchanged when I started and again before writing this.cargo test --release --locked -p xcl --test bcpack_parity -j 8 -- --nocapture --test-threads=1: 5 passed, 0 failed, 0 ignored (0 filtered out). Tests:decode_input_and_output_size_validation,decode_malformed_and_truncated_streams_fail_safely,error_display_and_kind_invariants,mode_block_sizes_and_support_invariants,retail_chunks_match_the_reference.XCL_SAMPLE_BCPACKwas not set, soretail_chunks_match_the_referencereturns early and is counted as passed without comparing any chunk.cargo test --release --locked -p xcl --lib hle::bcpack::tests -j 8 -- --nocapture --test-threads=1: 6 passed, 0 failed, 0 ignored.git status --shortwas empty afterwards.Not tested
XCL_SAMPLE_BCPACK),cargo test --workspace, a debug build, the parent revision, the retail game andxcl-smoke.Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5).
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.