Tests: pin GDK thunk table invariants #1571
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!1571
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1571"
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?
@amazedturnip on GitHub · 2026-11-24 17:47 UTC · original
amazedturnip:xcl/tests-gdk-table-invariants-173547→main· +98 −0 · 1 files · 1 commits · opencrates/xcl/src/hle/xgameruntime/gdk_table.rs is the generated source of truth for every XGameRuntime QueryApiImpl thunk (396 rows / 24 classes / 34 interfaces, sorted by (class, interface, slot)) and had no inline or external test. This PR adds crates/xcl/tests/gdk_table.rs pinning its invariants so a bad regeneration fails loudly. Verified: 7/7 green on this machine; negative control (duplicated row) -> 4/7 tests fail. No existing tests were touched and no runtime source is modified.
What is in it
Tested
AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64),XCL_ADAPTER=radeon):cargo test --workspace -- --test-threads=2— 783 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 1 (no heap windows))Not tested
AI use
@futurepro62 on GitHub · 2026-11-24 18:52 UTC · original
Full-suite run, since this PR has no test report yet. Tested exact head
071cf25(on its base9e3831e).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: 782 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.rows_are_sorted_by_class_interface_slot,function_names_are_unique_and_non_empty,no_duplicate_class_interface_slot_triples,row_and_id_counts_are_stable,every_slot_is_within_u8_and_the_known_range,every_class_and_interface_is_non_zero,source_format_is_32_lowercase_hex_chars.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 783 passed, 0 failed, 41 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).heap_window_out_of_memory_falls_back_to_the_switch_formwas skipped with--skip. It fails on main9e3831etoo, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns every skip except "no wave64" into a failure, including this test's opt-in "no heap windows" skip (XCL_HEAP_WINDOWSunset). Reported as #1651.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 19:41 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.Thanks!
@JJAutoCompare on GitHub · 2026-11-25 05:20 UTC · original
Empirical test report (
071cf257)Hardware / environment
rustc 1.100.0 (0ef1bc386 2026-11-09). DXC:dxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47).071cf257f80b9892daeee5b8c7c689652081d8b0in a clean detached checkout. Cargo used its unoptimized test profile with incremental compilation and debug info disabled.Commands and results
cargo test --workspace --no-runexited 0 and built the workspace test executables, includinggdk_table.cargo test -p xcl --test gdk_table -- --nocaptureexited 0 with 7 passed, 0 failed, 0 ignored, 0 skipped and 0 filtered out. The run usedXCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1. Both commands ran outsideInvoke-ArcTest.ps1without acquiring the Arc GPU mutex.Observed behavior
The tests checked the generated table's 396 rows, 24 distinct classes, and 34 distinct interfaces. They confirmed sort order by class, interface, and slot, unique nonempty function names, unique class/interface/slot triples, nonzero IDs, and slots at or below 83. The source-format test checked the lowercase 32-digit hexadecimal IDs and decimal slot fields. The target reads the static table and its Rust source using CPU-only code.
Not tested
The full GPU workspace suite and game smoke runs were omitted.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1571-focused.logand published.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.