Repository navigation
Route package installs through Microsoft feed proxies - #600
Bill Schnurr (bschnurr) wants to merge 2 commits into
Conversation
Port vscode-isort setup, lockfile normalization, GitHub CI, and DevDiv release feed routing while preserving public Dependabot registries and legacy Azure pipeline definitions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: e2972852-17e2-4e68-81e8-db73c74bfe25
Let ci:msft explicitly select the npm proxy in PR and push workflows. Retain the Python index and registry configuration for CodeQL/Azure consumers, and add regression coverage and documentation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: e2972852-17e2-4e68-81e8-db73c74bfe25
|
🔒 Automated review in progress — Heejae Chang (@heejaechang) is auto-reviewing this PR. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
| throw new Error('An existing pre-commit hook is installed. Integrate the normalizer into your hook manually.'); | ||
| } | ||
| chmodSync(path.join(cwd, '.githooks', 'pre-commit'), 0o755); | ||
| git(['config', '--local', 'core.hooksPath', '.githooks']); |
There was a problem hiding this comment.
Issue · Please address or respond
📍 build/setup-hooks.js:20
Setting core.hooksPath redirects every Git hook, but this guard checks only pre-commit; the reproduced installation silently disabled an existing executable pre-push guard. Refuse installation whenever any active hook would be displaced, and direct contributors to integrate the normalizer into their existing configuration.
[verified]
| const versionCheck = calls[expected.length]; | ||
| assert.equal(versionCheck.command, python); | ||
| assert.match(versionCheck.args[1], /sys.version_info < \(3, 10\)/); | ||
| expected.push([python, versionCheck.args, root]); |
There was a problem hiding this comment.
Warning · Non-blocking recommendation
📍 build/setup.test.js:74
The substring assertion followed by copying versionCheck.args into expected makes the full comparison accept unchecked command arguments, violating docs/pylancewiki/review/tests-no-partial-asserts.md. Define the complete expected ['-c', '<version-check script>'] arguments independently and compare them exactly; the Rules reviewer confirms no dynamic-output exception applies.
[verified]
|
Result: 🔴 Verification detailsVerification: The relevant tests could not be fully run in the isolated environment; this review is not fully verified. Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: Could not prepare offline npm dependencies: Unsupported registry tarball override for '@vscode/python-environments@1.0.0'. Test runs: none recorded. |
Summary
Port the package-feed migration from microsoft/vscode-isort#773 and microsoft/vscode-isort#775 to vscode-flake8.
NPM_CONFIG_REGISTRYfrom PR/push workflows that install throughnpm run ci:msft; keepPIP_INDEX_URLand retain registry settings for CodeQL autobuild and Azure template consumers.npm run ci:msftin shared lint/VSIX actions and applicable test jobs, preserving package caching and the VSIX offline-cache preference.https://packagefeedproxy.microsoft.io/npm/https://packagefeedproxy.microsoft.io/pypi/simple/Repository-specific adaptation
Initialize and build the existing pinned shared-LSP package. Rewrite both expected npm lockfiles before installation while retaining the existing postinstall behavior, test entry point, and submodule revision.
Preserved behavior and boundaries
Verification
npm run test:setup: 39 passing tests, including Windows/Linux setup orchestration, rewrite/error handling, integrity preservation, and real temporary-repository hook tests.npm run lintnpm run format-checknpm run compile-testsnpm run ci:msftand standalone rewrite commands exercised locally; uncached npm and Python proxy downloads succeeded.Hosted GitHub/Azure execution has not been claimed as verified by these local checks. This PR is intentionally a draft.