Skip to content

[3.0] e2e: wait for the ready row, not .venv, after the uv setup - #2338

Merged
louis-johnston-db merged 1 commit into
release/3.xfrom
factory/e2eflake/setup-local-498b5c
Nov 23, 2026
Merged

louis-johnston-db merged 1 commit into
release/3.xfrom
factory/e2eflake/setup-local-498b5c

Conversation

@louis-johnston-db

Copy link
Copy Markdown
Contributor

Changes

  • setup_local.ucws.e2e.ts: the uv setup test now waits for the config view's "Python environment ready" row (waitForPythonEnvReady) with the setup's budget (SETUP_TIMEOUT_MS, the 420 s the .venv wait had). Before, it waited for the .venv interpreter file, which uv creates before it installs Python and databricks-connect. The extension marks the project ready only once the CLI is done, so a slow install could still be running when only the 15 s toast wait and 60 s row wait were left.
  • After the row reads ready, the test asserts that the .venv interpreter exists, so that check stays. The toast wait, the refresh and the ready-row check after the refresh are unchanged.
  • Removed the now-unused waitForVenvInterpreter helper.

Tests

  • yarn test:e2e:spec setup_local on the mock, with a temporary 100 s delay injected in the extension after the setup CLI returns. This stands in for a slow uv install that keeps going after .venv exists. Before the fix it failed the way the CI did; with the fix it passes, and the row reads "Set up Python environment" until the delay ends.
  • yarn test:e2e:spec setup_local on the mock without the delay.
  • yarn typecheck, yarn check, yarn oxlint --deny-warnings on the spec.

Evidence (the factory's checks):

  • Integration CI, last 21 days: setup_local.ucws failed this way 13 times (windows), last on 2026-11-20; flaky because 6 Windows retries passed; passed on linux in the same nightly (2026-11-20).
  • Mock repro (not part of this change; src/setup_local.ucws.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.

The setup test used to wait for the `.venv` interpreter on disk. uv makes that file early and then keeps installing Python and databricks-connect, and the extension marks the project ready only after the CLI returns. Now the test spends the setup's existing 420 s budget waiting for the config view's "Python environment ready" row, which the test checks anyway, and then asserts that the interpreter exists. The rest of a slow install no longer has to fit in the 75 s left after `.venv` appears.

<!-- vscode-factory:item=e2eflake:498b5c481d -->

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

This branch was previously deployed

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