From d484beadb6d0dc6fca73c8c47da512cbc16494d9 Mon Sep 17 00:00:00 2001 From: R Date: Tue, 17 Nov 2026 09:39:53 -0300 Subject: [PATCH 1/2] ci: the lint runs in twelve shards On main's runs 43883027557 and 43991796754 the 60-minute limit cancelled Lint (5/8), then Lint (2/8). Measured over the eight shards of six runs (48 jobs), every shard spends 12 to 15 minutes writing the same compilation database and 17 to 25 analysing its slice on most runners: the slices weigh alike, each 1.2 to 1.7 times its own runner's database, so weighting them would gain little. About one runner in eight runs at half that speed, the database in 26 minutes; its shard took 67 to 72 minutes (runs 44011268560, 44060501712), past 60 and close to the 90 main now allows. Twelve shards cut the slice by a third: such a runner's shard takes about 57 minutes, leaving a third of the 90 spare. --- .github/workflows/library.yml | 14 +++++++++----- AGENTS.md | 8 ++++---- doc/releases/0.1.0.adoc | 1 + 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/library.yml b/.github/workflows/library.yml index de8f9781..89c4d3da 100644 --- a/.github/workflows/library.yml +++ b/.github/workflows/library.yml @@ -490,15 +490,19 @@ jobs: name: Lint (${{ matrix.shard }}/${{ strategy.job-total }}) needs: plan runs-on: ubuntu-24.04 - # A shard took up to 56 minutes on main (run 43689720995) and over 60 on - # webcpporg/webcpp#17 (runs 43757162271, 43809686703, 43893730166), where 60 cancelled - # it: which files a shard draws changes with every file the list gains, and the runners' - # speed varies. + # Every shard writes the same compilation database, then analyses its slice. With eight + # shards, on main's runs 43883027557, 43991796754, 44060501712 and 44061028543, the + # database took 12 to 15 minutes on most runners and the slice 17 to 25: the slices weigh + # alike, each 1.2 to 1.7 times its own runner's database. A runner one in eight times + # runs at half that speed, the database in 26 minutes, so its shard took 67 to 72 minutes, + # and over 60 cancelled Lint (5/8) and Lint (2/8). Twelve shards cut the slice by a third: + # such a runner's shard takes about 57 minutes, the others 30 to 40; 90 leaves a third + # spare for the slower runner and the files to come. timeout-minutes: 90 strategy: fail-fast: false matrix: - shard: [1, 2, 3, 4, 5, 6, 7, 8] + shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] steps: # The whole history, of the superproject and of every library: the banned-word rule reads # every commit, not only the tree. diff --git a/AGENTS.md b/AGENTS.md index 2b55cab0..fc2f2f35 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1733,10 +1733,10 @@ jobs: `external` is `true`, the external libraries, built with Clang 18, whose headers the reference of the library, or of a library it uses, parses (none today). -- **lint:** `tools/lint/lint.sh` in eight shards (`--shard 1/8` to `8/8`), - with wasi-sdk's clang-format and clang-tidy, Node, Clang 18 as b2's default - toolset and the wasip2 and wasip3 toolsets after it (`matrix.py register - clang-18 wasip2 wasip3`), wit-bindgen and the WASI WIT, which the WASI dry +- **lint:** `tools/lint/lint.sh` in twelve shards (`--shard 1/12` to + `12/12`), with wasi-sdk's clang-format and clang-tidy, Node, Clang 18 as + b2's default toolset and the wasip2 and wasip3 toolsets after it + (`matrix.py register clang-18 wasip2 wasip3`), wit-bindgen and the WASI WIT, which the WASI dry runs of the compilation database need; when the plan's `has-emscripten` is `true`, the emscripten toolset after them and emsdk, without its system libraries (`libraries: 'false'`), whose `em++` the emscripten dry run diff --git a/doc/releases/0.1.0.adoc b/doc/releases/0.1.0.adoc index a1bc26d1..008e4dda 100644 --- a/doc/releases/0.1.0.adoc +++ b/doc/releases/0.1.0.adoc @@ -75,6 +75,7 @@ None. * Fixed driven-test execution and descendant cleanup on Windows. * Fixed driven-test executable reuse for Windows and WASI builds. * Improved lint preparation by separating OpenSSL headers from archive builds and upstream tests. +* Changed the CI's lint to twelve shards, which a slow runner no longer takes past its time limit. * Added the user's Jamfiles of webcpp::crypto, tested as fixtures of a test of the tools. * Added same-as: to crypto's user Jamfiles test, which keeps copied programs identical. * Added not-contains: to crypto's user Jamfiles test, which shows the canary is a library's only link error. From b6856507ed77cdfee51d51c55b4e6c2bdde798d9 Mon Sep 17 00:00:00 2001 From: R Date: Tue, 17 Nov 2026 10:06:34 -0300 Subject: [PATCH 2/2] libs/crypto: secp256k1_allocation's control survives -O3 Records webcpporg/crypto's fix/release-allocation-control, whose control calls ::operator new instead of a new-expression that -O3 elided on wasip2 and wasip3, failing secp256k1_allocation and its no-exceptions twin at variant=release. --- libs/crypto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/crypto b/libs/crypto index d242be80..ae937e57 160000 --- a/libs/crypto +++ b/libs/crypto @@ -1 +1 @@ -Subproject commit d242be8022018b89ebd70f754eef17244f572c1c +Subproject commit ae937e5743ce78e97ac2e9983838eca69fbc3f15