Repository navigation
Conversation
libHttpClient stores *bufferUsed before returning E_PENDING (and on failure HRESULTs). Leaving the out-parameter untouched kept a caller's sentinel. Same class as GetResultSize (xcl-dev#1201). Assisted-by: Cursor Auto (Composer) Co-authored-by: Cursor <cursoragent@cursor.com>
|
Independent verification on current Machine: Windows 11, Ryzen 9 7900X; Rust stable MSVC, debug.
AI use: test runs by Devin (Cognition, SWE-2); no code changes. |
|
Regression run of Against the limits in CONTRIBUTING.md: 99 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
|
Thanks @Toons29 — pasted both of your |
|
CI is stuck on |
|
Full workspace run (listed under Not tested). Setup: RTX 3060 12 GB (32-lane waves, driver 32.0.16.2101), Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2609.5, debug build. Head c3aa9bd. Result: cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED: 2 GPU tests for no wave64 (expected on this card). Not tested: live libHttpClient against the system XGameRuntime. AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report. |
|
Thanks @jennydeth — copied your workspace counts into Tested (742 passed, 0 failed, 41 ignored. SKIPPED: 2 GPU tests for no wave64 (expected on this card)). |
…ream xcl-dev#1201 + xcl-dev#1205 + xcl-dev#1188 + xcl-dev#1176, verbatim Windows + Linux twin) Windows hle/xgameruntime/xasync.rs hunks are verbatim (reference-only, cfg(windows)-only, 0 tests run on Linux): cherry-pick -n of the four heads conflicted (1201/1205 append tests at the same site), so the four hunks were applied by hand and every non-test hunk verified present. Linux live path hle/xuser_linux.rs (win64 ABI, xtaskqueue_linux queues) gets the twin port, no pc() legs exist there: - xcl-dev#1201: XAsyncGetResultSize writes *size = 0 while pending and unconditionally on Finished (was: only when status >= 0). - xcl-dev#1205: XAsyncGetResult writes *used = 0 on Invalid, pending-active, and failed-active arms before every early return. - xcl-dev#1188: GetResult preserves non-zero success HRESULTs (zero-payload arms return h.status, payload arm returns status unless the provider failed). - xcl-dev#1176: XAsyncComplete wakes GetStatus waiters (notify_all) before submitting the completion callback, so a MODE_IMMEDIATE callback that syncs with a waiter no longer deadlocks. Failing-first: all four new twin tests FAILED pre-fix (sentinel unchanged / S_OK instead of S_FALSE / 1 s waiter timeout), green post. Twin tests drop ASYNC_TEST_LOCK (no such lock on the Linux twin) and use a local begins_without_work helper, xtaskqueue_linux queue calls.

XAsyncGetResultreturnedE_PENDING(and some failure HRESULTs) without writing*used. libHttpClient always writes*bufferUsedfirst (0 when there is no result yet), so a caller's leftover sentinel could look like a real length.Related to #1201 (
GetResultSize); this coversGetResult's*usedout-parameter. Open #1188 is about preserving non-zero success HRESULTs, not this.What is in it
crates/xcl/src/hle/xgameruntime/xasync.rs: write*used = 0on pending and failure paths; unit test with a0xDEADsentinelTested
c3aa9bdf81c584411922271b58a6db7e8786de37(clean tree)cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED: 2 GPU tests for no wave64 (expected on this card)SKIPPED: 2 GPU tests for no wave64 (expected on this card)Regression run
scripts/smoke.ps1from @Toons29 (RX 9070, 60 s, same title/time; blocks as printed):Not tested
cargo test --workspaceAI use