Skip to content

Validate asynchronous resolver and peer recovery ordering - #12

Merged
pinhopro merged 2 commits into
mainfrom
work/asio-resolver-test-order
Nov 8, 2026
Merged

pinhopro merged 2 commits into
mainfrom
work/asio-resolver-test-order

Conversation

@pinhopro

@pinhopro pinhopro commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

The collection CI exposed timing assumptions in two tests. A WASIp3 localhost lookup can finish during the first poll_one(), before cancellation or context destruction. A Trystero peer can report its own recovery before the other side completes the handshake. Both valid orderings previously produced false failures.

Update Asio to distinguish already delivered results from pending operations, with a deterministic immediate-result regression and the existing pending cancellation, shutdown and allocation controls. Update the Trystero relay-fault setup to require fresh, currently joined peers on both sides within the unchanged deadline, followed by the existing fresh round trip. A controlled one-way handshake delay exercises the previous failure on both backends. Production library headers, Boost and SDK code are unchanged.

Local validation reproduced each test failure before correction. Resolver validation passed 20 executions across WASIp2/P3, exception modes and cooperative threads, 11 affected clang-tidy profiles and strict documentation. Fresh full interoperability suites passed 26 browser and 30 native scenarios. Changed-file checks and independent reviews passed. Asio's own remote run passed all 29 XML lanes. The final collection run 42427424028 passed all 133 audited XML lanes, lint, tool tests, documentation and site assembly.

The separate native two-room OperationError from run 42414092998 remains under investigation. Trystero fixtures now retain RTCError fields while preserving fatal console errors; the diagnostics and passing local repeats are not claimed as a fix. On 2026-11-08 the owner explicitly approved merging and publishing this green candidate with that investigation still open. The intermittent error is not claimed as fixed.

Library changes: webcpporg/asio#2 and webcpporg/trystero#3.

@pinhopro pinhopro changed the title Make WASIp3 resolver tests independent of localhost timing Validate asynchronous resolver and peer recovery ordering Nov 7, 2026
@pinhopro
pinhopro merged commit d0a501a into main Nov 8, 2026
165 checks passed
@pinhopro
pinhopro deleted the work/asio-resolver-test-order branch November 8, 2026 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant