Skip to content

Address review comments of the PR coverage opt-in change - #123657

Closed
fm4v wants to merge 1 commit into
masterfrom
nik/pr-coverage-opt-in-review-fixes
Closed

fm4v wants to merge 1 commit into
masterfrom
nik/pr-coverage-opt-in-review-fixes

Conversation

@fm4v

@fm4v fm4v commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #122853, addressing its unresolved review comments:

  • tests/clickhouse-test: randomize parallel_replicas_local_plan again and pin it to 1 only in the ParallelReplicas configuration (args.no_parallel_replicas). Plan-based parallel replicas tests (04836_pr_plan_based_in_subquery_distributed, 05137_..., 05139_...) keep exercising both modes in the other lanes.
  • 05256_s3_uri_exception_masks_credentials: keep the listing restricted to initial queries (the DDL worker replay duplicates rows in a Replicated database), but add a check that no query_log row at all, including non-initial ones, leaks credentials.
  • filter_job.py: the CI-scripts-only narrowing ("stateless batch 1 / amd_asan_ubsan integration batch 1 only") no longer applies to the arm_binary coverage replacement jobs or to the LLVM coverage jobs: they run in full or not at all, so ci-coverage gives a complete measurement.
  • _COVERAGE_PIPELINE_PATHS: add pr_labels_and_category.py (defines ci-coverage) and tests/parallel_replicas_blacklist.txt / tests/async_insert_blacklist.txt (select the tests of the replacement lanes), so changing them runs the replacement jobs instead of skipping them as tests-only.

Not changed: the config-time _filter_unaffected_jobs is generic praktika code; PRs that change job definitions use ci-force-all.

Related: #122853

Changelog category (leave one):

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

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

- Randomize `parallel_replicas_local_plan` again and pin it to `1` only in the `ParallelReplicas` configuration, so plan-based parallel replicas tests keep exercising both modes elsewhere.
- `05256_s3_uri_exception_masks_credentials`: also check that non-initial `query_log` rows (e.g. the DDL worker replay in a `Replicated` database) do not leak credentials.
- Do not narrow the `arm_binary` coverage replacement jobs and the LLVM coverage jobs on CI-scripts-only pull requests: they run in full or not at all.
- Treat `pr_labels_and_category.py` and the parallel replicas / async insert blacklists as coverage pipeline paths, so changing them runs the replacement jobs.

Related: #122853
@fm4v fm4v added the pr-ci label Oct 3, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [5c8b85d]

Summary: ❌

job_name test_name status info comment
Stateless tests (arm_binary, s3 storage, DBReplicated, parallel, 1/2) FAIL
05237_with_expression_alias_scope_descendant FAIL cidb
Stateless tests (arm_binary, ParallelReplicas, s3 storage, parallel) FAIL
01660_join_or_any FAIL cidb
05218_timeseries_alp_codec FAIL cidb
05213_timeseries_metric_families_target FAIL cidb
02995_bad_formatting_union_intersect NOT_FAILED cidb
02346_non_negative_derivative NOT_FAILED cidb
01513_optimize_aggregation_in_order_memory_long NOT_FAILED cidb
02884_create_view_with_sql_security_option NOT_FAILED cidb
03273_group_by_in_order_still_used_when_group_by_key_doesnt_match_order_by_key NOT_FAILED cidb
Stress test (arm_release) FAIL
Cannot start clickhouse-server FAIL cidb
Check failed FAIL cidb

AI Review

Summary

This PR follows up on the coverage opt-in work by fixing the coverage-job filtering rules, restoring parallel_replicas_local_plan randomization outside the dedicated ParallelReplicas lane, and extending the S3 credential-masking test. The CI-side changes look coherent, but the new query_log assertion for non-initial queries does not actually exercise any non-initial-query path, so the PR still lacks evidence for the behavior it claims to cover.

Findings

⚠️ Majors

  • [tests/queries/0_stateless/05256_s3_uri_exception_masks_credentials.sql:36] The new assertion promises coverage for non-initial query_log rows, but this test never creates any is_initial_query = 0 entry: all failures happen on the initiator before a DDL worker or remote worker can replay the statement. That makes the new countIf(...) check vacuous and unable to catch the leak it is meant to guard.
    Suggested fix: make the fixture produce a real secondary-query path (for example via a Replicated database replay or another worker-side execution path) and then assert that those specific query_log rows are masked.
Final Verdict
  • Status: ⚠️ Request changes
  • Minimum required action: strengthen tests/queries/0_stateless/05256_s3_uri_exception_masks_credentials.sql so it actually creates and inspects at least one non-initial query_log row before claiming that surface is covered.

@clickhouse-gh clickhouse-gh Bot added the comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). label Oct 3, 2026
ORDER BY event_time_microseconds;

-- The rows of non-initial queries (e.g. the replay of `CREATE` by the DDL worker in a `Replicated` database) must not leak either.
SELECT countIf(position(exception, 'SECRET_') > 0)

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 check is weaker than the contract in the new comment. The test never creates a NOT is_initial_query row: every failing statement here runs on the initiator, and the bad S3 URI is rejected before any DDL worker or remote worker replays it. That makes countIf(...) = 0 vacuously true even if a worker-side query_log row would still log the raw secret.

Please force one real secondary-query path here (for example by replaying the same failing CREATE through a Replicated database, or another execution path that actually emits is_initial_query = 0 rows) and assert masking on those rows specifically.

fm4v added a commit that referenced this pull request Oct 5, 2026
Brings the fixes of #123657:
- Randomize `parallel_replicas_local_plan` again and pin it to `1` only in the `ParallelReplicas` configuration.
- `05256_s3_uri_exception_masks_credentials`: also check that non-initial `query_log` rows (the DDL worker replay in the `DBReplicated` configuration) do not leak credentials.
- Do not narrow the `arm_binary` coverage replacement jobs and the LLVM coverage jobs on CI-scripts-only pull requests.
- Treat `pr_labels_and_category.py` and the parallel replicas / async insert blacklists as coverage pipeline paths.
@fm4v fm4v closed this Oct 7, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant