Skip to content

[3.0] e2e: don't read a description from the 'Select compute' row - #2340

Merged
louis-johnston-db merged 1 commit into
release/3.xfrom
factory/e2eflake/compute-lifecycle-3e40fc
Nov 23, 2026
Merged

louis-johnston-db merged 1 commit into
release/3.xfrom
factory/e2eflake/compute-lifecycle-3e40fc

Conversation

@louis-johnston-db

Copy link
Copy Markdown
Contributor

Changes

  • compute_lifecycle.next.e2e.ts, waitForClusterRow: when waiting for "Select compute" (after a detach), finding the row by its label is the check, so the wait no longer calls getDescription() on it. That row has no description. VS Code adds a row's .label-description element only once that DOM row has shown a description, and reuses DOM rows across refreshes, so whether the element exists depended on the order the Project rows arrived at startup. When it didn't exist, every poll threw until the wait timed out.
  • When waiting for an attached cluster's name, a missing description element now reads as no description and the wait keeps polling, the same as rowTexts in utils/view.ts.

Tests

  • yarn test:e2e:spec compute_lifecycle.next on the mock workspace.
  • The same spec with the mock's scim/v2/Me response delayed by 4 s. Slow login makes all the Project rows arrive in one refresh, which leaves the "Select compute" row without a description element and made the unchanged spec fail.
  • yarn typecheck, plus oxfmt and oxlint --deny-warnings on the changed file.

Evidence (the factory's checks):

  • Integration CI, last 21 days: compute_lifecycle.next failed this way 6 times (windows), last on 2026-11-23; flaky because passed on windows on the same commit 06623b7 (run 43861928421 attempt 2); passed on windows on the same commit f85c547 (run 44859476117 attempt 1).
  • Mock repro (not part of this change; src/compute_lifecycle.next.e2e.ts): failed 8 of 10 runs without the fix, 0 of 10 with it.
  • The touched specs on the mock under CI-like load (a 1024x768 screen, two CPUs, latency on every other run): 20 of 20 runs passed.
  • yarn check and yarn typecheck: passed.

This pull request and its description were written by Isaac.

waitForClusterRow no longer reads a description from the "Select compute" row, which has none. Its label match was already the whole check. When the recycled tree row holding it never showed a description, the `.label-description` element is missing and getDescription threw on every poll until the 60 s timeout. For the attached "Cluster" row, a missing description element now counts as no description and the wait keeps polling, as rowTexts in utils/view.ts already does.

<!-- vscode-factory:item=e2eflake:3e40fcc48e.6 -->

Co-authored-by: Isaac <no-reply@databricks.com>
@louis-johnston-db
louis-johnston-db merged commit c686dda into release/3.x Nov 23, 2026
12 checks passed
@louis-johnston-db
louis-johnston-db deleted the factory/e2eflake/compute-lifecycle-3e40fc branch November 25, 2026 16:00

This branch was previously deployed

1 inactive deployment
test-trigger-is — be70f5fd Deployed Nov 23, 2026 by louis-johnston-db via Trigger Tests #2591
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants