Skip to content- Sources: primary
- Summary: ClickHouse builds with Clang source-based coverage in continuous mode, so servers that tests kill still leave profiles, and merges 23 CI shards every 3 hours. On 2026-11-12 master covered 91.8% of 1,257,404 lines and 81.0% of branches. Nightly per-test line data, about 36 billion rows in its CI database, now chooses which tests the sanitizer jobs run for a PR, ignoring regions wider than 40 lines or owned by more than 150 tests. Its ClickGap agent had opened 17 test PRs by 2026-11-03, with 16 merged and about 5,600 newly covered lines. A manager agent reviews the tests, and only a deterministic publishing script holds the GitHub token.
- Why it matters: Per-test coverage turns expensive sanitizer runs from full suites into targeted selections without dropping full-suite runs on cheaper builds.
- Background: Clang offers two instrumentations. SanitizerCoverage calls a callback on every control-flow edge and is what libFuzzer uses. Source-based coverage puts counters on source regions with a mapping to file and line ranges, which llvm-profdata and llvm-cov turn into reports. Branch coverage matters because an if with no else has a false edge that line coverage cannot see.