#20438·druid

Flaky test: multi-stage-query.spec.ts "runs a query that reads external data" (web-console e2e)

Author: FrankChen021Created Sep 27, 2026Updated Sep 27, 2026
LabelsFlaky test

This issue was generated automatically by Claude Code (Anthropic's AI coding agent) running a scheduled CI-triage routine on behalf of @FrankChen021. Analysis and suggested fixes are AI-produced; please verify before acting on them.

Status: Open: no fix PR Subject: multi-stage-query.spec.ts › runs a query that reads external data (web-console e2e, web-checks) Failures: 2 · First seen: 2026-09-26 · Last seen: 2026-09-26

Root cause

Race between e2e specs: auto-compaction.spec.ts runs just before this spec and leaves its compaction config active, so a compaction task can still hold one of the two task slots. The MSQ query asks for 2 tasks, so the workbench shows the CapacityAlert dialog ("current usage: 1 of 2 … Run it anyway"). WorkbenchOverview.runQuery never confirms that dialog and then waits 240 s for div.result-table-pane. The error screenshots from both failures show this dialog. Both failures ran concurrently on 0387ffa902 and 017c18ab6d; neither commit touches the web console, and the next master commit (e16bbf8bdc) passed. An older report of the same symptom is #13115.

Suggested fix

In web-console/e2e-tests/component/workbench/overview.ts, click Run it anyway in runQuery when the capacity alert appears. Alternatively, have auto-compaction.spec.ts delete its compaction config and wait for running tasks to finish before it exits.

Occurrences

Failed push-triggered master jobs only. The daily triage routine adds one row per new failed job.

Date Commit Job Failure log Detail Reported in
2026-09-26 0387ffa902 (#20291) web-checks job 108333505949 waitForSelector('div.result-table-pane') timed out after 240 s; capacity alert (1 of 2 slots) left open; single attempt
2026-09-26 017c18ab6d (#19858) web-checks job 108333544011 same; single attempt