compat-common: XTaskQueue / XAsync conformance scenarios as tests (resubmission of #48) #211
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
library
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/omonkeyz--xbox-emulator!211
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/211/head"
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?
@QuentinDanblon on GitHub · 2026-11-23 02:15 UTC · original
QuentinDanblon:pr/xtq-conformance→main· +2344 −0 · 4 files · 1 commits · closed without mergingLibrary / area: compat-common tests (XTaskQueue / XAsync). No runtime code.
Exports changed (exports.txt rows): none
Source of the behaviour: libHttpClient
TaskQueueTests.cppandAsyncBlockTests.cpp(MIT, @c5007fd9), ported as scenarios against the public API, no code copied. Each scenario is also run against the PCxgameruntime.dll10.0.26100.9656. This is the PC runtime, not a console.Resubmission of #48, as you asked there: branched from the current
main(ad24144), comment lines stripped (the one trailing comment too), rerun against the currentrt.rs,DIFFERSrechecked entry by entry. Tests only: 3 new files and oneTHIRD_PARTY/CREDITSline, +2,344. I could not make it a few hundred lines without cutting scenarios; say if you want it in slices.tests/support/xtq.rsApiwrapper over the interface slotstests/gdk_xtaskqueue_conformance.rsDIFFERStests/gdk_xtaskqueue_conformance_real.rsResults on
ad24144DIFFERS)The default run is stable here: 4 runs out of 4 on this base, and 6 out of 6 earlier tonight on
2eda8b0with the samert.rs.DIFFERS, rechecked on the currentrt.rsNone of the 25 entries is stale. I ran each one alone 5 times with
TOMBOX_XTQ_ALL=1and compared the failure with the written reason:verify_get_async_status_no_deadlockdoes not finish (5 / 5, 40 s timeout).verify_cancellationfails 4 / 5,verify_wait_for_completion1 / 5,verify_no_write_after_get_status_race0 / 5 alone (it failed under load before).Reasons reworded after measuring the cause on the PC runtime:
XAsyncCancelcompletes the call itself withE_ABORT; the PC runtime leaves it pending until the provider completes it;verify_get_async_status_no_deadlock: a call begun on a block whose previous call has just completed can lose its state;verify_wait_for_completion: only a completed call with a result is affected.Relation to #210
Independent, both are on
main. With thert.rsof #210, three entries pass (10 runs each, alone):verify_get_async_status_no_deadlock,verify_wait_for_completion,verify_no_write_after_get_status_race. The three cancel scenarios still fail, as #210 says. Whichever lands second, I will send the three-line follow-up that removes those entries fromDIFFERS.The 19 other entries, by area:
XTaskQueueRegisterWaiterreturnsE_NOTIMPL(5), terminate and composite behaviour (4),XAsyncreturn codes (5), and one each forXTaskQueueDuplicateHandle, dispatch on a pool port, close with queued callbacks, the monitor port and the pool size. The list is in the file with one line each.No comment lines added (PR gate: 4 files checked, 0 problems).
cargo test -p compat-common --release --test gdk_xtaskqueue_conformance --test gdk_xtaskqueue_conformance_realpassesmissingwith a note🤖 Generated with Claude Code
@omonkeyz on GitHub · 2026-11-23 02:22 UTC · original
Applied in
9a782d2(merged ina4c2355) with your authorship kept, thanks. Both conformance targets pass here (60/60 each). The PC-runtime target ran against the installed xgameruntime.dll. The 25 DIFFERS scenarios are now an OPEN entry in docs/BLOCKERS.md, so the gaps are tracked there too.Pull request closed