Tests: cover XNetworking null pointers, short buffers, and callbacks #1828
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!1828
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1828"
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?
@n-romanovich on GitHub · 2026-11-24 21:31 UTC · original
n-romanovich:tests/xgameruntime-networking→main· +41 −0 · 1 files · 1 commits · openTest-only PR covering untested error and callback contracts in
crates/xcl/src/hle/xgameruntime/networking.rs.What is in it
crates/xcl/src/hle/xgameruntime/networking.rs(#[cfg(test)] mod tests):null_pointers_and_short_buffers_fail_cleanly: checksE_INVALIDARGon null pointers across sync/asyncXNetworking*entry points, and verifiesXNetworkingQuerySecurityInformationForUrlAsyncResultfails (< 0) and clearsout_ptron a short buffer.register_callbacks_issue_distinct_nonzero_tokens_and_unregister: checks distinct non-zero tokens fromXNetworkingRegisterPreferredLocalUdpMultiplayerPortChanged/XNetworkingRegisterConnectivityHintChangedandtruefrom their unregister counterparts.Tested
Hardware: Windows 11 x64, NVIDIA GeForce RTX 5060 Ti.
cargo test -p xcl --lib networking::tests -- --test-threads=4:9 passed; 0 failed; 0 ignoredcargo test --workspace -- --test-threads=4:893 passed; 0 failed; 42 ignoredSKIPPED:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64),shaders::tests::pso_measurement_compiles_an_exact_synthetic_record(Windows Developer Mode is required),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows)Regression run
Main (
4178e888c0b5be50a2887eda45cdb832763b68a4):PR (
091a69bde6ae1fcec6a6c403c05890b5ad2f993d):Not tested
AI use
Claude Sonnet 5.5): wrote the unit tests, ran the workspace test suite andsmoke.ps1, and verified the diff with an independent auditor subagent.@futurepro62 on GitHub · 2026-11-24 22:38 UTC · original · edited 2026-11-24 22:55 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
091a69b(on its base4178e88).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 --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu: 892 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.null_pointers_and_short_buffers_fail_cleanly,register_callbacks_issue_distinct_nonzero_tokens_and_unregister.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 893 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out five tests where this PR's base has them. They fail on main689f2dbtoo, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures. These areheap_window_out_of_memory_falls_back_to_the_switch_form(#1651) and the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests (follow-up on #1651). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 00:50 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@JJAutoCompare on GitHub · 2026-11-25 01:19 UTC · original
Empirical test report for PR #1828 on
STOR-WINLAB.091a69bde6ae1fcec6a6c403c05890b5ad2f993dorigin/maincommit:5796cc467d80e3dac5d7d231ec34f1b0bebce169git merge-tree --write-tree origin/main HEAD): clean (exit 0, treea2d1804953b2e9f096ef8d0480c215e50df12d72)#[cfg(test)] mod testsofcrates/xcl/src/hle/xgameruntime/networking.rs)Tested
32.0.101.9175,XCL_ADAPTER=A770), AMD Ryzen 7 3800X 8-Core Processor (6 cores / 12 logical CPUs), Microsoft Windows 11 Enterprise Evaluation10.0.26200.9974(Build 26200, UBR 9974),rustc 1.100.0 (0ef1bc386 2026-11-09)/cargo 1.100.0 (3acc79c0c 2026-11-05), debug profile (test/dev), DXC1.9.2609.5 (01b62ad47)viaXCL_DXC_DIR.cargo test --workspace --no-run: succeeded (exit 0).cargo build --workspace: succeeded (exit 0).cargo test -p xcl --lib hle::xgameruntime::networking::tests -- --show-output: 9 passed, 0 failed, 0 ignored (857 filtered out). Both new PR #1828 tests passed:hle::xgameruntime::networking::tests::null_pointers_and_short_buffers_fail_cleanlyhle::xgameruntime::networking::tests::register_callbacks_issue_distinct_nonzero_tokens_and_unregistercargo test --workspace -- --test-threads=4 --show-output(underInvoke-ArcTest.ps1): stopped atxcl(src\lib.rs) with 827 passed, 17 failed, 22 ignored (plus 4SKIPPEDGPU tests, not counted as coverage) due to pre-existing Arc A770 GPU failures.cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output(underInvoke-ArcTest.ps1): 875 passed, 18 failed, 42 ignored across all 20 workspace test targets (exit 1), plus 7SKIPPEDGPU/D3D12 tests (counted in Rust'spassedtally above, not counted as coverage):xcl(src\lib.rs): 827 passed, 17 failed, 22 ignoredtests\e2e.rs: 2 passed, 1 failed, 0 ignored (test_title_runs_and_game_folder_is_untouchedfailed only onD3D12.X: dynamic depth bias via RSSetDepthBiasX (#94);[PASS] XTaskQueue composite + XNetworking + advapi32legacy LSA fallbackpassed)xclbin,bcpack_parity,console_dlls_e2e,console_shaders,disasm_e2e,gpu_compute_e2e,gpu_pso_e2e,heap_probe,low_va,pls_quota,predication_e2e,rpf_e2e,shaders_e2e,sparse_reinit,texture_states,xg_oracle,xcl-testtitlebin, doc-tests): 46 passed, 0 failed, 20 ignored.SKIPPEDGPU/D3D12 tests on this adapter/host (7 total, not counted as coverage):gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask:no wave64gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware:no wave64shaders::tests::pso_measurement_compiles_an_exact_synthetic_record:cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)placed_title_textures_share_vram_and_preserve_pixels:tiled tier < 2test_title_draws_with_a_root_signature_under_the_debug_layer:no d3d12SDKLayers.dllheap_window_out_of_memory_falls_back_to_the_switch_form:no heap windowsuploads_start_from_each_subresources_state:no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D))CreateComputePipelineState: The parameter is incorrect. (0x80070057)inxcl --lib:gpu::dxil::ops_tests::doubles_match_cpu,gpu::dxil::ops_tests::groupshared_barrier_and_atomics_run,gpu::recomp::tests::gpu_clamp_and_omod_per_instruction,gpu_f64_class_compare,gpu_f64_compares_with_nan,gpu_f64_literal_high_word,gpu_f64_math_random,gpu_f64_roots,gpu_f64_rounding_and_conversions,gpu_float_compares_random,gpu_frexp_f64_exp_and_mant,gpu_ldexp_f64,gpu_rndne_f64.xcl --lib:gpu_nonfused_mad_and_mac_prevent_fma_contraction,gpu_ps_image_sample_offset_implicit_lod_between_mips,gpu_valu_16_and_64_bit,gpu_wave64_ps_whole_wave_reductions.tests\e2e.rs:test_title_runs_and_game_folder_is_untouched(RSSetDepthBiasX (#94)).Not tested
d3d12SDKLayers.dll), Tiled Resources Tier 2+ and heap-window paths skipped above.scripts/smoke.ps1; PR #1828 modifies only#[cfg(test)]unit tests).XCL_SAMPLE_*(noXCL_SAMPLE_*variables were set).System32\xgameruntime.dll(Gaming Services is not installed on this host, so XCL's own HLE networking ran).AI use
T3 Code / Antigravity (gemini-4-neon)— fetched PR #1828, built and ran the targeted and workspace test suites onSTOR-WINLAB, parsed the logs, and posted this test 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.