Skip to content

Enable pythonenvs-scoped PEP 723 rollout - #1978

Merged
Stella Huang (StellaHuang95) merged 1 commit into
microsoft:mainfrom
StellaHuang95:stellahuang95-sync-repository
Nov 4, 2026
Merged

Stella Huang (StellaHuang95) merged 1 commit into
microsoft:mainfrom
StellaHuang95:stellahuang95-sync-repository

Conversation

@StellaHuang95

@StellaHuang95 Stella Huang (StellaHuang95) commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • map python-envs.inlineScripts.enabled to the dedicated /pythonenvs/config.python-envs.inlineScripts.enabled treatment
  • preserve the default-off setting and explicit user/workspace override behavior
  • run smoke tests in separate explicit-off and explicit-on VS Code hosts

Validation

  • npm run lint
  • npm run compile-tests
  • npm run compile
  • npm run smoke-test -- --fail-zero — 31 passing in the default-off host and 1 passing in the explicit-on host
  • full Node 22 unit suite — 3,496 passing, 9 pending

The commit is SSH-signed and rebased onto the current main, including the global-selection routing fix from #1979.

Relates to #1602

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the dedicated experiment rollout for PEP 723 inline-script environments.

No open issues 🎉

What changed in this PR

Enables a dedicated experiment rollout for PEP 723 inline-script environments while retaining the default-off setting and explicit user/workspace overrides.

Changes:

  • Maps the setting to the /pythonenvs/config.python-envs.inlineScripts.enabled startup treatment.
  • Runs smoke tests in separate explicit-off and explicit-on VS Code hosts.
  • Adds assertions for experiment metadata and enabled inline-script command registration.
File Description
src/​test/​smoke/​registration.smoke.test.ts Verifies the scoped experiment metadata and absence of onExP.
src/​test/​smoke/​inlineScriptsEnabled.smoke.test.ts Checks that an explicit user opt-in registers inline-script commands.
package.json Configures the treatment and includes both smoke-test hosts.
.vscode-test.mjs Seeds separate user settings and defines the enabled smoke-test host.

Review effort: Balanced

@bschnurr

Copy link
Copy Markdown
Member

🔒 Automated review in progress — Bill Schnurr (@bschnurr) is auto-reviewing this PR.

@bschnurr

Copy link
Copy Markdown
Member

Result: 🔴 could-not-verify

Verification details

Verification: Automated verification is best effort. The PR author remains responsible for testing.

Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: C:\Program Files\RedHat\Podman\podman.EXE --connection pyrx-automation failed: stderr: Error: unable to start container "954884b16f490ea8134aa73ff535b2ea617655a86f7c5c453e17a020ca018d69": crun: open `memory.max` for writing: No such file or directory: OCI runtime attempted to invoke a command that was not found

Test runs: none recorded.

@bschnurr Bill Schnurr (bschnurr) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved via Review Center.

@bschnurr Bill Schnurr (bschnurr) added the review-auto:approved Automated review: no blocking findings (approval posted). label Nov 3, 2026

@rchiodo Rich Chiodo (rchiodo) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved via Review Center.

Map the inline-script setting to the dedicated ExP namespace and cover explicit opt-in and opt-out behavior in real VS Code smoke hosts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@bschnurr

Copy link
Copy Markdown
Member

Result: 🔴 could-not-verify

Verification details

Verification: Automated verification is best effort. The PR author remains responsible for testing.

Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: C:\Program Files\RedHat\Podman\podman.EXE --connection pyrx-automation failed: stderr: Error: unable to start container "ab76cda2b44d66f00ffd056e9469b530ab5cafe7be45de4943d79972ddc9670a": crun: open `memory.max` for writing: No such file or directory: OCI runtime attempted to invoke a command that was not found

Test runs: none recorded.

@StellaHuang95
Stella Huang (StellaHuang95) merged commit f081d10 into microsoft:main Nov 4, 2026
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog review-auto:approved Automated review: no blocking findings (approval posted). skip package*.json

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants