Skip to content

Use the azcode feed for Microsoft devs via a pnpm tokenHelper; public npm elsewhere - #665

Merged
Brandon Waterloo (bwateratmsft) merged 1 commit into
mainfrom
bwateratmsft-azcode-feed-config
Nov 30, 2026
Merged

Brandon Waterloo (bwateratmsft) merged 1 commit into
mainfrom
bwateratmsft-azcode-feed-config

Conversation

@bwateratmsft

@bwateratmsft Brandon Waterloo (bwateratmsft) commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: d14efacf5fe305997a99b566da05be416fbc7335

Dimension Assessment Rationale
Change confidence 9.5/10 ↑ Locally, with the azcode tokenHelper active, the frozen install, pnpm lint, pnpm build and pnpm test all passed on pnpm 12.23.0.
↑ GitHub Actions Build (the public npm path), CodeQL and CLA all passed.
↑ The official DevDiv build 16169574 succeeded on this head (BuildStage and SDLSources).
↑ The lockfile has no feed tarball URLs or SHA-1 integrity, and the scripts are byte-identical to the merged microsoft/vscode-azure#405.
↓ No human review yet.

🤖

Summary

Port of microsoft/vscode-azure#405. On Microsoft dev machines, pnpm installs from the internal DevDiv azcode Azure Artifacts feed, only within this repo, so the team's own packages can be used as soon as they're published. packagefeedproxy holds new versions for 7 days. External contributors and GitHub Actions keep using public npm. There's no checked-in .npmrc, and the lockfile stays registry-agnostic.

Changes

  • pnpm 12.23.0 (packageManager), installed globally via npm rather than Corepack. pnpm 11.8.0 rejects a tokenHelper in auth.ini.

  • scripts/pnpmfile.mjs (wired up via pnpmfile: in pnpm-workspace.yaml):

    • updateConfig switches the registry to azcode when pnpm's global config has an azcode tokenHelper.
    • afterAllResolved strips feed tarball URLs and keeps the stronger integrity from the committed lockfile instead of the feed's SHA-1.
  • scripts/azcode-token.cmd / .sh are the token helpers (via az account get-access-token). New .gitattributes rules keep .sh LF and .cmd CRLF.

  • docs/build-and-dev.md (new) covers prerequisites, setup, and the one-time Package registry setup for Microsoft developers:

    • the entitlement azcodeazdoar-ozy2
    • 401/403 troubleshooting
    • why there's no .npmrc

    CONTRIBUTING.md now says pnpm install and links to the new doc. .github/copilot-instructions.md gets a troubleshooting section.

  • minimumReleaseAgeExclude: [] drops the @microsoft/vscode-azext-eng exclusion, which expired on 2026-10-22.

  • pnpm-lock.yaml is regenerated:

    • adds packageManagerDependencies and pnpmfileChecksum
    • pnpm 12 adds supports-color peer suffixes
    • no feed URLs

Validation

  • pnpm install --frozen-lockfile, pnpm lint, pnpm build and pnpm test all pass locally.
  • GitHub Actions: Build, CodeQL and CLA pass.
  • Official DevDiv build 16169574 (definition 25494, .config/build.yml) on this branch: succeeded.

… npm elsewhere

Port of microsoft/vscode-azure#405: bump pnpm to 12.23.0, add scripts/pnpmfile.mjs
(switches to the azcode feed when a tokenHelper is configured and keeps the
lockfile registry-agnostic), add azcode token helper scripts, and document
setup in docs/build-and-dev.md. Also drop the expired minimumReleaseAgeExclude.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 30, 2026 19:08

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 registry-selection and authentication updates.

No open issues 🎉

1 file not reviewed
  • pnpm-lock.yaml: Generated file
What changed in this PR

Updates dependency installation for the Container Tools monorepo to use the internal azcode feed when a developer has configured its token helper, while preserving public npm defaults for external contributors and GitHub Actions.

Changes:

  • Adds registry-selection and lockfile-normalization hooks, plus Azure CLI token helpers for Windows and macOS/Linux.
  • Pins pnpm to 12.23.0, regenerates the lockfile, and removes the expired release-age exception.
  • Documents contributor setup and authentication troubleshooting, with platform-specific script line endings.
File Description
scripts/​pnpmfile.mjs Selects azcode and normalizes feed URLs and existing integrity hashes.
scripts/​azcode-token.sh Provides the macOS/Linux authentication helper.
scripts/​azcode-token.cmd Provides the Windows authentication helper.
pnpm-workspace.yaml Registers the hook and removes the expired release-age exception.
pnpm-lock.yaml Records pnpm metadata, the hook checksum, and refreshed peer resolutions.
package.json Pins pnpm to 12.23.0.
docs/​build-and-dev.md Documents prerequisites, registry setup, and troubleshooting.
CONTRIBUTING.md Switches installation guidance to pnpm and links setup documentation.
.github/​copilot-instructions.md Adds dependency-installation troubleshooting guidance.
.gitattributes Enforces LF for shell scripts and CRLF for command scripts.

Review effort: Balanced

@bwateratmsft
Brandon Waterloo (bwateratmsft) merged commit dc386c0 into main Nov 30, 2026
7 checks passed
@bwateratmsft
Brandon Waterloo (bwateratmsft) deleted the bwateratmsft-azcode-feed-config branch November 30, 2026 19:24
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.

3 participants