Skip to content

Flaky test: DatasourceActionsWebConsoleTest.testDatasourceActions (datasource-actions.spec.ts) #21030

Backlog

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: Open: no fix PR
Subject: DatasourceActionsWebConsoleTest.testDatasourceActions, which runs web-console/e2e-tests/datasource-actions.spec.ts (embedded-tests, ci / web-checks / web-checks)
Failures: 1 · First seen: 2026-12-03 · Last seen: 2026-12-03

Root cause

The first runAction(datasourceName, 'Mark as unused all segments') timed out after 30 s waiting for the menu item. The page snapshot shows the datasource row fully loaded ("Fully available (1 segment)") and no open menu. So the click on the row's more icon either landed before the menu was ready or opened a popover that a later re-render closed. DatasourcesOverview.open() returns right after page.goto without waiting for the table to finish loading, and openActionMenu() clicks the icon once without checking that the menu opened. The spec passed on the other 28 master commits that day, and the failing commit (#20951, broker server selection) does not touch the web console.

Suggested fix

In e2e-tests/component/datasources/overview.ts, wait for the table's .loader to be hidden in open() (also when showUnused is false). Then open the menu inside expect(async () => { click icon; await menuitem.waitFor({ timeout: 2000 }) }).toPass() so that a menu closed by a re-render is reopened.

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-12-03 d96dc3f (#20951) ci / web-checks / web-checks job 144096403484 Playwright locator.click timed out after 30 s waiting for menu item Mark as unused all segments; 1 attempt, no rerun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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