Repository navigation
Commit c686dda
[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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
69 | 74 | | |
70 | 75 | | |
71 | 76 | | |
| |||
0 commit comments