Skip to content

Correct nightly coverage selection and share PR test manifests - #118223

Merged
fm4v merged 21 commits into
masterfrom
nightly-coverage-test-selection
Sep 24, 2026
Merged

fm4v merged 21 commits into
masterfrom
nightly-coverage-test-selection

Conversation

@fm4v

@fm4v fm4v commented Sep 5, 2026 •

Copy link
Copy Markdown
Member

Rework coverage-based stateless test selection for pull requests and make the nightly coverage export verifiable.

Selection (ci/jobs/scripts/find_tests.py, new coverage_selection.py, test_selection_config.py):

  • Coverage paths are normalized during selection: both bare and historical ./-prefixed spellings are queried and merged, so current coverage builds (bare repository-relative paths) are no longer missed. Only changed lines under src/, programs/ and base/ are considered.
  • Only precise line/hunk regions are admitted (at most 40 lines wide, at most 150 owning tests). Keyword fallback, sibling-directory, indirect-call and broad candidates are removed, and so is the fixed list of harness smoke tests injected for CI script changes (_STATELESS_HARNESS_PATHS, STATELESS_HARNESS_SMOKE_TESTS).
  • min_depth is treated as an LLVM function entry count rather than a call depth. Entry-count scoring runs only in shadow mode and does not affect execution.
  • Changed tests (including surviving owners of deleted or renamed fixtures) and previously failed tests are mandatory. Everything is capped by a temporary ceiling of 250 tests; mandatory overflow is kept and reported.
  • Coverage snapshots are validated for freshness (last 3 snapshots per shard within 14 days, one within 72 hours, at least 100 tests), and a live canary exercises the production query and scorer on a region picked from current coverage. PRs without eligible source changes skip coverage entirely.

Per-job selection with pinned inputs (find_tests.py, test_selection_manifest.py):

  • Each targeted job selects its own tests inside the job; nothing is shared between jobs through S3. All CIDB inputs are pinned to one cutoff, so the jobs of an attempt select the same tests: previous failures count only checks started before the cutoff, and coverage snapshots are read as of the cutoff minus one hour, so an export still inserting rows is ignored.
  • The first attempt uses the workflow start time resolved by the config job. A rerun, including a rerun of failed jobs only, uses the start of its attempt from the GitHub API, so it picks up failures and coverage recorded since. The attempt number (GITHUB_RUN_ATTEMPT) is propagated into test containers (Info.run_attempt).
  • Each job attaches its selection (stateless-selection.json) to its report, with the cutoff, coverage snapshots, diff coordinates and an ordered test list with compact evidence.

PR workflow (ci/workflows/pull_request.py, ci/defs/job_configs.py, new ci/defs/functional_test_selection.py):

  • The single-run selected tests sanitizer jobs are replaced by three targeted configurations: amd_asan_ubsan, db disk, distributed plan, targeted (on the large runner), amd_tsan, s3 storage, targeted, and the existing arm_asan_ubsan, targeted. The ASan one is the core blocking job.
  • Each targeted job runs parallel and sequential tests together, repeating the whole selection up to 50 times (sequential and long tests included) with randomized settings, within a 30-minute budget (previously 50) minus setup time.
  • Debug and plain binary jobs still run the full suite in PRs; master keeps the full suite in every configuration. An expanded targeted matrix covering the other regular configurations is defined but disabled (expanded_targeted_matrix) until replay validation.

Nightly coverage (export_coverage.py, ci/workflows/nightly_coverage.py):

  • Export preserves recorded file paths and second-resolution timestamps instead of truncating to the hour, and runs a post-export smoke check of the production selector against the uploaded data; the export fails if no precise region can be retrieved and scored.
  • Coverage jobs have no digest, so randomized runs are not skipped by the cache, and the workflow posts to the Slack feed.

Tooling: test_selection_smoke.py (deterministic checks, also run by each targeted job before selecting, plus --live monitoring) and evaluate_test_selection.py (replay against historical cases). Design and rollout notes are in ci/jobs/scripts/test_selection.md.

Limitations: coverage snapshots are keyed by shard and timestamp because CIDB has no durable run identity yet (needs an external schema migration). The precision thresholds and the below-100-tests target have not yet passed the 60 to 90 day replay gate.

Related: #117331
Related: #114725

Changelog category (leave one):

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

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

Version info

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

Canonicalize coverage paths, fail selection on stale or incompatible
snapshots, and replace broad admission with precise coverage evidence.
Protect changed and previously failed tests under a unified ceiling.

Persist one selection manifest per PR SHA, validate nightly shard exports,
and report repeated execution. Keep entry-count scoring experiments and
the expanded targeted matrix gated on historical evaluation. Durable CIDB
run identity remains dependent on an external schema migration.

Related: #117331
@clickhouse-gh

clickhouse-gh Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [21d9369]

Summary: ✅


AI Review

Summary

This PR rewires stateless PR selection around precise coverage, per-job targeted runs, and a post-export nightly smoke. The direction is good, but I do not think the change is merge-ready yet: the targeted jobs can still be skipped from cache on reruns or some selector-only follow-ups, the new GitHub API calls are still unauthenticated inside Docker for ClickHouse/ClickHouse-private, and the verification path is still incomplete for non-src/ coverage and SELECTION_CONFIG-only changes.

Findings
  • ❌ [ci/defs/job_configs.py:178-210, 2218-2220; ci/praktika/hook_cache.py:48-90] The PR promises that every rerun re-selects against that attempt's failures and coverage, but the targeted stateless jobs are still cacheable and their digest still omits new runner inputs such as ci/jobs/scripts/test_selection_smoke.py and ci/praktika/_environment.py. A rerun-all on the same SHA, or a follow-up commit that only changes the smoke or the RUN_ATTEMPT propagation, can therefore reuse an old green targeted result and skip the new selection path entirely. Either disable cache for the targeted stateless jobs too, or salt their digest with the attempt identity and include the new runner-side modules.
  • ❌ [ci/jobs/scripts/find_tests.py:510-527, 895-937; ci/praktika/runner.py:655-710] The new selection flow now calls the GitHub REST API from inside the job container, but enable_gh_auth only mounts GH_CONFIG_DIR; it does not export GITHUB_TOKEN for requests. Public PRs can limp along with anonymous calls, but the same code path breaks ClickHouse/ClickHouse-private (and private-repo reruns) with 401/404 as soon as _run_attempt_start_time or get_diff_text runs. Route these calls through gh api, or mint and pass an installation token into the container before using requests.
  • ⚠️ [ci/jobs/scripts/coverage_selection.py:103-121] The selector contract was widened to programs/ and base/, but the live seed query for both check_coverage_canary and the post-export smoke still hard-codes src/. A prefix-specific regression in path normalization or export can therefore leave the smoke green while PRs that only touch programs/ or base/ silently lose targeted coverage. The smoke should follow the same prefix set as Targeting.COVERAGE_SOURCE_PREFIXES, or add a second smoke that covers the non-src/ prefixes.
  • ⚠️ [ci/jobs/scripts/workflow_hooks/filter_job.py:107-124] _COVERAGE_PIPELINE_PATHS was updated for export_coverage.py and coverage_selection.py, but not for ci/jobs/scripts/test_selection_config.py. That file now controls the shard count and thresholds consumed by the export-side selector smoke, so a CI-only PR that changes only SELECTION_CONFIG still skips the whole llvm_coverage family and never validates the nightly coverage contract it changed. Add ci/jobs/scripts/test_selection_config.py to _COVERAGE_PIPELINE_PATHS.
Final Verdict

Not ready to merge. The remaining issues are in the core contract this PR advertises: reruns are still bypassable through cache reuse, private-repo targeted jobs still lack GitHub API auth in Docker, and the new smoke/coverage validation still leaves real blind spots.

LLVM Coverage Report

Measured on commit 21d9369.

Metric Baseline Current Δ
Lines 88.10% 88.10% +0.00%
Functions 91.70% 91.70% +0.00%
Branches 79.40% 79.40% +0.00%

Changed lines: Uncovered code analysis did not run: No coverable C/C++ source files changed (contrib/ is excluded from coverage).

Newly covered: +148 lines in 39 files (-236 lines lost coverage) · Details

Full report

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Sep 5, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). label Sep 5, 2026
Comment thread ci/jobs/select_functional_tests.py Resolved
Comment thread ci/jobs/scripts/find_tests.py Resolved
@clickhouse-gh

clickhouse-gh Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing f000817a0 with master d1adb9f9f (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

7 translation units recompiled, 7 s compile time in total, 7 of them have a recent master baseline.

Job report

fm4v added 5 commits September 7, 2026 18:30
Remove automatic harness smoke injection: CI script changes were adding
six unrelated tests to the seven tests covering the `arrayCount` change.
Bump the selector version to invalidate cached manifests.

CI artifact replay now selects the seven coverage candidates.
Run parallel and sequential selected tests in one job per configuration.
Retain the parallel runner when combining flavors and update PR dependencies.

Store each selected test once in `stateless-selection.json`, with its reasons,
score, and compact coverage evidence. Retain input identity and snapshots,
and omit duplicated diagnostic data. Update consumers and the selector version.
Replace the single-run `selected tests` mode with `targeted` jobs in the four
PR sanitizer configurations. Reuse the existing 50-run policy, including long
and sequential tests, and keep one job per configuration.

Targeted selection remains PR-only; master retains the full functional suite.
Update workflow dependencies and exclude existing targeted configurations from
the optional expanded matrix to avoid duplicate jobs.
Comment thread ci/jobs/select_functional_tests.py Resolved
Comment thread ci/jobs/scripts/find_tests.py Resolved
Comment thread ci/jobs/scripts/find_tests.py Resolved
Comment thread ci/jobs/scripts/find_tests.py Resolved
Choose the canary seed dynamically and require coverage only for eligible
source changes. Include surviving owners of deleted and renamed fixtures
in mandatory selection.

Scope manifests to workflow runs and attempts, carrying the current attempt
into test containers. Reuse the producer in targeted jobs so failed-job-only
reruns refresh previous failures and coverage snapshots.

https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=118223&sha=0ede482faa71518a465eb8dcf427760d5b73018f&name_0=PR&name_1=Select%20functional%20tests
#118223
Comment thread ci/defs/job_configs.py Resolved
Comment thread ci/defs/job_configs.py
)

# Randomized executions must remain independent even when the build is cached.
for job in functional_tests_jobs_coverage:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new manifest contract is per workflow run and attempt, but these targeted stateless jobs still inherit the ordinary common_ft_job_config.digest_config. That leaves two holes:

  1. Select functional tests has no digest of its own, so hook_cache folds only the null digest from that dependency into the downstream cache key.
  2. The inherited digest does not include find_tests.py, coverage_selection.py, test_selection_manifest.py, or select_functional_tests.py, even though those files now decide which tests this job runs.

So a rerun-all on the same SHA, or a follow-up commit that only changes the selector code, can cache-hit a previously green targeted job and skip it without ever loading the new <run_id>/<attempt>.json manifest. That breaks the "refresh previous failures / coverage snapshots on retry" contract exactly when the selection logic changes. Please disable caching for the targeted stateless jobs too, or otherwise salt their final digest with the manifest identity and current attempt.

@clickhouse-gh
clickhouse-gh Bot requested review from leshikus and maxknv September 15, 2026 13:13
@fm4v
fm4v enabled auto-merge September 15, 2026 14:17
…st-selection

# Conflicts:
#	.github/workflows/pull_request.yml
#	ci/jobs/functional_tests.py
#	ci/jobs/scripts/find_tests.py
- Run the ASan targeted job on the large runner: it combines the parallel distributed-plan workload with the sequential `db disk` shards, whose small runner is too small for it.
- Include the selector modules in the functional-test digest, so a change to them cannot cache-hit an old targeted result.
- Select coverage-covered tests for changes under `programs/` and `base/` too, not only `src/`, since the PR workflow no longer runs the full sanitizer suites.
- Validate manifest coverage freshness against the producer's recorded cutoff instead of the consumer's clock.
- Treat `export_coverage.py` and `coverage_selection.py` as coverage-pipeline code in `filter_job.py`.

@leshikus leshikus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest revisiting security model, we generally should not expose AWS credentials inside job container

JobConfigs.keeper_stress_job
.set_name("Keeper Stress Tests (PR)")
.set_timeout(3 * 3600),
JobConfigs.keeper_stress_job.set_name("Keeper Stress Tests (PR)").set_timeout(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's easier to review the big patch when formatting changes are separate from the logic changes in a separate PR

raise
manifest = produce()
try:
client.put_object(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this happens inside job docker, we generally do not allow AWS access from the job docker because this means AWS credentials can leak

# repos; private repos require GITHUB_TOKEN (available in Actions env).
import requests

headers = {"Accept": "application/vnd.github+json"}
token = os.environ.get("GITHUB_TOKEN", "")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This private-repo branch is dead in the new selection flow. Targeting.get_diff_text now relies on os.environ["GITHUB_TOKEN"], but neither Select functional tests nor the stateless targeted jobs export that variable; enable_gh_auth only authenticates gh and mounts GH_CONFIG_DIR, it does not populate GITHUB_TOKEN for requests. So this works in ClickHouse/ClickHouse and starts failing with 401/404 on ClickHouse/ClickHouse-private exactly on the new manifest-producing path and on failed-job-only reruns that call get_selection from functional_tests.py.

Can this fetch go through gh api so the existing auth plumbing applies, or otherwise mint/export an installation token before these requests.get calls?

SELECT if(startsWith(file, './'), substring(file, 3), file) AS canonical_file,
line_start, line_end, test_name
FROM {source}
AND (startsWith(file, 'src/') OR startsWith(file, './src/'))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The selector contract was widened to programs/ and base/ in the last commit, but the live seed for both the nightly post-export smoke and check_coverage_canary is still hard-coded to src/ here. A prefix-specific regression in export or path normalization can therefore leave the smoke green while PRs that only touch programs/ / base/ silently get no targeted coverage.

Can this predicate follow the same supported-prefix set as selection, or add a separate smoke that exercises the non-src/ prefixes?

The shared selection manifest was read and written in S3 from inside the job container, which exposes AWS access to PR code there. Instead, every targeted job selects its own tests, as before, and all CIDB inputs are pinned to one cutoff so the jobs of an attempt agree:

- Previous failures count only checks started before the cutoff, and the query no longer depends on `now()`.
- Coverage snapshots are taken as of the cutoff minus `coverage_settle_hours`, so an export still inserting rows is ignored.
- The first attempt uses the workflow start time resolved by the config job; a rerun, including a rerun of failed jobs only, uses the start of its attempt from the GitHub API.

Remove the `Select functional tests` job, the `STATELESS_SELECTION` artifact and the S3 manifest cache. Each targeted job runs the deterministic selection smoke and attaches its selection as `stateless-selection.json` to its report.

Related: #118223 (comment)
@clickhouse-gh
clickhouse-gh Bot requested a review from leshikus September 23, 2026 23:46
"ci/jobs/scripts/job_hooks/llvm_coverage_hook.py",
# Exports per-test coverage and runs the post-export selector smoke.
"ci/jobs/scripts/functional_tests/export_coverage.py",
"ci/jobs/scripts/coverage_selection.py",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coverage_selection.py now imports SELECTION_CONFIG, so changing ci/jobs/scripts/test_selection_config.py changes the shard count and freshness/precision thresholds that the nightly export smoke validates. Because _has_coverage_pipeline_changes still omits that file, a CI-only PR that touches only test_selection_config.py skips every llvm_coverage job and never exercises the export-side selector smoke. Please add ci/jobs/scripts/test_selection_config.py here as another coverage-pipeline input.

@fm4v
fm4v added this pull request to the merge queue Sep 24, 2026
Merged via the queue into master with commit 41199c3 Sep 24, 2026
172 checks passed
@fm4v
fm4v deleted the nightly-coverage-test-selection branch September 24, 2026 05:24
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 24, 2026
@alexey-milovidov alexey-milovidov self-assigned this Sep 24, 2026
clickhouse-gh Bot pushed a commit that referenced this pull request Sep 25, 2026
Edited by the nightly changelog CI job following .claude/skills/edit-changelog/SKILL.md.

Changelog-revert: 119274 118919 Revert "Carry the mutation version onto a rewritten lightweight `DELETE`"
Changelog-revert: 119306 119274 Revert "Revert "Carry the mutation version onto a rewritten lightweight `DELETE`""
Changelog-revert: 119334 117356 Revert "Unify the spill trigger for hash joins"
Changelog-revert: 119335 119334 Revert "Revert "Unify the spill trigger for hash joins""
Changelog-revert: 121135 118279 Revert "Test the ESCAPE route into the ngram LIKE-pattern tokenizer"
Changelog-revert: 121136 121135 Revert "Revert "Test the ESCAPE route into the ngram LIKE-pattern tokenizer""
Changelog-revert: 121258 118216 Revert "Do not invert an ordered comparison that can see a `NaN` in the CNF form"
Changelog-revert: 121298 117578 Revert "Bound the docker buildx retry ladder by wall clock, not by the timeout divisor"
Changelog-revert: 121443 114465 Revert "Fix an error reading an Iceberg table whose `current-snapshot-id` is JSON null"
Changelog-revert: 121477 121096 Revert "Trim `test_max_bytes_ratio_before_external_distinct` to fit the client timeout"
Changelog-revert: 121901 121869 Revert "docs(managed-postgres): updated Private Service Connect"
Changelog-revert: 122110 118223 Revert "Correct nightly coverage selection and share PR test manifests"
Changelog-revert: 122140 120312 Revert "Refuse a `Set` table on the right side of `IN` when a row policy applies to it"
Changelog-deleted-entry: 114465 [Bug Fix (user-visible misbehavior in an official stable release)] [raw] * Fixed an error when reading an Iceberg table whose `current-snapshot-id` is JSON null, which some writers emit for a table with no current snapshot. [#114465](#114465) ([Shaohua Wang](https://github.com/tiandiwonder)).
Changelog-deleted-entry: 118216 [Bug Fix (user-visible misbehavior in an official stable release)] [raw] * Fixed `convert_query_to_cnf = 1` silently dropping rows with a `NaN` in a floating point column: the conversion rewrote `NOT (x < c)` into `x >= c`, which is not an equivalent condition for `NaN`. [#118216](#118216) ([Alexey Milovidov](https://github.com/alexey-milovidov)).
Changelog-deleted-entry: 118223 [NOT FOR CHANGELOG / INSIGNIFICANT] [raw] * Correct nightly coverage selection and share PR test manifests. [#118223](#118223) ([Nikita Fomichev](https://github.com/fm4v)).
Changelog-deleted-entry: 120312 [Bug Fix (user-visible misbehavior in an official stable release)] [raw] * A row policy on a `Set`-engine table was accepted but never applied: the right side of `IN` read the prebuilt set directly and returned the rows the policy hides. Such a query now fails with `ACCESS_DENIED`, because the `Set` engine has no read path that could filter the rows. Queries that used a `Set` table covered by a database-wide row policy ran unfiltered before and now throw. [#120312](#120312) ([Harikrishnan Prabakaran](https://github.com/harikrishnan94)).
Changelog-deleted-entry: 121096 [NOT FOR CHANGELOG / INSIGNIFICANT] [raw] * Sized `test_max_bytes_ratio_before_external_distinct` to fit the integration harness's 600 second per-query timeout. [#121096](#121096) ([Groene AI](https://github.com/groeneai)).
fm4v added a commit that referenced this pull request Sep 25, 2026
The snapshot query counted `uniqExact(test_name)` over the whole 14-day window of `checks_coverage_lines`: 3.5 billion rows and 57 GB, about 6 s on an idle server. Every targeted stateless job of every PR runs it, so while the per-test coverage export was inserting (2026-09-24 18:00-20:00 and 2026-09-25 02:00-04:00 UTC) it exceeded the 60 s timeout on all five attempts. 190 of the 199 "Failed to load test selection" errors since the selector was merged were this query, and as `Stateless tests (amd_asan_ubsan, db disk, distributed plan, targeted)` is a core blocking job, each of them skipped the rest of the PR pipeline. This is why #118223 was reverted in #122110.

Now the distinct `check_start_time` values of the window are listed first (only that column is read, about 0.3 s), and exported tests are counted for the newest three timestamps at a time, filtered by the primary key, until every shard has `coverage_run_count` healthy snapshots. On live CIDB data the result is identical to the old query at every cutoff tried, and it reads 6-10 GB of `test_name` instead of 57 GB, in 1.4-2.3 s instead of about 6 s.

Example failure: https://s3.amazonaws.com/clickhouse-test-reports/PRs/122067/925c788e633f3e3fd2f31f3cd68b916ceb728a3e/pr/stateless_tests_arm_asan_ubsan_targeted/job.log (#122067)
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Sep 26, 2026
…est-selector

Master reverted ClickHouse#118223 in ClickHouse#122110, and this branch was built on top of it:

- ci/jobs/scripts/test_selection_smoke.py: deleted on master, modified here.
  Take the deletion. The two selector checks that were added to it go with the
  file; nothing on master runs a unit suite for find_tests.py.
- ci/jobs/scripts/find_tests.py: merged cleanly as text, but selection_pattern
  called selection_test_name, which the revert removed. The name is now
  normalized in selection_pattern itself: normalize_stateless_test_name for the
  .gen / .gen.sql report names, then the trailing dot, then one file extension,
  because per-test coverage names a test by its case file name (00001_x.sql).

Re-validated on the merged tree: every one of the 15,747 stateless test sources
is selected alone by its selector, from every name shape a producer emits (X.,
X, X.gen, X.gen.sql, X<ext>), through the real run_tests command line, bash,
and the tests/clickhouse-test matcher. Without the extension strip all 15,558
coverage-shaped names would select nothing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Sep 27, 2026
…est-selector

Master re-landed ClickHouse#118223 (74c90e9, ClickHouse#122111), which restores
Targeting.selection_test_name and ci/jobs/scripts/test_selection_smoke.py and
drops DIRECT_CALL_MAX_DEPTH:

- ci/jobs/scripts/find_tests.py: selection_pattern builds on
  selection_test_name again, as before the revert, instead of repeating its
  normalization. DIRECT_CALL_MAX_DEPTH stays removed.
- ci/jobs/scripts/test_selection_smoke.py: the two selector checks are back.
  The targeted job runs this suite when find_tests.py changes.

Re-validated on the merged tree: the smoke suite passes 16/16 and each selector
check fails under its mutation; every one of the 15,806 stateless test sources
is selected alone by its selector from every name shape a producer emits,
through the real run_tests command line, bash and the tests/clickhouse-test
matcher.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

4 participants