Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
684c4fe
build: adopt Wasmtime 50.0.1 and fix validation failures [skip ci]
Nov 3, 2026
91af39e
build: integrate Beast backends and complete CI validation coverage […
Nov 3, 2026
14faa5f
test: pin final Beast cancellation and startup regressions [skip ci]
Nov 3, 2026
a8064a1
test: close Beast environment coverage and fix annotated accessor lin…
Nov 3, 2026
adb5fa3
test: cover Beast browser modes and HTTP fixture ordering in CI [skip…
Nov 3, 2026
5bb4825
test: pin bounded Beast WASI client startup checks [skip ci]
Nov 3, 2026
55a72c0
fix: restore MSVC overlay precedence and static Context assembly [ski…
Nov 3, 2026
6d7dda7
build: unify TLS providers and complete Asio Beast review fixes
Nov 3, 2026
e80ffab
Integrate checked WASIp2 pollable backend and validation
Nov 3, 2026
15e2f44
Record WASIp2 cross-target regression evidence
Nov 3, 2026
f4162d3
Plan remaining Asio implementation and capability guards
Nov 3, 2026
0da952f
Complete WASI networking and shared TLS capability integration
Nov 3, 2026
008a47b
Cover supported Asio profiles in recurring test lanes
Nov 3, 2026
ad09287
Record completed Asio capability checks and reviews
Nov 3, 2026
3b2bf44
Fix full lint coverage for configured OpenSSL consumers
Nov 3, 2026
080230c
Keep incremental lint preparation from running consumers
Nov 3, 2026
d7a6614
Validate browser startup under delayed readiness
Nov 3, 2026
38761ba
Include Config in the Asio Windows overlay fixture
Nov 3, 2026
6f0604c
tools/test: Align Cobalt SSL guards with WASIp2 support
Nov 3, 2026
31982c6
asio: Preserve Windows datagram error semantics in tests
Nov 3, 2026
52c1120
tools/drive: Preserve executables and contain Windows processes
Nov 3, 2026
ef820f8
tools/openssl: Separate header preparation from archive builds
Nov 4, 2026
3d2a5d8
tools/boost: Bound WASIp2 tests without truncating finite workloads
Nov 4, 2026
fbd1d82
trystero: Integrate bounded native channel handoff
Nov 4, 2026
303708d
trystero: Align handoff notes with the prepared release
Nov 4, 2026
23b4ccb
trystero: Integrate verified handoff test cleanup
Nov 4, 2026
d473d65
beast: Integrate portable host TLS test driver
Nov 4, 2026
c6a6219
tools/test: Distinguish OpenSSL header and archive stages
Nov 4, 2026
237a4ed
beast: Integrate bounded Wasmtime compilation in tests
Nov 4, 2026
d48fad3
drive: Quote diagnostic labels for the Windows shell
Nov 4, 2026
1c1bfa7
trystero: Integrate portable queued allocation witness
Nov 4, 2026
44a2ee0
lint: Prepare verified RTC headers for every consumer variant
Nov 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 79 additions & 41 deletions .github/workflows/library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
# runs b2 declared-lanes and writes the matrix of own lanes, those a library
# declares with webcpp.lane, such as its oracle's, and says whether a library
# needs libraries that webcpp does not build yet (external), trystero's
# libsecp256k1, libdatachannel and OpenSSL, which the CI's actions of those names
# install, until webcpp builds them from third_party/.
# libsecp256k1, installed by its action. B2 builds OpenSSL and
# libdatachannel from pinned sources with one provider per program.
# lanes one job per lane, which runs the lane command, b2 -a --dump-tests
# --out-xml=<lane>.xml for one toolset, and uploads the XML. With --out-xml, b2
# exits 0 even when a test fails: the report gives the verdict. A wasip2 or
Expand Down Expand Up @@ -145,6 +145,15 @@ jobs:
persist-credentials: false
path: libs/${{ inputs.library }}

# Only these pinned nested sources are needed. Do not fetch the unused
# JSON fixtures or the benchmark repository's unrelated submodules.
- &transport-sources
name: Check out the transport source dependencies
shell: bash
run: |
git -C third_party/libs/libdatachannel submodule update --init \
deps/libjuice deps/libsrtp deps/plog deps/usrsctp

- &boost
uses: ./tools/ci/actions/boost

Expand Down Expand Up @@ -216,6 +225,11 @@ jobs:
- *superproject-for-library
- *make-room
- *library
- name: Verify Windows driven-test process cleanup
if: runner.os == 'Windows'
timeout-minutes: 5
run: python tools/drive/drive_test.py
- *transport-sources
- *boost

# What a WASI lane installs, which the own-lanes job installs too, by these anchors, for an
Expand Down Expand Up @@ -252,30 +266,15 @@ jobs:
if: matrix.node
uses: ./tools/ci/actions/node

# The libraries a library of the lane needs and webcpp does not build yet, for an entry
# that says external, which the own-lanes job installs too, by these anchors: OpenSSL
# first, which libdatachannel is built against; libsecp256k1, for emscripten too, after
# emsdk, on an entry that has it; and libdatachannel, with the lane's compilers, since a
# program shares the types of its C++ API. Only the native backend needs OpenSSL and
# libdatachannel, so an entry on emscripten has neither.
- &openssl
if: matrix.external && !matrix.emsdk
uses: ./tools/ci/actions/openssl

# libsecp256k1 remains external. OpenSSL and libdatachannel are source-built
# by B2 with the consuming target's toolchain and threading properties.
- &secp256k1
if: matrix.external
uses: ./tools/ci/actions/secp256k1
with:
cc: ${{ matrix.cc }}
emscripten: ${{ matrix.emsdk }}

- &libdatachannel
if: matrix.external && !matrix.emsdk
uses: ./tools/ci/actions/libdatachannel
with:
cc: ${{ matrix.cc }}
cxx: ${{ matrix.cxx }}

# The image a container lane runs b2 in (its entry's container), which the container job
# built and cached, restored from the cache, so that the lane builds none.
- if: matrix.container
Expand Down Expand Up @@ -326,21 +325,64 @@ jobs:
- *superproject-for-library
- *make-room
- *library
- *transport-sources
- *boost
- *wasi-sdk
- *wasmtime
- *wit-bindgen
- *wasi-wit
- *emsdk
- *node
- *openssl
- *secp256k1
- *libdatachannel

# The pinned chrome-headless-shell, as CHROME, for a lane whose driver meets a browser
# (its entry's chrome), as trystero's interop does.
- if: matrix.chrome
uses: ./tools/ci/actions/chrome
with:
product: ${{ matrix.library == 'beast' && 'chrome' || 'chrome-headless-shell' }}

- name: Build the native Beast interoperability peer
if: matrix.library == 'beast' && (matrix.lane == 'browser' || matrix.lane == 'browser-node')
shell: bash
run: |
python3 tools/ci/matrix.py register clang-18
b2 --user-config=.local/user-config.jam \
libs/beast/test/browser/peer//native_peer-program \
toolset=clang-18 threading=multi -j2

# This embedding adds a private test CA through Wasmtime's supported host hook.
# Stock Wasmtime uses its bundled public roots and has no CLI test-CA option.
- name: Restore the isolated WASI HTTPS host fixture
if: matrix.library == 'beast' && matrix.lane == 'applications-host-tls'
id: host-tls-cache
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: .local/beast-host-tls
key: beast-host-tls-${{ runner.os }}-${{ runner.arch }}-rust-1.97.1-${{ hashFiles('libs/beast/test/applications/host-tls/Cargo.lock', 'libs/beast/test/applications/host-tls/Cargo.toml', 'libs/beast/test/applications/host-tls/src/**') }}

- name: Build the isolated WASI HTTPS host fixture
if: matrix.library == 'beast' && matrix.lane == 'applications-host-tls'
shell: bash
run: |
rustup toolchain install 1.97.1 --profile minimal
cargo +1.97.1 build --locked --jobs 2 \
--manifest-path libs/beast/test/applications/host-tls/Cargo.toml \
--target-dir .local/beast-host-tls
echo "WEBCPP_WASI_TLS_FIXTURE=$PWD/.local/beast-host-tls/debug/webcpp-beast-host-tls-fixture" >> "$GITHUB_ENV"

- name: Save the isolated WASI HTTPS host fixture
if: matrix.library == 'beast' && matrix.lane == 'applications-host-tls' && steps.host-tls-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: .local/beast-host-tls
key: ${{ steps.host-tls-cache.outputs.cache-primary-key }}

- name: Verify Beast application inventory and HTTP fixtures
if: matrix.library == 'beast' && matrix.lane == 'applications-host-clients' && matrix.platform == 'wasip2'
run: |
python3 libs/beast/test/applications/inventory_test.py
python3 libs/beast/test/applications/driver_test.py

# It registers its toolset in .local/user-config.jam, prints its b2 command and runs it.
- name: Own lane
Expand All @@ -367,6 +409,18 @@ jobs:
path: bin/**/*.sizes.md
if-no-files-found: ignore

- name: Upload OpenSSL upstream test evidence
if: always() && matrix.library == 'asio' && startsWith(matrix.lane, 'openssl-upstream')
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: openssl-upstream-${{ matrix.id }}
path: |
bin/**/upstream-tests.log
bin/**/upstream-tests.json
bin/**/build.json
if-no-files-found: warn
retention-days: 7

docs:
name: Documentation
needs: plan
Expand All @@ -379,6 +433,7 @@ jobs:
- *superproject-for-library
- *make-room
- *library
- *transport-sources
- *boost

- uses: ./tools/ci/actions/node
Expand All @@ -402,20 +457,11 @@ jobs:
# The libraries the library, or one it uses, needs and webcpp does not build yet (the
# plan's external), whose headers its reference parses with the native backend's: with Clang 18,
# the compiler that parses them.
- if: needs.plan.outputs.external == 'true'
uses: ./tools/ci/actions/openssl

- if: needs.plan.outputs.external == 'true'
uses: ./tools/ci/actions/secp256k1
with:
cc: clang-18

- if: needs.plan.outputs.external == 'true'
uses: ./tools/ci/actions/libdatachannel
with:
cc: clang-18
cxx: clang++-18

# clang++ reads the headers for tools/doc/doc_comments.py; the Boost check compiles with
# the same Clang. The index links each library's page where the site serves it.
# A page whose library needs external libraries requires them, as a lane does, and is
Expand All @@ -432,8 +478,7 @@ jobs:
fi
if [ "$EXTERNAL" = true ]; then
request=(webcpp-require-external=on "${request[@]}")
for variable in SECP256K1_ROOT SECP256K1_EMSCRIPTEN_ROOT LIBDATACHANNEL_ROOT \
OPENSSL_ROOT; do
for variable in SECP256K1_ROOT SECP256K1_EMSCRIPTEN_ROOT; do
if [ -n "${!variable-}" ]; then
request=("-s$variable=${!variable}" "${request[@]}")
fi
Expand Down Expand Up @@ -504,6 +549,7 @@ jobs:
persist-credentials: false
path: libs/${{ inputs.library }}
fetch-depth: 0
- *transport-sources
- *boost

- uses: ./tools/ci/actions/wasi-sdk
Expand All @@ -526,21 +572,12 @@ jobs:
# lint-external), which the dry runs name and clang-tidy reads, built with Clang 18; and
# libsecp256k1's emscripten build too when a library declares emscripten, for the commands
# of that target.
- if: needs.plan.outputs.lint-external == 'true'
uses: ./tools/ci/actions/openssl

- if: needs.plan.outputs.lint-external == 'true'
uses: ./tools/ci/actions/secp256k1
with:
cc: clang-18
emscripten: ${{ needs.plan.outputs.has-emscripten }}

- if: needs.plan.outputs.lint-external == 'true'
uses: ./tools/ci/actions/libdatachannel
with:
cc: clang-18
cxx: clang++-18

# The compilation database is what b2 compiles with its default toolset, the first that
# user-config.jam registers, Clang 18, and, for what only a WASI target or emscripten
# builds, with the toolset of that target: a WASI dry run generates the bindings its
Expand Down Expand Up @@ -570,6 +607,7 @@ jobs:
shard: [1, 2, 3, 4, 5, 6, 7, 8]
steps:
- *superproject
- *transport-sources
- *boost

- uses: ./tools/ci/actions/wasi-sdk
Expand Down
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,9 @@
[submodule "libs/asio"]
path = libs/asio
url = ../asio.git
[submodule "libs/beast"]
path = libs/beast
url = ../beast.git
[submodule "third_party/libs/libdatachannel"]
path = third_party/libs/libdatachannel
url = https://github.com/paullouisageneau/libdatachannel.git
Loading
Loading