Skip to content

Pin the blocks marshalling assertions that name the query-based reading step - #126793

Merged
devcrafter merged 1 commit into
masterfrom
fix-blocks-marshalling-tests-plan-based
Oct 20, 2026
Merged

devcrafter merged 1 commit into
masterfrom
fix-blocks-marshalling-tests-plan-based

Conversation

@devcrafter

@devcrafter devcrafter commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

03403_parallel_blocks_marshalling_for_distributed compares a whole plan, and 04647_no_blocks_marshalling_for_local_shard_plan counts steps by the query-based step name, so both describe that implementation and fail with parallel_replicas_plan_based = 1: plan-based carries the BlocksMarshalling step inside the reading step's description rather than as its children, and its reading step has a different name.

Plan-based needs no new coverage here - #121642 added 05238_pr_plan_based_blocks_marshalling, which asserts the step counts for the same two query shapes, with marshalling on and off and with and without a local plan, and executes them so the replica side is exercised too.

So only the two assertions that name the query-based step are pinned, each with a comment pointing at that test.

All three tests pass with parallel_replicas_plan_based defaulting to 1 and to 0, three runs each.

Related: #112351

Changelog category (leave one):

  • CI Fix or Improvement

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

...

🤖 Generated with Claude Code


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

Version info

  • Merged into: 26.11.1.324-master (included in 26.11 and later)

@devcrafter
devcrafter force-pushed the fix-blocks-marshalling-tests-plan-based branch from 7530d66 to 2177abe Compare October 19, 2026 20:47
@clickhouse-gh

clickhouse-gh Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [cd009aa]

Summary: ✅


AI Review

Summary

This test-only change pins assertions that depend on query-based parallel-replica plan names and layout to parallel_replicas_plan_based = 0. Separate plan-based marshalling coverage remains in 05238_pr_plan_based_blocks_marshalling, and the result assertions in 04647_no_blocks_marshalling_for_local_shard_plan still follow the configured implementation. No actionable findings.

Missing context / blind spots
  • ⚠️ No local ClickHouse binary was available for independent reruns. The Fast test report confirms both modified tests and 05238_pr_plan_based_blocks_marshalling pass. Broader stateless jobs were still pending; runs with both setting defaults are reported in the PR description but were not independently reproduced.
Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Oct 19, 2026
@devcrafter
devcrafter force-pushed the fix-blocks-marshalling-tests-plan-based branch from 558455f to b05754b Compare October 19, 2026 21:06
@devcrafter
devcrafter requested a review from nickitat October 19, 2026 21:07
@devcrafter devcrafter added the comp-parallel-replicas Parallel reading from replicas for query speed (not data replication consistency). label Oct 19, 2026
`03403` compares a whole plan and `04647` counts steps by the query-based step
name, so both describe that implementation.
`05238_pr_plan_based_blocks_marshalling` covers the same queries for
plan-based.
@devcrafter
devcrafter force-pushed the fix-blocks-marshalling-tests-plan-based branch from b05754b to cd009aa Compare October 19, 2026 21:17
@devcrafter devcrafter changed the title Cover blocks marshalling with plan-based parallel replicas too Pin the blocks marshalling assertions that name the query-based reading step Oct 19, 2026
@devcrafter
devcrafter added this pull request to the merge queue Oct 20, 2026
devcrafter added a commit that referenced this pull request Oct 20, 2026
Measured against master's copies with a current build, 10 runs each with
`parallel_replicas_plan_based = 1`: `03394_pr_insert_select`,
`03394_pr_insert_select_local_pipeline`, `03394_pr_insert_select_threads`,
`04052_distributed_index_analysis_in_subquery_no_quadratic` and
`04341_autopr_mode1_apply_join` pass, so their pins only hid coverage.
`03403` and `04647` move to
#126793, and master has removed
the case `03707` was pinned for.

`03634_autopr_input_bytes_estimation_compact` keeps its pin: unpinned it
reported a statistics row where none is expected, once in ten runs.
Merged via the queue into master with commit c0f2af0 Oct 20, 2026
178 checks passed
@devcrafter
devcrafter deleted the fix-blocks-marshalling-tests-plan-based branch October 20, 2026 17:04
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-parallel-replicas Parallel reading from replicas for query speed (not data replication consistency). 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