Build: opt integration tests out of high-entropy VA alongside xcl.exe #2292
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!2292
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2292"
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?
@Decodere on GitHub · 2026-11-25 12:35 UTC · original
Decodere:fix-2263-low-va-tests→main· +41 −11 · 2 files · 1 commits · openWhat is in it
Fixes #2263.
crates/xcl/build.rspreviously emittedcargo:rustc-link-arg-bin=xcl=...only, leaving the crate's integration test binaries linked with Windows high-entropy ASLR (whereVirtualAlloc(NULL)lands above2^40instead of matchingxcl.exe's low-VA layout from #631).crates/xcl/build.rs: also emitcargo:rustc-link-arg-tests=/HIGHENTROPYVA:NO(MSVC) andcargo:rustc-link-arg-tests=-Wl,--disable-high-entropy-va(GNU) alongside the existingcargo:rustc-link-arg-bin=xcldirectives.crates/xcl/tests/low_va.rs: shareassert_no_high_entropy_va(&Path)betweenxcl_exe_is_linked_without_high_entropy_vaand a newintegration_tests_are_linked_without_high_entropy_vatest that checks bothstd::env::current_exe()'s PEDllCharacteristics & IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA == 0and a liveVirtualAlloc(NULL, 64 KiB, MEM_RESERVE, PAGE_READWRITE)(freed withVirtualFree) landing strictly below1usize << 40.Tested
1.9.2609.5(01b62ad4), debug and release builds.build.rschange:cargo test --release -p xcl --test low_va -- --nocapturefailedintegration_tests_are_linked_without_high_entropy_va(1 passed, 1 failed:DllCharacteristics 0x8160: high-entropy VA is on).cargo test --release -p xcl --test low_va -- --nocaptureandcargo test -j 4 -p xcl --test low_va -- --nocapture): 2 passed, 0 failed, 0 ignored in both release (0.00 s) and debug (0.01 s).cargo build --release --workspaceandcargo test --release --workspace --no-fail-fast -- --test-threads=4 --nocapture): 23 test binaries, 1251 passed, 0 failed, 46 ignored (all in-process integration test binaries built and passed under the low-VA layout), plus 27 runtimeSKIPPEDlines (20no wave64on RTX 4060,3wave32 per-lane formrefusedby driver,2missingd3d12SDKLayers.dll/ D3D12 debug layer,1driver shader cache toggle unavailable,1no heap windows).Regression run
Baseline (
origin/main1a0bbe3a):PR head (
5a26eb9d):Not tested
x86_64-pc-windows-gnutoolchain (-Wl,--disable-high-entropy-vamirrors the existingxcl.exedirective inbuild.rs, tested here onx86_64-pc-windows-msvc).#[ignore]tests on this machine.AI use
Implemented and verified with Google Antigravity (Gemini 4 Neon). All build-script and test changes, failing-first and post-fix runs, full workspace release tests, and paired 60 s RTX 4060 smoke runs were reviewed and executed locally.
@Lum7nt on GitHub · 2026-11-25 14:49 UTC · original
Tested on \
5a26eb9db5\ (\5a26eb9, clean PR head):ustc 1.100.0\ (\x86_64-pc-windows-msvc), DXC \1.8.2502.11\ (Windows SDK \10.0.26100.0), debug profile, \XCL_ADAPTER=nvidia.
@S1m0ne1997 on GitHub · 2026-11-25 15:09 UTC · original
Test report for
5a26eb9db5516e8bdcd133140d993ec89a79a256(this PR's head), for #1607.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09)x86_64-pc-windows-msvc, debug.cargo build --workspace, thencargo test --workspace -- --test-threads=4at the head: 1251 passed, 0 failed, 46 ignored.a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu(no wave64),coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu(no wave64),cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu(no wave64),the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu(no wave64),a_per_lane_2d_or_3d_group_runs_on_the_gpu(no wave64),const_and_null_mask_operands_agree_with_hlsl_on_the_gpu(const_mask, wave64: no wave64),f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's)); f16 arithmetic, wave64: no wave64),f32_programs_on_the_gpu(f32 arithmetic, wave64: no wave64; f32 compares, wave64: no wave64),f64_programs_on_the_gpu(f64, wave64: no wave64),integer_programs_on_the_gpu(integer arithmetic, wave64: no wave64; integer carries, wave64: no wave64),mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(mask_ff0_flbit, wave64: no wave64),gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64),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): L'applicazione ha richiesto un'operazione che dipende da un componente SDK mancante o non corrispondente. (0x887A002D)),test_title_draws_with_a_root_signature_under_the_debug_layer(no d3d12SDKLayers.dll),uploads_start_from_each_subresources_state(no D3D12 debug layer (L'applicazione ha richiesto un'operazione che dipende da un componente SDK mancante o non corrispondente. (0x887A002D))).Not tested
AI use: Claude Code with Claude Opus 5.5 ran the build, the suite and the regression run and wrote this report at my request.
@DavidM1911 on GitHub · 2026-11-25 17:29 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
5a26eb9(crates/xcl/build.rs): clean extension of/HIGHENTROPYVA:NO/-Wl,--disable-high-entropy-vaviacargo:rustc-link-arg-testsalongsidecargo:rustc-link-arg-bin=xcl, and CI is green.Remaining before merge: An AMD verification pass on
5a26eb9(NVIDIA RTX 3060 / 3060 Ti passed).@wanchudao on GitHub · 2026-11-26 00:26 UTC · original
Tested
Tested
5a26eb9db5516e8bdcd133140d993ec89a79a256from clean checkouts on Windows 11 Pro build 26300, Rust/Cargo 1.100.0, MSVC 14.44.35207, Windows SDK 10.0.26100, and RTX 3070 Ti (driver 610.88).cargo test --locked --target x86_64-pc-windows-gnu -p xcl --test low_va -- --nocapturepassed 2/2 with WinLibs GCC 16.2.0 and GNU ld 2.47.20260726. Thelow_vaexecutable and regularxcl.exeboth hadDllCharacteristics = 0x0140. This run covered thelow_vaintegration target.cargo test -p xcl --test low_va -- --nocaptureandcargo test --locked --release -p xcl --test low_va -- --nocaptureeach passed 2/2. Both profiles produced0x8140forlow_vaandxcl.exe. A debug artifact audit withcargo test -p xcl --no-run --message-format=jsonfound0x8140on all 19 integration executables and thexclbin test harness.1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6with only the updatedlow_va.rsgave 1 passed, 1 failed, and exit 101. The new test failed on the0x8160PE header before reaching its allocation check.cargo build --workspaceand thencargo test --workspace --no-fail-fast -- --test-threads=4. Cargo reported 1251 passed, 0 failed, and 46 ignored. There were 27SKIPPEDlines across 17 test labels.The debug lib unit-test harness was the only test executable with
0x8160. Cargo'srustc-link-arg-testsapplies to integration targets. In a separate MSVC probe, the lib harness kept0x8160and one reservation landed above2^40. A package-wide link directive cleared the bit on all three probe harnesses. The integration-test scope in #2263 is covered by this PR on MSVC debug. Matching the lib harness to the executable's layout would be separate work.Not tested
The release workspace suite and release lib harness, the other 18 GNU integration targets, AMD/Intel, and retail-title or external sample paths. The ignored tests and the skipped branches above are outside the measured coverage.
AI use
DeepSeek Harness (DS V4.1 FLASH) ran the initial tests. Codex desktop (GPT-6.2 SOL) independently reran the tests, audited the PE headers, and drafted this report.
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.