XGameRuntime: preserve failure HRESULTs in Win32 conversion #1129
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!1129
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1129"
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?
@anakatt on GitHub · 2026-11-24 12:10 UTC · original
anakatt:util/preserve-failure-hresults→main· +4 −2 · 2 files · 1 commits · openI make
hresult_from_win32follow Windows' HRESULT_FROM_WIN32 contract: zero and existing failure HRESULTs pass through; positive Win32 errors are converted. Previously, the helper replaced an existing HRESULT's facility bits withFACILITY_WIN32.What is in it
util.rs: preserve inputs that are nonpositive when interpreted as HRESULT, with a contract comment.networking.rs: extend the existing certificate regression to check thatwin32_failure_hrpreservesCERT_E_UNTRUSTEDROOT.Tested
I ran debug tests on Windows 11 Pro ARM64 10.0.26100.1742 in UTM (4 GiB RAM, virtual
virt-10.0CPU, Red Hat VirtIO GPU DOD), using Rust 1.100.0x86_64-pc-windows-msvcand Visual Studio 2022 Build Tools. The guest used main47efa2ecea0a12934719ae69b81930cf02a4b1c3plus the source changes committed asd6b6c50276f8a1e401692235718d2134c34cd5d5.cargo test --locked -p xcl --lib cert_verification_fails_closed_on_malformed_pins_and_zero_win32_errors: before the fix, 0 passed, 1 failed, 0 ignored; afterward, 1 passed, 0 failed, 0 ignored. Both runs filtered out 718 tests. The regression exposed0x800B0109being changed to0x80070109.cargo test --locked -p xcl --lib util::tests -- --test-threads=4: 5 passed, 0 failed, 0 ignored, 714 filtered out.No
SKIPPEDoutput.Not tested
I have not run the full workspace suite, native x64 Windows hardware, D3D12 GPU execution, live TLS failure scenarios or a real game title. These tests cover conversion and the existing certificate validation regression, not a live certificate-chain failure.
Regression run
Not run. This remains a draft pending the required real-title
xcl-smokeblocks from main and this PR's clean head, using the same title and duration.AI use
I used omp (
openai-codex/gpt-6-astra) to investigate, implement the fix and regression, run the Windows tests, and prepare this PR.@eizispark on GitHub · 2026-11-24 12:46 UTC · original
Hardware test report — commit
d6b6c50Verified clean merge with
main(47efa2e) ond6b6c50276f8a1e401692235718d2134c34cd5d5: pass.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), release + test profilecargo test --workspace --no-fail-fast -- --test-threads=4:741 passed, 0 failed, 41 ignored(GPU tests skipped on this adapter:none), includinghle::xgameruntime::networking::tests::cert_verification_fails_closed_on_malformed_pins_and_zero_win32_errorsRegression run
main(47efa2e):PR (
d6b6c50):Not tested
AI use: Antigravity (Google DeepMind), Gemini (exact version string not exposed in runtime environment) — ran the workspace test suite and 60 s retail smoke check on the hardware above and formatted this report.
@DavidM1911 on GitHub · 2026-11-25 08:02 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!
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.