Repository navigation
Fail the Fast test when a test the PR adds takes more than 15 s (7.5 s for no-parallel) - #129716
Conversation
A test added by a PR now fails the Fast test when it runs longer than 15 s, or 7.5 s when it is tagged `no-parallel` (or `sequential`). Existing tests are not checked. The Config Workflow hook `store_data.py` stores, for a PR, the files under `tests/queries/0_stateless/` that GitHub reports as `added` or `copied` as the KV key `new_stateless_test_files`. A renamed test is an old test, so it is not included. `fast_test.py` marks an `OK` row of such a test as `FAIL` when its duration is over the limit, reusing `Targeting.functional_test_source_file` and `Targeting.is_sequential_functional_test` from `find_tests.py`. The parent `Tests` result goes from `OK` to `FAIL`; an `ERROR` or `FAIL` is kept. The merge queue and master runs store no key, so they are not checked. `find_tests.py` is not added to the Fast test digest: a PR that adds or copies a test file always changes the digest, so the job always runs. Requested in ClickHouse#129298 (comment) CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=129409&sha=latest&name_0=PR&name_1=Fast+test+%28arm_darwin%29 PR: ClickHouse#129409 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review (click to expand): 0 blockers, 0 majors, 2 nits notedGate B (cold, independent model) on
|
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-7:20261106-114600 |
|
cc @maxknv, could you review this and add the |
|
Workflow [PR], commit [988fff6] Summary: ✅ AI ReviewSummaryReviewed #129716 at Final VerdictStatus: ✅ Approve. |
fa154b8
Related: #129298
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The Fast test now fails when a test added by the PR runs longer than 15 seconds, or 7.5 seconds if it is tagged
no-parallel.Description
Asked for in #129298 (comment), after
05448_dictionary_clickhouse_source_update_field_time_zonetook 46 s inFast test (arm_darwin)(#129298 has since brought it to about 4 s): nothing stopped a PR from adding a slow test to the Fast test.05452_cancel_by_client_stops_sleep, added by #127149, takes about 17 s in bothFast testandFast test (arm_darwin).The check is in the Fast test job itself. The Config Workflow hook
store_data.pyrecords the test files the PR adds (GitHub statusaddedorcopied; a renamed test is an old test) in a new KV key,new_stateless_test_files. After the results are parsed,fast_test.pymarks such a testFAILwhen it ran longer than 15 s, or 7.5 s when it is taggedno-parallel(orsequential), withNew test runs too long (> 15s). Make it faster or tag it `no-fasttest`.It reuses the tag and name helpers offind_tests.py. Existing tests are not checked, and neither are merge queue and master runs. Like anyFast testfailure, it skips the builds and tests of that PR run. A new test close to the limit can fail its own PR on a slow run.Validation, without a committed test (CI scripts): I ran throwaway tests through
clickhouse-testwith the Fast test flags and parsed the real output withFTResultsProcessor. New tests of 16 s, 18 s (.sql) and 8 s (no-parallel) fail. New tests of 12 s and 6 s (no-parallel) and an old 16 s test pass. Everything passes when the PR adds no test or only a.reference. On the real file lists of #127765 and #127149 the key holds exactly the added05448and05452files, not the tests those PRs modified.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/129716]
Version info
26.11.1.1526-master(included in26.11and later)