XGameRuntime: preserve failure HRESULTs in Win32 conversion #1120
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by anakatt on 2026-11-24T12:10:50Z.
I 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.Imported from ivall/xcl. Originally posted by eizispark on 2026-11-24T12:46:18Z.
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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T08:02:21Z.
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!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:40:24Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:53:01Z.
Triage (#1607) – head
d6b6c50No open or merged PR changes
util::hresult_from_win32.No problems found in the diff:
(code as HRESULT) <= 0matches the WindowsHRESULT_FROM_WIN32macro, and the new assertion coverswin32_failure_hrpassing a CERT_E_* HRESULT through. The failing check is the PR description check.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.