Skip to content

Commit b039c03

Browse files
Merge remote-tracking branch 'origin/master' into fix-convertToFullIfNeeded-recursive
2 parents 4955ad0 + aaa1cf2 commit b039c03

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/retry_infra_failures.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ jobs:
5252
# Collect per-job verdicts across all pages (runs can have >100 jobs).
5353
# Each failed job emits "true" (infrastructure) or "false" (real failure).
5454
# A job is considered an infrastructure failure if:
55-
# - it is the "Config Workflow" job (pipeline configuration, not actual tests), or
55+
# - it is the "Config Workflow" or "Finish Workflow" job (pipeline plumbing,
56+
# not actual tests; "Finish Workflow" runs in ~15s so the <120s heuristic
57+
# would always misclassify it as infra), or
5658
# - it never reached its main "Run" step (failed during checkout/setup), or
5759
# - the "Run" step was skipped, or
5860
# - the "Run" step failed almost immediately (under 2 minutes), indicating
@@ -61,7 +63,7 @@ jobs:
6163
verdicts=$(gh api "repos/$GH_REPO/actions/runs/$run_id/jobs?per_page=100" \
6264
--paginate --jq '
6365
.jobs[] | select(.conclusion == "failure") |
64-
if .name == "Config Workflow" then true
66+
if .name == "Config Workflow" or .name == "Finish Workflow" then empty
6567
else
6668
[.steps[] | select(.name == "Run")] |
6769
if length == 0 then true

tests/queries/0_stateless/03644_cancel_huge_mutation_subquery.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ done
2525

2626
$CLICKHOUSE_CLIENT --query "SYSTEM STOP MERGES cancel_huge_mutation_subquery"
2727

28+
# SYSTEM STOP MERGES prevents scheduling of new mutations, but if the background pool
29+
# hasn't picked up the mutation task yet, the mutation entry stays with is_done=0 and
30+
# no fail reason, causing mutations_sync=2 to wait forever. KILL MUTATION removes
31+
# the entry from the mutation list and notifies the wait event.
32+
$CLICKHOUSE_CLIENT --query "KILL MUTATION WHERE database='${CLICKHOUSE_DATABASE}' AND table='cancel_huge_mutation_subquery'" > /dev/null
33+
2834
wait
2935

3036
$CLICKHOUSE_CLIENT -q "DROP TABLE IF EXISTS cancel_huge_mutation_subquery"

0 commit comments

Comments
 (0)