Repository navigation
Rerun the tests master changed since the PR CI in the merge queue - #126406
Conversation
The merge-queue flaky check reran only the PR's own new/changed tests. That catches a `master` change breaking the PR's tests, but not the reverse: the PR breaking a test that landed on `master` after the PR's last CI run. This is how #124131 broke `05339_string_filters_during_scan_parquet_short_dictionary_values` from #124507 and was reverted by #126396. The `Config Workflow` job of the merge queue, which has the commit history, now finds the tests changed on the first-parent history of the queue base after the PR head commit time (or after the merge base, if the PR merged `master` since), and stores them for the flaky check. When there are more than 30, the ones whose names share more words with the names of the files changed by the PR come first. For the merge-queue commit of #124131 (`d64fd503b42e`), the range has 819 tests, and 05339 is selected second. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Workflow [PR], commit [0a3b4bd] Summary: ✅ AI ReviewSummaryThe PR adds up to 30 relevant tests changed on Findings
Final Verdict |
…argeted checks The coverage selection cannot see a test until a `master` coverage run records it, so a test that landed on `master` after the PR's last CI run escapes it. The `Config Workflow` job of the merge queue (which unshallows the repository) now finds the stateless tests and integration test modules changed on the first-parent history of the queue base after the PR head commit time (or after the merge base, if the PR merged `master` since), keeps the 30 stateless and 10 integration ones whose names share most words with the files the PR changes, and stores them. Both merge-queue targeted checks add them to the selection as mandatory tests. The window and ranking follow #126406. Replayed on the merge-queue commits of the two known cases: for #117198 the integration selection includes `test_storage_delta/test_writes_interop.py` and `test_storage_delta/test.py`; for #124131 the stateless selection includes `05339_string_filters_during_scan_parquet_short_dictionary_values`. The merge-queue targeted jobs are no longer cached: their selection depends on the queue entry and the attempt, neither of which is in the digest.
The merge queue is meant to fail fast, so its targeted checks stop at 3 failed tests (`--max-failures 3` for `clickhouse-test`, `--maxfail` for pytest, with the sequential integration phase getting what remains of the limit and dropped once it is reached), do not rerun the failed integration tests, and stop at 20 minutes from their start, the budget of the merge-queue flaky check, instead of 30. Reaching the time limit stops the tests without failing the job, as before. The merge-queue flaky check keeps its 20-minute limit and 5 failures. The changed stateless tests and those `master` changed after the PR's last CI run run only in the merge-queue flaky check, which already reruns them since #126406; the targeted integration check reruns the integration test modules `master` changed. Related: #123832 Related: #125292
Related: #124131
Related: #124507
Related: #126396
Related: #126397
The merge-queue flaky check reruns only the PR's own new/changed tests against the merge-queue state. That catches a
masterchange breaking the PR's tests, but not the reverse: the PR breaking a test that landed onmasterafter the PR's last CI run. #124131 passed the merge queue and broke05339_string_filters_during_scan_parquet_short_dictionary_values, added by #124507 three days after #124131's last CI run. 05339 isno-fasttest, and the flaky check reran only #124131's own tests.Now the
Config Workflowjob of the merge queue (the only one with the commit history) also finds the tests changed on the first-parent history of the queue base after the PR head commit time (or after the merge base, if the PR has mergedmastersince). The PR CI cannot have been based on an oldermaster. These tests are added to the merge-queue flaky check. When there are more than 30, the ones whose names share more words with the names of the files changed by the PR come first, then the newest.Checked on the merge-queue commit of #124131 (
d64fd503b42e): the range has 819 tests (6.5 days ofmaster); the selected 30 start with05347_string_filters_during_scan_parquet_short_unique_dictionary_values,05339_string_filters_during_scan_parquet_short_dictionary_values, followed by the other new Parquet tests. The computation takes a few seconds.Changelog category (leave one):
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/126406]
Version info
26.11.1.163-master(included in26.11and later)