Skip to content

main's CI: Clang on x86_64 compiles the test support, codecs' dudect base58 preparation, MSVC lanes' time limit and third-party cache - #63

Merged
pinhopro merged 3 commits into
mainfrom
main-ci-fix
Dec 3, 2026
Merged

pinhopro merged 3 commits into
mainfrom
main-ci-fix

Conversation

@pinhopro

@pinhopro pinhopro commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the three defects of main's run 46916884991, whose Report and Site failed ("Artifact not found for name: report"), so the site deploys again.

1. Lint shards 1, 4, 6, 7, 9, 10 (and the Clang 18 and Clang 22 lanes): posix_memalign is missing exception specification

Not the lint's tooling: a real compile error with Clang on x86_64 Linux. The test support (test/support/counting.hpp of codecs, crypto, secure and hash) replaces glibc's allocation functions noexcept; Clang's <mm_malloc.h> (from <emmintrin.h>, which Boost.URL and Boost.JSON include on x86) then redeclares posix_memalign without an exception specification, which Clang accepts only after a system header's declaration. The same run's Clang 18 and Clang 22 lanes failed to compile the same 16 tests (their jobs passed; the Report would have failed them). GCC's <mm_malloc.h> says throw () and arm64 never includes it, so the local macOS and arm64 Linux lints could not see it. Fix (webcpporg/codecs#2, webcpporg/crypto#21, webcpporg/secure#2, webcpporg/hash#18): include <mm_malloc.h> before the replacements.

2. Own lane (codecs, constant-time, native): dudect base58_checksum_decode |t| 36

The harness, not the library: the base58 cases prepared each class's text by the public conversion, whose early loop exits by the bytes' values left the two classes a different branch history before each measurement. The secret decode has no branch on the text in its x86-64 code. A probe on six hosted runners (Xeon 6975P-C, EPYC 9V45 and 9V74): |t| up to 108 on the three base58 cases before, 1.3 to 4.0 after, every runner. Fix in webcpporg/codecs#2: prepare by the constant-time conversion.

3. MSVC 14.5 cancelled at the 150-minute limit

No hang: the time is spread over the whole build. Since codecs and the formats joined, an MSVC lane updates 25,832 targets (16,034 on main's last green run 44781154690, where MSVC 14.5 took 64 minutes), and a new runner image and new third-party inputs left both MSVC lanes without their third-party cache, so each built OpenSSL five times and libdatachannel twice (about 37 minutes of the lane). MSVC 14.3 took 118 minutes; MSVC 14.5, about 30% slower on its image, reached 25,000 of 25,832 targets at 143 minutes and would have needed about 156. The cancelled job also skips the save of its third-party builds, so every following run would be cold and overrun again.

  • library.yml: the lanes' limit is 210 minutes (a cold MSVC 14.5 run plus a third), with the evidence in the comment.
  • The Lane step has its own limit (195), so that an overrun ends as a failed step and the third-party builds it finished are still saved (!cancelled()), breaking the cold-cache loop.

Sharding the MSVC lanes (as the lint is) is the scalable follow-up if they keep growing.

4. Report: a test under b2's <location-prefix> named no toolset

Found by this PR's first run (47012218351, every lane green): the Report stopped with an input error (exit 2, no report written, so no Site) on secure's and crypto's planted-leak programs, which <location-prefix> builds in <location>/<prefix>/<target>.test/<toolset>/.... tools/report/lanes.py now reads the toolset after such a prefix; a new case of report_test.py (red before, green after). main's runs had stopped before this, at the MSVC lane without XML.

Still failing on main after this PR (pre-existing, masked until now by the Report never judging)

Running the fixed report over that run's 157 lane artifacts gives 10 failures, none caused here:

  • crypto messages/ph_removed, async_seal_removed, seal_removed_call on Clang 18 and Apple Clang 17: their -verify expectations hold Clang 22's knock-on diagnostics.
  • secure declassify_compile_msan (both) on the Clang 18 container: sanitizer/msan_interface.h not found (no compiler-rt headers in the image).
  • crypto constant-time ctgrind and ctgrind_space: memcheck reports a conditional jump on the secret scalar in BearSSL's check_scalar (ec_p256_m62.c:1626, x86-64 only), from P-256 ECDH agree: a dependency finding, left to its owners.

The Report uploads its pages with these failures, so the Site builds and publishes.

Verification

  • x86_64 Linux (Docker, clang++-18): the percent tests failed with the CI's error before and compile after; the Linux lint (amd64) on the affected units.
  • The native constant-time own lane of codecs passes locally; the probe above on hosted x86.
  • tools/ci/matrix_test.py passes; actionlint clean.

🤖 Generated with Claude Code

R added 2 commits December 2, 2026 22:03
…s third-party builds

Since webcpp::codecs and the formats joined, an MSVC lane updates 25,832 targets (16,034
on main's run 44781154690, where MSVC 14.5 took 64 minutes with its third-party cache).
On main's run 46916884991 a new runner image and new third-party inputs left both MSVC
lanes without that cache, so each built OpenSSL in five configurations and libdatachannel
in two, about 37 minutes of the lane: MSVC 14.3 took 118 minutes and the 150-minute limit
cancelled MSVC 14.5 at 25,000 of its 25,832 targets, about 156 minutes at its pace. A
cancelled job skips the save of the third-party builds, so the next run would build them
again and overrun again: the Lane step now has its own limit, below the job's, which ends
an overrun as a failed step, and the save still runs.
…lset

The constant-time lanes of secure and crypto give each planted leak, a program of a source
another program has too, a directory of its own with <location-prefix>, so b2 builds it in
<location>/<prefix>/<target>.test/<toolset>/...: the report found no toolset there and
stopped with an input error (exit 2, no report written), which failed the Report and the
Site of pull request #63's run 47012218351 (main's runs had stopped before it, at the MSVC
lane with no XML). The report now reads the toolset after one such prefix; a case of
report_test.py moves a passing and a failing test's directory under a prefix.
@pinhopro
pinhopro merged commit 7d372c4 into main Dec 3, 2026
380 of 385 checks passed
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