Repository navigation
Fix flaky test_async_backup_restore_with_max_execution_time_zero on slow CI lanes - #108567
Conversation
…low CI lanes The instance_with_short_timeout node sets max_execution_time = 0.5 in its default profile to trigger the bug under test (the profile-level timeout must fire on the paused async BACKUP/RESTORE). That same 0.5s cap also applies to the foreground setup INSERT and the final verification SELECT, which are not part of what the test checks. On a slow sanitizer lane (amd_msan) the setup INSERT's pipeline finalization exceeded 500ms and failed with Code 159 TIMEOUT_EXCEEDED before the test could run, e.g. elapsed 532.9ms > maximum 500ms in QueryStatus::checkTimeLimit. Scope max_execution_time = 0 to those two foreground scaffolding queries so a loaded lane can't time them out. The profile cap and the async query settings are unchanged, so the bug-detection mechanism is fully preserved. CIDB: 3 failures across 3 unrelated PRs, all on amd_msan, 0 on master. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-0:20260626-025700 |
|
cc @vitlibar - could you review this? Test-only fix: the |
|
Workflow [PR], commit [2e30a6b] Summary: ❌
AI ReviewSummaryThis PR makes the foreground setup Missing context / blind spots
Final VerdictStatus: ✅ Approve |
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 488 line(s), 25 function(s) across 135 file(s) · Details Top files
|
CI finish ledger — 2e30a6bEvery failure below has an owner: a fixing PR (ours or external), or a full-effort fix task whose fixing-PR link will be posted here when it opens. Only
This PR is a test-only fix to Session id: cron:our-pr-ci-monitor:20260626-170000 |
|
Fixing PR for the test_kafka_bad_messages::test_bad_messages_parsing_stream topic-delete teardown flaky created: #108635 |
ce5447e
…ckup-restore-max-exec-time-setup Fix flaky test_async_backup_restore_with_max_execution_time_zero on slow CI lanes
…xecution_time_zero on BACKUP/RESTORE only The node instance_with_short_timeout sets max_execution_time = 0.5 in its default profile, which is how the test checks that an async BACKUP/RESTORE honours its own SETTINGS max_execution_time = 0. The profile caps every other query on the node too: a DDL statement that runs past its deadline is marked killed by the CancellationChecker and fails its post-execute check with TIMEOUT_EXCEEDED. On slow lanes (amd_msan, amd_asan_ubsan db disk) this failed the test on CREATE DATABASE, CREATE TABLE and DROP DATABASE, which ClickHouse#108567 did not cover (it exempted only the INSERT and the final SELECT). Run every query except the BACKUP and RESTORE under test through a local helper that passes a client-level max_execution_time = 0. A client-level setting is used instead of inline SETTINGS clauses because it works the same way for every statement, including the SYSTEM FAILPOINT statements and the system.backups polls, while on CREATE TABLE ... ENGINE=MergeTree an inline clause would read as a MergeTree setting. The BACKUP and RESTORE statements, the profile and the fail points are unchanged, so the test still fails if either statement ignores its max_execution_time = 0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
test_backup_restore_new/test.py::test_async_backup_restore_with_max_execution_time_zerois flaky on theamd_msanintegration lane (3 failures across 3 unrelated PRs in the last 30 days, 0 on master).The
instance_with_short_timeoutnode setsmax_execution_time = 0.5in its default profile so the profile-level timeout reliably fires on the paused asyncBACKUP/RESTOREtask (that timeout firing is the bug under test). That same 0.5s cap also applies to the test's foreground setupINSERTand final verificationSELECT, which are not part of what the test checks. On a slow sanitizer lane the setupINSERT's pipeline finalization exceeded 500ms and the query failed before the test could run:Fix: add
SETTINGS max_execution_time = 0to those two foreground scaffolding queries so a loaded lane cannot time them out. The profile cap and the asyncBACKUP/RESTOREquery settings are unchanged, so the bug-detection mechanism is fully preserved: the failpoint still pauses the background task past the 0.5s profile timeout, and thesystem.backupsstatus assertions still catch a regression of the original bug (profilemax_execution_timecached inQueryStatusand not overridden by the query'smax_execution_time = 0).CI report: https://s3.amazonaws.com/clickhouse-test-reports/PRs/108184/480c9f8720e5d3d4c01cfa755d357a1df7f8f097/integration_tests_amd_msan_4_6/job.log
Version info
26.7.1.405(included in26.7and later)