Skip to content

Add the ci-llvm-coverage label: run the LLVM coverage jobs only - #125647

Merged
alexbakharew merged 3 commits into
masterfrom
abakharew/ci-llvm-coverage-label
Oct 14, 2026
Merged

alexbakharew merged 3 commits into
masterfrom
abakharew/ci-llvm-coverage-label

Conversation

@alexbakharew

@alexbakharew alexbakharew commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Related: #124393

With the ci-llvm-coverage label a pull request runs the LLVM coverage jobs, the stateless flaky checks and nothing else. The ci-coverage label adds the coverage jobs to the normal CI; ci-force-all runs every job. A pull request that only adds tests and needs the coverage report (for example a pull request of the coverage agent) needs neither.

Jobs that run with the label:

  • Style check
  • Build (llvm_coverage_build), and the builds of the flaky checks: Build (amd_binary), Build (amd_debug), Build (amd_asan_ubsan), Build (amd_tsan), Build (amd_msan)
  • Stateless tests (amd_llvm_coverage, ...), Integration tests (amd_llvm_coverage, ...), Unit tests (amd_llvm_coverage)
  • Stateless tests (amd_binary_excluded_from_llvm) and Integration tests (amd_binary_excluded_from_llvm): the tests the coverage shards skip
  • Stateless tests (..., flaky check) for the five builds above: the changed tests under every sanitizer. The coverage shards cannot serve as the flaky check: they run without random settings and sanitizers and never fail the pipeline (functional_tests.py)
  • LLVM Coverage: the merge job and its coverage comment

Every other job is skipped with the reason Skipped, labeled with 'ci-llvm-coverage' - run the LLVM coverage jobs only. ci-no-coverage still wins over the coverage jobs, as it does over ci-coverage: with both labels the arm_binary replacement jobs and Build (arm_binary) run instead of the coverage family.

Merge rule (can_be_merged.py): a pull request with the label can merge only when every changed file is under tests/queries/0_stateless/. Its binary is identical to master's, so the skipped builds, stress tests, fuzzers and performance tests would find nothing new, while the coverage shards run the whole suite in every configuration and the flaky checks run the changed tests under every sanitizer. Any other change blocks the merge with the label, as the other ci-* labels do; unknown changed files block too.

The coverage agent's pull requests (clickgapai, branches covgap/) get ci-llvm-coverage instead of ci-force-all from the label hook (AGENT_PRS).

The label changes nothing without changed files (the hook does not filter then), nothing on master, and nothing in pull requests without the label: a local run of should_skip_job over the 168 jobs of the PR workflow keeps the same job set as before for an unlabeled pull request and for one with ci-coverage.

Machine minutes per push for a pull request that adds one stateless test (CI DB, 2026-10-13):

Labels Jobs Machine minutes
ci-force-all (coverage agent today, PR 124202) 142 about 4,400
ci-llvm-coverage (this PR; coverage family as in PR 125583, flaky checks and builds as in PR 125318) 38 about 1,500

The integration coverage shards are about 590 of the 1,500 minutes; the LLVM Coverage job needs all shard profiles for a complete measurement, so they stay.

The workflow YAML does not change.

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Add the ci-llvm-coverage label: a pull request with it runs only the LLVM coverage jobs, the jobs for the tests excluded from coverage, the stateless flaky checks of the changed tests, and the style check. A pull request that changes only stateless tests can merge with the label.

🤖 Generated with Claude Code


Workflow [PR]
Sync PR [sync-upstream/pr/125647]

Version info

  • Merged into: 26.10.1.2359-master (included in 26.10 and later)

With the label a pull request runs the LLVM coverage family and nothing else:
`Build (llvm_coverage_build)`, the `amd_llvm_coverage` stateless, integration and
unit test shards, the `excluded_from_llvm` jobs with their `Build (amd_binary)`,
and the `LLVM Coverage` merge job. The flaky check of the changed tests runs on
the `amd_binary` build, because the coverage shards run without random settings
and never fail the pipeline. The style check stays. Every other job is skipped.

Made for pull requests that only add tests and need the coverage report, such as
the pull requests of the coverage agent. They use `ci-force-all` so far: about
4,400 machine minutes per push, against about 1,400 with this label.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@mintlify

mintlify Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
ClickHouse-docs 🟢 Ready View Preview Oct 13, 2026, 3:52 PM

@clickhouse-gh

clickhouse-gh Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [2e2dfb6]

Summary: ✅


AI Review

Summary

This PR introduces a dedicated ci-llvm-coverage label, threads it through the PR job filter, mergeability hook, automatic agent labeling, and contributor docs, and also fixes the previously reported ci-no-coverage interaction. I re-checked the current diff, the existing review threads, and the relevant CI hooks, and I do not see any remaining correctness or merge-safety issues.

Final Verdict

✅ No new findings.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Oct 13, 2026
@alexbakharew
alexbakharew requested a review from maxknv October 13, 2026 15:25
…ed; keep the flaky checks

Review: the label narrowed the CI like `ci-functional-test`, but `can_be_merged.py`
did not know it, so a pull request could merge with most checks skipped. Now the
label blocks the merge unless every changed file is under
`tests/queries/0_stateless/`; unknown changed files block too. Such a pull request
has a binary identical to master's, so the skipped builds, stress tests, fuzzers
and performance tests would find nothing new. To run the changed tests under every
sanitizer, the label now keeps all stateless flaky checks with their builds
(`FUNCTIONAL_TEST_FLAKY_CHECK_JOBS`), not only the `amd_binary` one.

The coverage agent's pull requests switch from `ci-force-all` to
`ci-llvm-coverage` (`AGENT_PRS`).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@clickhouse-gh clickhouse-gh Bot added the comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). label Oct 13, 2026
…nt jobs

Review: the `ci-llvm-coverage` rule skipped `COVERAGE_REPLACEMENT_JOBS` before the
replacement rules saw them, so with `ci-no-coverage` on top the coverage family
was skipped and nothing replaced it: a stateless-only pull request would have run
only the style check and the flaky checks and still have been mergeable. Now the
replacement jobs and their build (`COVERAGE_REPLACEMENT_BUILDS`, `Build (arm_binary)`)
pass the rule when `ci-no-coverage` is present and go on to the replacement rules,
as with `ci-coverage` + `ci-no-coverage`.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@alexbakharew
alexbakharew added this pull request to the merge queue Oct 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 14, 2026
@alexbakharew
alexbakharew added this pull request to the merge queue Oct 14, 2026
Merged via the queue into master with commit 62f2c9e Oct 14, 2026
177 checks passed
@alexbakharew
alexbakharew deleted the abakharew/ci-llvm-coverage-label branch October 14, 2026 10:40
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants