Skip to content

Don't run 00084_external_aggregation on flaky checks - #102618

Merged
nickitat merged 1 commit into
masterfrom
nickitat-patch-34
Apr 14, 2026
Merged

nickitat merged 1 commit into
masterfrom
nickitat-patch-34

Conversation

@nickitat

@nickitat nickitat commented Apr 13, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

cidb

The current flaky check still runs:

  1. Changed/new test files in the PR
  2. Previously failed tests (from prior flaky check runs of this same PR)
  3. Coverage-relevant tests (via the get_most_relevant_tests coverage database)

  The three-step selection code at lines 411–439 is unchanged from the March 24 commit. What the April 9 revert actually did was just bring back is_targeted_check as its own separate code path again.

  So 00084_external_aggregation continues to show up in flaky checks through both of these mechanisms:

  - Coverage-relevant: any PR touching aggregation, filesystem, or memory-management code will have the test flagged as relevant by the coverage database
  - Previously failed: once the test failed in a PR's flaky check (which has been happening to most PRs since April 6), it gets included in all subsequent flaky check runs for that PR via get_previously_failed_tests, which queries the CI database for failures
  within the last 30 days for that pull_request_number

  The second mechanism is self-reinforcing — the test fails because it's selected, which causes it to be selected again, which causes it to fail again.

Version info

  • Merged into: 26.4.1.916

@clickhouse-gh

clickhouse-gh Bot commented Apr 13, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [e10c890]

Summary: ✅


AI Review

Summary

This PR updates tests/queries/0_stateless/00084_external_aggregation.sql by adding the no-flaky-check tag and a reason (times out) so this known unstable/slow test is excluded from flaky-check selection. The change is narrowly scoped to test scheduling metadata and does not modify server logic, query semantics, storage behavior, or on-disk formats. High-level verdict: safe and appropriate.

ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ➖
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ✅
Compilation time ✅
No large/binary files ✅
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Apr 13, 2026
@Algunenano Algunenano self-assigned this Apr 14, 2026
@@ -1,4 +1,6 @@
-- Tags: stateful
-- Tags: stateful, no-flaky-check
-- no-flaky-check: times out

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You can mark it as long instead if you don't want it to be run in the fuzzy flaky check, but still run flaky check when changed

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

For long tests, we anyway run them 10x fewer times due to the long_test_runs_ratio. ATST, it is really annoying for local testing when you just want to run every test N times to go and remove the long tag manually.

@nickitat
nickitat added this pull request to the merge queue Apr 14, 2026
Merged via the queue into master with commit 8ef7968 Apr 14, 2026
161 checks passed
@nickitat
nickitat deleted the nickitat-patch-34 branch April 14, 2026 11:26
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog 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