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. 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