Skip to content

Rerun failed stateless tests in the job's mode so the flaky label is correct - #125180

Merged
fm4v merged 4 commits into
masterfrom
nik/coverage-flaky-must-fail
Oct 11, 2026
Merged

fm4v merged 4 commits into
masterfrom
nik/coverage-flaky-must-fail

Conversation

@fm4v

@fm4v fm4v commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

The diagnostics rerun of failed stateless tests dropped the job's mode flags (--replicated-database, --s3-storage, --azure-blob-storage, --encrypted-storage). A failure specific to DBReplicated or a remote disk then always passed the reruns and was labelled flaky, even when deterministic: 05339_parquet_prewhere_subcolumn_read_through_column (#124685) was labelled flaky in every DBReplicated run on master. The rerun now keeps these flags. The test status is unchanged (it stays FAIL), only the label is fixed.

Also removes the amd_llvm_coverage branch that turned flaky failures into OK (#95763). It hid 05339 in its PR CI, but coverage lanes no longer run in regular PR and master CI, so this is cleanup.

Related: #124685
Related: #95763

Changelog category (leave one):

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

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

Version info

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

fm4v added 3 commits October 11, 2026 12:55
…lanes

The diagnostics rerun on stateless jobs ran without the job's mode flags, so a failure that only happens under `DBReplicated` (or on the s3/azure/encrypted disk) passed every rerun, was labelled `flaky`, and the LLVM coverage lanes then set it to OK (rule from #95763). This hid `05339_parquet_prewhere_subcolumn_read_through_column` from #124685, which failed every first run under `DBReplicated`, and 218 tests in 30 days that failed 0 of 3 reruns in this way.

Pass `--replicated-database`, `--s3-storage`, `--azure-blob-storage` and `--encrypted-storage` to the diagnostics rerun, and never downgrade a test that the PR adds or changes.
…rage downgrade

A failure that passes the diagnostics reruns was labelled `flaky`, which reads as "not caused by this PR", and on LLVM coverage lanes it was turned into OK. Failures that a PR introduces under load, under one mode, or with one setting are exactly the ones that pass a rerun, so they were mislabelled or hidden (e.g. `05339_parquet_prewhere_subcolumn_read_through_column` from #124685 failed every first run under `DBReplicated` and was recorded as OK).

Now every failed test in a PR gets `new_failure` if it is new or changed in the PR or did not fail on `master` in the last 14 days (CIDB), and `known_flaky` otherwise. The `flaky` label is dropped; the rerun outcome stays in the diagnosis text. The coverage downgrade from #95763 is removed.
@clickhouse-gh

clickhouse-gh Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [3e75929]

Summary: ❌

job_name test_name status info comment
Stateless tests (arm_binary, ParallelReplicas, s3 storage, parallel) FAIL
04227_materialized_cte_reused_with_in_subquery FAIL cidb IGNORED
02151_hash_table_sizes_stats_joins_reordered NOT_FAILED cidb IGNORED
02884_create_view_with_sql_security_option NOT_FAILED cidb IGNORED
01513_optimize_aggregation_in_order_memory_long NOT_FAILED cidb IGNORED

AI Review

Summary

This PR preserves the DBReplicated / object-storage runner flags when the diagnostics rerun re-executes failed stateless tests, and it removes the stale LLVM-coverage branch that used to turn a flaky diagnosis into OK. After reading the current diff and the prior discussion threads, I do not see a remaining contract violation in the final patch.

Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Oct 11, 2026
@clickhouse-gh
clickhouse-gh Bot requested review from leshikus and maxknv October 11, 2026 11:23
Comment thread ci/jobs/functional_tests.py Resolved
Comment thread ci/jobs/scripts/find_tests.py Resolved
@clickhouse-gh clickhouse-gh Bot added the comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). label Oct 11, 2026
Labels that nothing blocks on do not change what PR CI catches. Keep the diagnostics rerun in the job's mode and the removal of the coverage downgrade.
@fm4v fm4v changed the title Label PR test failures by master history instead of reruns, drop the coverage flaky-to-OK downgrade Rerun failed stateless tests in the job's mode, never turn a flaky-labelled failure green Oct 11, 2026
@fm4v
fm4v enabled auto-merge October 11, 2026 12:34
@fm4v fm4v changed the title Rerun failed stateless tests in the job's mode, never turn a flaky-labelled failure green Rerun failed stateless tests in the job's mode so the flaky label is correct Oct 11, 2026
@fm4v
fm4v added this pull request to the merge queue Oct 11, 2026
Merged via the queue into master with commit 01d35ec Oct 11, 2026
171 of 173 checks passed
@fm4v
fm4v deleted the nik/coverage-flaky-must-fail branch October 11, 2026 15:55
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 11, 2026
middas-0706 pushed a commit to middas-0706/ClickHouse that referenced this pull request Oct 12, 2026
…d database

In a `Replicated` database the `CREATE TABLE` sent with `--dialect clickhouse_json`
is enqueued as a DDL log entry whose query is SQL text, but the entry is executed
with the session's `dialect = 'clickhouse_json'`, so the DDL worker hands
`/* ddl_entry=... */ CREATE ...` to the JSON AST parser and the test fails with
`Failed to parse JSON for AST deserialization: ... unexpected byte, '/'`
(issue ClickHouse#123323). It fails on every master run of the DBReplicated coverage lane
since ClickHouse#125180 stopped hiding it; random-settings lanes mask it.

Tag the test `no-replicated-database` with the same reason line as
`05233_ast_json_select_argumentless_function_dialect`, as was done for
`05142_http_dictionary_hide_header_values_json`. The tags are to be removed
together when ClickHouse#123323 is fixed.

Related: ClickHouse#123323

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.

2 participants