Repository navigation
[3.0] e2e: wait for the ready row, not .venv, after the uv setup - #2338
Merged
louis-johnston-db merged 1 commit intoNov 23, 2026
Merged
Conversation
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
temporarily deployed
to
test-trigger-is
November 20, 2026 18:38 — with
GitHub Actions
Inactive
louis-johnston-db
temporarily deployed
to
test-trigger-is
November 20, 2026 18:38 — with
GitHub Actions
Inactive
louis-johnston-db
temporarily deployed
to
test-trigger-is
November 20, 2026 18:39 — with
GitHub Actions
Inactive
anton-107
approved these changes
Nov 23, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.venvwait had). Before, it waited for the.venvinterpreter 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..venvinterpreter exists, so that check stays. The toast wait, the refresh and the ready-row check after the refresh are unchanged.waitForVenvInterpreterhelper.Tests
yarn test:e2e:spec setup_localon 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.venvexists. 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_localon the mock without the delay.yarn typecheck,yarn check,yarn oxlint --deny-warningson the spec.Evidence (the factory's checks):
setup_local.ucwsfailed 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).src/setup_local.ucws.e2e.ts): failed 10 of 10 runs without the fix, 0 of 10 with it.yarn checkandyarn typecheck: passed.This pull request and its description were written by Isaac.