Skip to content

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

Description

@FrankChen021

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: Resolved by #20443
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 0387ffa and 017c18a; neither commit touches the web console, and the next master commit (e16bbf8) 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. Merged in #20443 on 2026-09-30.

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 0387ffa (#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 017c18a (#19858) web-checks job 108333544011 same; single attempt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions