Skip to content

asio and cobalt: their tests and texts under the -O3 release link - #19

Merged
pinhopro merged 3 commits into
mainfrom
tools/release-link-followups
Nov 16, 2026
Merged

pinhopro merged 3 commits into
mainfrom
tools/release-link-followups

Conversation

@pinhopro

Copy link
Copy Markdown
Contributor

Title: asio and cobalt: their tests and texts under the -O3 release link

Records the asio and cobalt commits that bring their tests and texts to the release link at -O3 of #18:

  • asio (asio: the worker page, tests and texts under the -O3 release link asio#4): worker_page.html no longer requires Emscripten's doPollAsync of browser_worker_move_failure, which never polls and whose release link drops it; the optimized_link builds, now byte-identical to release, are gone, the bridge's release tests stay as bridge_release_exceptions_on/off; the Asyncify stack is measured again (debug is the deepest build, 1,168 bytes; release 388) and stays 8192, with the reason restated; the README and guides no longer pass linkflags=-O3 to a release build or say b2 links one without optimization.
  • cobalt (cobalt: the no-exceptions driver and stack probe under the -O3 link cobalt#2): the no-exceptions driver recognises native code's abort in both builds, Aborted(native code called abort()) with assertions and Aborted() without, and nothing else; cobalt_stack_optimized_link_* is gone.

Verification

Local, macOS arm64, Emscripten 6.0.11, Node 26.13.0: every emscripten lane of the two libraries, ordinary and own, from scratch in its own build directory with the CI's options, in release and in debug, passed (tools/report/report.py); both libraries' pages built (b2 -a libs/asio/doc libs/cobalt/doc); tools/lint/lint.sh with wasi-sdk's clang-format and clang-tidy: clean, every rule, clang-tidy over 834 translation units.

No CI was run.

  • CODING-GUIDELINES.md: chapter 15's asio entry describes the Asyncify stack and the published sizes under the -O3 release link (debug is the deepest build; 8192 stays the default and floor the libraries on asio are tested against).

Follow-ups, not in this pull request

  • third_party/Jamfile globs libs/openssl for *.c, *.h, ... down to its nested submodules, which tools/openssl/pin.json omits: in a checkout where they are initialized, oqs-provider's oqs-template directories named *.c and *.h stop every native b2 run at load ("Unable to find file or target named libs/openssl/oqs-provider/oqs-template/test/test_common.c"), and OpenSSL's clean-tree check fails on them. The doc build and the lint were run here with that directory set aside and diff.ignoreSubmodules=dirty for the run.

🤖 Generated with Claude Code

pinhopro pushed a commit to webcpporg/trystero that referenced this pull request Nov 15, 2026
…ce does

A room bound a peer over a shared connection only once the peer's
presence for the room had come on that connection. Trystero sends a
room's presence once per connection, from the open of its channel, and
Chrome can drop what a page sends on an answering channel as it opens:
in the interop lane's delayed-open scenario, run in 2-CPU Linux
containers, Chrome logged "Send failed INVALID_STATE" for both presence
frames and the native peer's SCTP received neither, 8 runs of 240. The
room whose own connection the page closed as the second then never
bound: the page's frames of that room were kept and expired, and its
announcements were claimed by the live connection and bound nothing.
That is the CI failure of webcpporg/webcpp#19.

A room frame of a local room's token that the connection keeps now
records the token as the remote's advertisement, below the bound of 64
tokens (a frame never ends the connection for a 65th), and the room
binds on it. Only the peer writes to its connection, so a forged
announcement still binds nothing. Without the change, connection's
a_kept_frame_advertises_its_token fails, and so do shared's
a_lost_presence_is_replaced_by_the_peers_frames, which replaces
binding_needs_the_peers_own_presence, and
frames_before_presence_bind_their_room, which replaces
frames_before_presence_are_kept; connection's
a_kept_frame_never_advertises_a_65th_token holds the bound. A kept @_leave
still discards what came before it where a room keeps frames without
binding, during the lower id's refusal, which
a_kept_leave_discards_what_came_before now sets up. The scenario then
passed 480 runs of 480 in the same containers.
@pinhopro
pinhopro merged commit 45a90e9 into main Nov 16, 2026
324 of 326 checks passed
@pinhopro
pinhopro deleted the tools/release-link-followups branch November 17, 2026 04:05
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