Skip to content

tools/report: size tables count as what a lane built; libs/crypto: dudect's harness and hosted runners - #41

Merged
pinhopro merged 2 commits into
mainfrom
fix/ct-ci
Nov 20, 2026
Merged

pinhopro merged 2 commits into
mainfrom
fix/ct-ci

Conversation

@pinhopro

Copy link
Copy Markdown
Contributor

Fixes the two causes of the red Report on crypto's main CI (run 44690336353). The superproject's main CI reported the same five failures (run 44658084479).

1. The sizes own lanes were reported as empty

  • crypto's own lane sizes builds webcpp.program-sizes tables alone: release programs and <name>.sizes.md, no test and no example.
  • tools/report/lanes.py counted only tests and examples as what a lane built, so all four sizes lanes failed with "the lane built no test and no example".
  • A size table the lane wrote now counts, both for the lane and for its library.
  • A lane that writes no test, no example and no size table still fails as empty. The message now names all three. This still catches a table that b2 skipped.
  • A new sample, native-sizes, records a planted library sized whose own lane builds only a size table. The new case in report_test.py was seen failing first, with the same message as the CI. The CI's own native.crypto.sizes.xml now reports clean.

2. dudect_bearssl on the x86-64 runner (libs/crypto, webcpporg/crypto#9)

  • The cause was the dudect harness: its preparation copied the two classes' inputs from different places, and the measured call inherited that difference.
  • It is not a leak: no secret branch or index is in clang 18's x86-64 code of equal or of BearSSL's ChaCha20-Poly1305 path.
  • Not runner noise alone either: diagnostic runs on four processors measured it.
  • libs/crypto is bumped to the fix. CODING-GUIDELINES.md records the ruling of 2026-11-20 beside the constant-time decision:
    • The two classes now differ in the secret's bytes alone.
    • A runner GitHub hosts prints dudect's |t| without judging it, while memcheck, MemorySanitizer and dudect_planted stay judged there.

Verification

🤖 Generated with Claude Code

R added 2 commits November 20, 2026 05:29
…pto's own lane sizes is no longer an empty lane

The own lane sizes of crypto builds webcpp.program-sizes tables alone: release programs and
<name>.sizes.md, no test and no example. The report counted only tests and examples as what a
lane built, so every CI run, crypto's and the superproject's, failed with "the lane built no test
and no example" on its four targets. A size table the lane wrote now counts, for the lane and for
its library; a lane that wrote none, and no test or example, still fails as empty, which catches
a table b2 skipped. The sample native-sizes, recorded from a planted library sized, shows it.
… a hosted runner prints dudect's |t| (gitlink aaefe04)

The CI's x86-64 failures of dudect_bearssl were the harness's: its preparation copied the two
classes' inputs from different places, and the measured call inherited the difference. The
ruling of 2026-11-20, with its measurements, is in CODING-GUIDELINES.md beside the constant-time
decision: the preparation now differs by class in the secret's bytes alone, and a runner GitHub
hosts prints dudect's |t| without judging it, where memcheck, MemorySanitizer and dudect_planted
stay judged.
@pinhopro
pinhopro merged commit 6189e11 into main Nov 20, 2026
4 of 12 checks passed
@pinhopro
pinhopro deleted the fix/ct-ci branch November 20, 2026 10:28
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