Skip to content

[6b/?] feat(python-setup): setup orchestrator (re-land of #2046) - #2063

Merged
rugpanov merged 1 commit into
mainfrom
rugpanov/python-setup-orchestrator-reland
Jul 29, 2026
Merged

[6b/?] feat(python-setup): setup orchestrator (re-land of #2046)#2063
rugpanov merged 1 commit into
mainfrom
rugpanov/python-setup-orchestrator-reland

Conversation

@rugpanov

Copy link
Copy Markdown
Contributor

Why

#2046 (DECO-27785, the setup orchestrator) shows as MERGED but its code never reached main. It merged into the rugpanov/python-setup-cli-client branch after that branch's PR (#2039) had already been squash-merged to main — so the orchestrator landed on a now-stranded branch and main has no PythonSetupEnvironmentSetup. This re-lands the reviewed orchestrator directly on main.

Without this, the feature's first real PythonSetupCliClient caller is missing from main, and the extension-wiring PR (#2054) has nothing to build on.

What

PythonSetupEnvironmentSetup + its test, restored byte-identical from #2046 as reviewed/approved. The orchestrator:

  • gates on isVisible, resolves the compute target, runs the CLI under a progress indicator (with cancellation),
  • on a ready real-run adopts the venv interpreter + persists setup state,
  • maps failures to getPythonSetupErrorMessage,
  • coalesces concurrent runs via an in-flight guard.

The gate / compute-resolution / adopt / persist / progress collaborators are injected seams, wired to real implementations by the extension-wiring PR (#2054).

Verification

  • build + test:lint — clean.
  • test:unit415 passing.
    • Note: run with VSCODE_TEST_VERSION=1.130.0. The default "stable" now pulls VS Code 1.131.0, whose macOS bundle renames the Electron executable to Code and breaks @vscode/test-electron ^3.0.0 locally (spawn … Electron ENOENT). That's a repo-wide test-infra skew, unrelated to this change — flagging it separately.

Context

This is a process-recovery PR. Numbered [6b/?] since it restores what [6/?] (#2046) was meant to deliver. DECO-27785.

This pull request and its description were written by Isaac.

*Why*
#2046 (the setup orchestrator, DECO-27785) shows as MERGED but its code never
reached main: it merged into the rugpanov/python-setup-cli-client branch after
that branch's PR (#2039) had already been squash-merged, so the orchestrator
landed on a stranded branch. This re-lands the reviewed orchestrator directly on
main so the feature's first CLI-client caller is actually present (and so the
extension-wiring PR can build on it).

*What*
- Restore PythonSetupEnvironmentSetup + its test verbatim from #2046 as it was
  reviewed and approved (byte-identical). The orchestrator: gates on isVisible,
  resolves compute, runs the CLI under a progress indicator with cancellation,
  and on a ready real-run adopts the venv interpreter + persists state; maps
  failures to getPythonSetupErrorMessage; coalesces concurrent runs via an
  in-flight guard. The gate/compute/adopt/persist/progress collaborators are
  injected seams (wired to real implementations by the extension-wiring PR).

*Verification*
yarn --cwd packages/databricks-vscode build / test:lint (clean); test:unit
415 passing (VSCODE_TEST_VERSION=1.130.0 -- the default "stable" pulls 1.131.0,
whose macOS bundle renames the Electron binary and breaks @vscode/test-electron
^3.0.0 locally, unrelated to this change).

Co-authored-by: Isaac
@rugpanov
rugpanov temporarily deployed to test-trigger-is July 29, 2026 14:57 — with GitHub Actions Inactive
@rugpanov
rugpanov temporarily deployed to test-trigger-is July 29, 2026 14:57 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/vscode

Inputs:

  • PR number: 2063
  • Commit SHA: 96e11217e0103fef8a01ab3eb020b80f2a655e75

Checks will be approved automatically on success.

@rugpanov

Copy link
Copy Markdown
Contributor Author

🤖 Integration tests triggered for 96e11217 — ⏳ running.
View run

@rugpanov
rugpanov merged commit 7621327 into main Jul 29, 2026
7 of 9 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants