Skip to content

[3.0] e2e: wait for the Local Folder row after switching the sub folder project - #2337

Closed
louis-johnston-db wants to merge 1 commit into
release/3.xfrom
factory/e2eflake/bundle-sub-folder-b3590c
Closed

louis-johnston-db wants to merge 1 commit into
release/3.xfrom
factory/e2eflake/bundle-sub-folder-b3590c

Conversation

@louis-johnston-db

@louis-johnston-db louis-johnston-db commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Changes

  • bundle_sub_folder.e2e.ts: after choosing the folder in the quick pick and waiting for login, wait until the Local Folder row shows the chosen folder (getLocalFolderTreeItem, 60 s timeout, polling every 2 s, as the same wait in bundle_init.e2e.ts).

Both test bundles use the same target, so on the second switch (nested1 to double/nested2) the Workspace connection row reads DEFAULT · for target dev_test both before and after. waitForLogin passed straight away, and the next test's single read of the Local Folder row could still see nested1. The test's assertion is unchanged.

Tests

  • yarn test:e2e:spec bundle_sub_folder on the mock, as is.
  • The same spec with a delay injected locally (not part of this change) into the extension's switch from one project to another. Without the fix, that delay fails the test with the CI's error. With the fix it passes, and the log shows the new wait polling nested1 until double/nested2 appears.
  • yarn typecheck, plus yarn oxfmt and yarn oxlint --deny-warnings on the changed file.

Evidence:

  • Integration CI, last 21 days: bundle_sub_folder failed this way 6 times (windows), last on 2026-11-16; flaky because 4 Windows retries passed; passed on windows on the same commit 66d7aec (run 43830493881 attempt 2); passed on windows on the same commit 66d7aec (run 43830493881 attempt 1).
  • Mock repro (not part of this change; src/bundle_sub_folder.e2e.ts): failed 10 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.

…er project

After choosing a folder, the select step waits for login and then until the PROJECT view's Local Folder row shows that folder. Both test bundles use the same target, so on the switch from nested1 to double/nested2 the Workspace connection row already read 'DEFAULT · for target dev_test', waitForLogin passed before the switch landed, and the next test's single read of the row still saw nested1. The new wait is on the row that test checks. Same fix as attempt 1, with the wait moved after waitForLogin: attempt 1's diff ended on a whitespace-only context line, which the controller's copy dropped (the 'corrupt patch' error); this diff ends on a code line and is unchanged by stripping trailing whitespace.

<!-- vscode-factory:item=e2eflake:b3590c6c06 -->

Co-authored-by: Isaac <no-reply@databricks.com>
@louis-johnston-db

Copy link
Copy Markdown
Contributor Author

Superseded by #2362: the same change on a renamed branch.

@louis-johnston-db
louis-johnston-db deleted the factory/e2eflake/bundle-sub-folder-b3590c branch November 30, 2026 09:49

This branch was previously deployed

1 inactive deployment
test-trigger-is — 9685b9e3 Deployed Nov 20, 2026 by louis-johnston-db via Trigger Tests #2588
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.

1 participant