Skip to content

Commit c686dda

Browse files
louis-johnston-dbIsaac
andauthored
[3.0] e2e: don't read a description from the 'Select compute' row (#2340)
## 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. <!-- vscode-factory:item=e2eflake:3e40fcc48e.6 --> This pull request and its description were written by Isaac. Co-authored-by: Isaac <no-reply@databricks.com>
1 parent f85c547 commit c686dda

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎packages/databricks-vscode-e2e/src/compute_lifecycle.next.e2e.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,13 @@ describe("Compute view and cluster lifecycle", async function () {
6464
const item = await getConfigurationItem(
6565
description === undefined ? "select compute" : "cluster",
6666
);
67-
last = item === undefined ? undefined : await item.getDescription();
68-
return item !== undefined && (description === undefined || last === description);
67+
// "Select compute" has no description, so its label is the whole check.
68+
if (item === undefined || description === undefined) {
69+
return item !== undefined;
70+
}
71+
// A row without a description has no element for it, and getDescription throws.
72+
last = await item.getDescription().catch(() => undefined);
73+
return last === description;
6974
},
7075
{
7176
timeout: 60_000,

0 commit comments

Comments
 (0)