Skip to content

Migrate CI package installation to pnpm - #11652

Merged
Heejae Chang (heejaechang) merged 1 commit into
microsoft:mainfrom
heejaechang:pyright-pnpm-ci-pr
Aug 18, 2026
Merged

Heejae Chang (heejaechang) merged 1 commit into
microsoft:mainfrom
heejaechang:pyright-pnpm-ci-pr

Conversation

@heejaechang

Copy link
Copy Markdown
Collaborator

Migrate package installation and CI workflows to pnpm.

Validation:

  • pnpm install --frozen-lockfile --ignore-scripts
  • pnpm run check
  • pnpm run typecheck
  • npm pack --dry-run for pyright and pyright-typeserver
  • pnpm run package for vscode-pyright

REVIEWER: Review only the pnpm package and CI migration required by this PR; do not leave unrelated feedback.

@github-actions

Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

sympy (https://github.com/sympy/sympy)
-   .../projects/sympy/sympy/solvers/tests/test_numeric.py:24:12 - error: Operator ">" not supported for types "list[dict[Unknown, Unknown]] | Unknown | list[dict[bytes, bytes]] | MutableDenseMatrix" and "float"
+   .../projects/sympy/sympy/solvers/tests/test_numeric.py:24:12 - error: Operator ">" not supported for types "list[dict[Unknown, Unknown]] | Unknown | MutableDenseMatrix" and "float"
-     Operator ">" not supported for types "list[dict[bytes, bytes]]" and "float"
-   .../projects/sympy/sympy/solvers/tests/test_numeric.py:24:27 - error: Operator "<" not supported for types "list[dict[Unknown, Unknown]] | Unknown | list[dict[bytes, bytes]] | MutableDenseMatrix" and "float"
+   .../projects/sympy/sympy/solvers/tests/test_numeric.py:24:27 - error: Operator "<" not supported for types "list[dict[Unknown, Unknown]] | Unknown | MutableDenseMatrix" and "float"
-     Operator "<" not supported for types "list[dict[bytes, bytes]]" and "float"
-   .../projects/sympy/sympy/solvers/tests/test_numeric.py:37:12 - error: Operator "-" not supported for types "list[dict[Unknown, Unknown]] | Unknown | list[dict[bytes, bytes]] | MutableDenseMatrix" and "Expr"
+   .../projects/sympy/sympy/solvers/tests/test_numeric.py:37:12 - error: Operator "-" not supported for types "list[dict[Unknown, Unknown]] | Unknown | MutableDenseMatrix" and "Expr"
-     Operator "-" not supported for types "list[dict[bytes, bytes]]" and "Expr"
-   .../projects/sympy/sympy/solvers/tests/test_numeric.py:67:28 - error: Argument of type "list[dict[Unknown, Unknown]] | Unknown | list[dict[bytes, bytes]] | MutableDenseMatrix" cannot be assigned to parameter "iterable" of type "Iterable[_T1@__new__]" in function "__new__"
+   .../projects/sympy/sympy/solvers/tests/test_numeric.py:67:28 - error: Argument of type "list[dict[Unknown, Unknown]] | Unknown | MutableDenseMatrix" cannot be assigned to parameter "iterable" of type "Iterable[_T1@__new__]" in function "__new__"
-     Type "list[dict[Unknown, Unknown]] | Unknown | list[dict[bytes, bytes]] | MutableDenseMatrix" is not assignable to type "Iterable[_SupportsRound1[_T@round]]"
+     Type "list[dict[Unknown, Unknown]] | Unknown | MutableDenseMatrix" is not assignable to type "Iterable[_SupportsRound1[_T@round]]"
-   .../projects/sympy/sympy/solvers/tests/test_numeric.py:67:28 - error: Argument of type "list[dict[Unknown, Unknown]] | Unknown | list[dict[bytes, bytes]] | MutableDenseMatrix" cannot be assigned to parameter "iterable" of type "Iterable[_T1@__new__]" in function "__new__"
+   .../projects/sympy/sympy/solvers/tests/test_numeric.py:67:28 - error: Argument of type "list[dict[Unknown, Unknown]] | Unknown | MutableDenseMatrix" cannot be assigned to parameter "iterable" of type "Iterable[_T1@__new__]" in function "__new__"
-     Type "list[dict[Unknown, Unknown]] | Unknown | list[dict[bytes, bytes]] | MutableDenseMatrix" is not assignable to type "Iterable[_T1@__new__]"
+     Type "list[dict[Unknown, Unknown]] | Unknown | MutableDenseMatrix" is not assignable to type "Iterable[_T1@__new__]"
-   .../projects/sympy/sympy/solvers/tests/test_numeric.py:94:16 - error: Operator "-" not supported for types "Expr" and "list[dict[Unknown, Unknown]] | Unknown | list[dict[bytes, bytes]] | MutableDenseMatrix"
+   .../projects/sympy/sympy/solvers/tests/test_numeric.py:94:16 - error: Operator "-" not supported for types "Expr" and "list[dict[Unknown, Unknown]] | Unknown | MutableDenseMatrix"
-     Operator "-" not supported for types "Expr" and "list[dict[bytes, bytes]]" when expected type is "SupportsAbs[Unknown]"
-   .../projects/sympy/sympy/solvers/tests/test_numeric.py:99:16 - error: Operator "-" not supported for types "Expr" and "list[dict[Unknown, Unknown]] | Unknown | list[dict[bytes, bytes]] | MutableDenseMatrix"
+   .../projects/sympy/sympy/solvers/tests/test_numeric.py:99:16 - error: Operator "-" not supported for types "Expr" and "list[dict[Unknown, Unknown]] | Unknown | MutableDenseMatrix"
-     Operator "-" not supported for types "Expr" and "list[dict[bytes, bytes]]" when expected type is "SupportsAbs[Unknown]"
-   .../projects/sympy/sympy/solvers/tests/test_solvers.py:1218:18 - error: Operator "+" not supported for types "Basic" and "Expr" (reportOperatorIssue)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:315:25 - error: "Set" is not iterable
+     "__iter__" method not defined (reportGeneralTypeIssues)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:315:25 - error: "ConditionSet" is not iterable
+     "__iter__" method not defined (reportGeneralTypeIssues)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2030:20 - error: "__getitem__" method not defined on type "Basic" (reportIndexIssue)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2042:20 - error: "__getitem__" method not defined on type "Basic" (reportIndexIssue)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2055:20 - error: "__getitem__" method not defined on type "Basic" (reportIndexIssue)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2076:16 - error: Argument of type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+     Type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" is not assignable to type "Sized"
+       "Set" is incompatible with protocol "Sized"
+         "__len__" is not present (reportArgumentType)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2077:20 - error: "__getitem__" method not defined on type "Basic" (reportIndexIssue)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2270:16 - error: Argument of type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+     Type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" is not assignable to type "Sized"
+       "Set" is incompatible with protocol "Sized"
+         "__len__" is not present (reportArgumentType)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2351:16 - error: Argument of type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+     Type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" is not assignable to type "Sized"
+       "Set" is incompatible with protocol "Sized"
+         "__len__" is not present (reportArgumentType)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2364:16 - error: Argument of type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+     Type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" is not assignable to type "Sized"
+       "Set" is incompatible with protocol "Sized"
+         "__len__" is not present (reportArgumentType)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2370:16 - error: Argument of type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+     Type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" is not assignable to type "Sized"
+       "Set" is incompatible with protocol "Sized"
+         "__len__" is not present (reportArgumentType)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2538:16 - error: Argument of type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+     Type "Unknown | FiniteSet | Set | Intersection | Union | Complement | Any | ConditionSet" is not assignable to type "Sized"
+       "Set" is incompatible with protocol "Sized"
+         "__len__" is not present (reportArgumentType)
+   .../projects/sympy/sympy/solvers/tests/test_solveset.py:2541:20 - error: Argument of type "Unknown | Basic | Any" cannot be assigned to parameter "obj" of type "Sized" in function "len"
+     Type "Unknown | Basic | Any" is not assignable to type "Sized"
+       "Basic" is incompatible with protocol "Sized"
+         "__len__" is not present (reportArgumentType)
-   .../projects/sympy/sympy/stats/crv_types.py:2544:9 - error: Method "_cdf" overrides class "SingleContinuousDistribution" in an incompatible manner
-     Return type mismatch: base method returns type "None", override returns type "ComplexInfinity | NaN | Rational | Unknown | Zero | Expr"
-       Type "ComplexInfinity | NaN | Rational | Unknown | Zero | Expr" is not assignable to type "None"
-         "Expr" is not assignable to "None" (reportIncompatibleMethodOverride)
-   .../projects/sympy/sympy/stats/crv_types.py:2723:9 - error: Method "_cdf" overrides class "SingleContinuousDistribution" in an incompatible manner
-     Return type mismatch: base method returns type "None", override returns type "Expr | NaN | ComplexInfinity | Rational | Unknown | One | NegativeOne | Zero | Integer"
-       Type "Expr | NaN | ComplexInfinity | Rational | Unknown | One | NegativeOne | Zero | Integer" is not assignable to type "None"
-         "Expr" is not assignable to "None" (reportIncompatibleMethodOverride)
-   .../projects/sympy/sympy/stats/drv.py:269:22 - error: Argument of type "Generator[tuple[Unknown, ...] | Unknown | Sum | Expr | ZeroMatrix | Add | Zero | NaN | Piecewise | Basic | int | None, None, None]" cannot be assigned to parameter "iterable" of type "Iterable[_SupportsSumNoDefaultT@sum]" in function "sum"

... (truncated 701 lines) ...

core (https://github.com/home-assistant/core)
- An internal error occurred while type checking file ".../projects/core/homeassistant/components/rachio/coordinator.py": Error: Debug Failure. False expression: Expected variance to be inferred
-     at Object.H.getVariance (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/types.ts:3213:9)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/constraintSolver.ts:385:46
-     at Array.forEach (<anonymous>)
-     at t.addConstraintsForExpectedType (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/constraintSolver.ts:377:20)
-     at t7 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13163:17)
-     at l (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13050:32)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13106:47
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeUtils.ts:779:13
-     at Array.forEach (<anonymous>)
-     at m (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeUtils.ts:778:18)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13102:21
-     at nd (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23357:28)
-     at t4 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13094:28)
-     at t9 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13629:16)
-     at t3 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11302:32)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11181:24
-     at nd.allowDiagnostics (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11261:5)
-     at nd (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23351:20)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11083:24
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:4632:43
-     at m (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeUtils.ts:782:9)
-     at s (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:4616:13)
-     at tg (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:4674:13)
-     at t2 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11079:26)
-     at n.timeOperation (...pyright_to_test/packages/pyright/dist/pyright-internal/src/common/timing.ts:40:20)
-     at g (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/constructors.ts:504:34)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/constructors.ts:177:16
-     at nd (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23351:20)
-     at n.timeOperation (...pyright_to_test/packages/pyright/dist/pyright-internal/src/common/timing.ts:40:20)
-     at t.validateConstructorArgs (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/constructors.ts:176:36)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11745:35
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11820:5
-     at nd.allowDiagnostics (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11261:5)
-     at nd (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23351:20)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11083:24
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:4632:43
-     at m (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeUtils.ts:782:9)
-     at s (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:4616:13)
-     at tg (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:4674:13)
-     at t2 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11079:26)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9030:36
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9100:5
-     at nl (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23310:28)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:1403:30
-     at eU (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:1589:5)
-     at at (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13833:40)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13313:31
-     at Array.forEach (<anonymous>)
-     at t8 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13312:32)
-     at t4 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13131:20)
-     at t9 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13629:16)
-     at t3 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11302:32)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11181:24
-     at nd.allowDiagnostics (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11261:5)
-     at nd (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23351:20)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11083:24
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:4632:43
-     at m (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeUtils.ts:782:9)
-     at s (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:4616:13)
-     at tg (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:4674:13)
-     at t2 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11079:26)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9030:36
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:9100:5
-     at nl (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23310:28)
- Error performing analysis: Error: Debug Failure. False expression: Expected variance to be inferred
-     at Object.H.getVariance (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/types.ts:3213:9)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/constraintSolver.ts:385:46
-     at Array.forEach (<anonymous>)
-     at t.addConstraintsForExpectedType (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/constraintSolver.ts:377:20)
-     at t7 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13163:17)
-     at l (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13050:32)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13106:47
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeUtils.ts:779:13
-     at Array.forEach (<anonymous>)
-     at m (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeUtils.ts:778:18)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13102:21
-     at nd (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23357:28)
-     at t4 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13094:28)
-     at t9 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:13629:16)
-     at t3 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11302:32)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11181:24
-     at nd.allowDiagnostics (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11261:5)
-     at nd (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:23351:20)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11083:24
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:4632:43
-     at m (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeUtils.ts:782:9)
-     at s (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:4616:13)
-     at tg (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:4674:13)
-     at t2 (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/typeEvaluator.ts:11079:26)
-     at n.timeOperation (...pyright_to_test/packages/pyright/dist/pyright-internal/src/common/timing.ts:40:20)
-     at g (...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/constructors.ts:504:34)
-     at ...pyright_to_test/packages/pyright/dist/pyright-internal/src/analyzer/constructors.ts:177:16

... (truncated 61090 lines) ...

@rchiodo

Rich Chiodo (rchiodo) commented Aug 18, 2026 •

Copy link
Copy Markdown
Collaborator

🔒 Automated review in progress — Rich Chiodo (@rchiodo) is auto-reviewing this PR.

@rchiodo Rich Chiodo (rchiodo) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved via Review Center.

@rchiodo Rich Chiodo (rchiodo) added the review-auto:approved Automated review: no blocking findings (approval posted). label Aug 18, 2026
@heejaechang
Heejae Chang (heejaechang) merged commit 5cf4afa into microsoft:main Aug 18, 2026
22 of 23 checks passed
Heejae Chang (heejaechang) added a commit that referenced this pull request Aug 19, 2026
PR #11652 migrated CI package installation from npm to pnpm, but the
Azure DevOps 1ES agent image ships Node without pnpm, so every ADO
`Pyright-Build`/`Pyright-Release` run since has failed at
`pnpm run install:all` with `pnpm: command not found` (exit 127). A
failing build cannot record a clean run, which blocks the CFS network
isolation remediation for ICM 839806358 from clearing.

Provision the pinned pnpm (from package.json `packageManager`) via
`npm install --global`, mirroring the pyrx `installPinnedPackageManager`
convention, in every `checkout: self` job that runs the pnpm workspace
install. npm honors the pipeline-level `NPM_CONFIG_USERCONFIG`, so pnpm
is pulled through the CFS-authenticated feed; corepack is not used
because it cannot reach public npmjs.org under network isolation.

Also fix the `@vscode/vsce` invocations, which #11652 left broken on a
fresh agent (`pnpm install -g` fails with ERR_PNPM_NO_GLOBAL_BIN_DIR and
`pnpm exec` cannot see a globally installed binary):
- Manifest generation now uses `pnpm dlx @vscode/vsce` (pnpm-native, no
  global bin dir required).
- The marketplace publish job keeps a global `npm install -g @vscode/vsce`
  because its bare `vsce publish` runs in a separate step that needs vsce
  on PATH, and that `checkout: none` job has no workspace to enable pnpm
  from; npm still routes through the CFS feed via NPM_CONFIG_USERCONFIG.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: f86da4ad-6ad1-4c96-93ca-30e1030cd78a
Heejae Chang (heejaechang) added a commit that referenced this pull request Aug 19, 2026
PR #11652 migrated CI package installation from npm to pnpm, but the
Azure DevOps 1ES agent image ships Node without pnpm, so every ADO
`Pyright-Build`/`Pyright-Release` run since has failed at
`pnpm run install:all` with `pnpm: command not found` (exit 127). A
failing build cannot record a clean run, which blocks the CFS network
isolation remediation for ICM 839806358 from clearing.

Provision the pinned pnpm (from package.json `packageManager`) via
`npm run installPinnedPackageManager` (a thin `npm install --global`
wrapper), added after `UseNode@1` in every `checkout: self` job that
runs the pnpm workspace install. This mirrors the pyrx convention. npm
honors the pipeline-level `NPM_CONFIG_USERCONFIG`, so pnpm is pulled
through the CFS-authenticated feed; corepack is not used because it
cannot reach public npmjs.org under network isolation.

Also fix the `@vscode/vsce` invocations, which #11652 left broken on a
fresh agent (`pnpm install -g` fails with ERR_PNPM_NO_GLOBAL_BIN_DIR),
matching how pyrx uses vsce:
- Manifest generation uses `pnpm exec vsce` (vsce is a workspace
  devDependency, so no global install is needed), dropping the broken
  `pnpm install -g @vscode/vsce` step.
- The marketplace publish job (`checkout: none`, no workspace) installs
  the pinned vsce globally with
  `npm install --ignore-scripts=false -g @vscode/[email protected]` so its bare
  `vsce publish` step finds it on PATH; npm still routes through the CFS
  feed via NPM_CONFIG_USERCONFIG.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: f86da4ad-6ad1-4c96-93ca-30e1030cd78a
Heejae Chang (heejaechang) added a commit that referenced this pull request Aug 19, 2026
PR #11652 migrated CI package installation from npm to pnpm, but the
Azure DevOps agent image ships Node without pnpm, so every ADO build has
since failed at `pnpm run install:all` with `pnpm: command not found`
(exit 127).

Provision the pinned pnpm (from package.json `packageManager`) via
`npm run installPinnedPackageManager` (a thin `npm install --global`
wrapper) after `UseNode@1` in every `checkout: self` job that runs the
pnpm workspace install. npm is used for this bootstrap because it honors
the pipeline-level `NPM_CONFIG_USERCONFIG` for the authenticated feed;
corepack is not used because it cannot reach the registry in the
restricted-network build.

Also fix the `@vscode/vsce` invocations, which #11652 left broken on a
fresh agent (`pnpm install -g` fails with ERR_PNPM_NO_GLOBAL_BIN_DIR):
- Manifest generation uses `pnpm exec vsce` (vsce is a workspace
  devDependency, so no global install is needed), dropping the broken
  `pnpm install -g` step.
- The marketplace publish job (checkout: none, no workspace) installs
  the pinned vsce globally with
  `npm install --ignore-scripts=false -g @vscode/[email protected]` so its bare
  `vsce publish` step finds it on PATH.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: f86da4ad-6ad1-4c96-93ca-30e1030cd78a
Heejae Chang (heejaechang) added a commit that referenced this pull request Aug 19, 2026
PR #11652 migrated CI package installation from npm to pnpm, but the
Azure DevOps agent image ships Node without pnpm, so every ADO build has
since failed at `pnpm run install:all` with `pnpm: command not found`
(exit 127).

Provision the pinned pnpm (from package.json `packageManager`) via
`npm run installPinnedPackageManager` (a thin `npm install --global`
wrapper) after `UseNode@1` in every `checkout: self` job that runs the
pnpm workspace install. npm is used for this bootstrap because it honors
the pipeline-level `NPM_CONFIG_USERCONFIG` for the authenticated feed;
corepack is not used because it cannot reach the registry in the
restricted-network build.

Also fix the `@vscode/vsce` invocations, which #11652 left broken on a
fresh agent (`pnpm install -g` fails with ERR_PNPM_NO_GLOBAL_BIN_DIR):
- Manifest generation uses `pnpm exec vsce` (vsce is a workspace
  devDependency, so no global install is needed), dropping the broken
  `pnpm install -g` step.
- The marketplace publish job (checkout: none, no workspace) installs
  the pinned vsce globally with
  `npm install --ignore-scripts=false -g @vscode/[email protected]` so its bare
  `vsce publish` step finds it on PATH.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: f86da4ad-6ad1-4c96-93ca-30e1030cd78a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-auto:approved Automated review: no blocking findings (approval posted).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants