Repository navigation
Tests: expand bcpack_parity integration tests for block sizes, errors, and decode validation - #2239
heditrigui wants to merge 1 commit into
Conversation
|
Note: CI Build and test failure is due to the two pre-existing unit test breakages on upstream main ( |
8bd5a06 to
6c0c94a
Compare
…, and decode validation
6c0c94a to
78bea20
Compare
|
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. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Code review on Remaining before merge: Dual-vendor (AMD + NVIDIA) verification running |
|
Verification on NVIDIA RTX 5070 Ti (Windows 11), head Tested
Not tested
Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5). |
|
merge-check claim |
|
merge-check |
|
NVIDIA and AMD full-suite run, to go with the reports above by jennydeth, throny, tiagonleal, since none of them covers AMD. Tested exact head Tested
Not tested
AI use
|
|
merge-check |
|
No open PR adds the same tests. Much of this restates the unit tests already in AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Summary
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