From 696b658bca7062f4428e81b7c5fe6875384605d9 Mon Sep 17 00:00:00 2001 From: Alex Villarreal <716334+alexvy86@users.noreply.github.com> Date: Tue, 11 Nov 2025 09:20:27 -0600 Subject: [PATCH 1/2] Prune pnpm store in policy-check stage --- tools/pipelines/templates/include-policy-check.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/pipelines/templates/include-policy-check.yml b/tools/pipelines/templates/include-policy-check.yml index 9503095da9fc..346db79362be 100644 --- a/tools/pipelines/templates/include-policy-check.yml +++ b/tools/pipelines/templates/include-policy-check.yml @@ -72,3 +72,13 @@ stages: echo "##vso[task.logissue type=error]Build should not create extraneous files" exit -1; fi + + # Prune the pnpm store before it's cached. This removes any deps that are not used by the current build. + - task: Bash@3 + displayName: Prune pnpm store + inputs: + targetType: inline + workingDirectory: '${{ parameters.buildDirectory }}' + script: | + set -eu -o pipefail + pnpm store prune From db7640d78a6feb46fef0c3a718483f17edddd224 Mon Sep 17 00:00:00 2001 From: Alex Villarreal <716334+alexvy86@users.noreply.github.com> Date: Tue, 11 Nov 2025 09:45:15 -0600 Subject: [PATCH 2/2] Commenting checks to see what happens --- .../pipelines/templates/include-policy-check.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/pipelines/templates/include-policy-check.yml b/tools/pipelines/templates/include-policy-check.yml index 346db79362be..3c41dfd4d311 100644 --- a/tools/pipelines/templates/include-policy-check.yml +++ b/tools/pipelines/templates/include-policy-check.yml @@ -50,14 +50,14 @@ stages: ${{ parameters.dependencyInstallCommand }} - ${{ if ne(convertToJson(parameters.checks), '[]') }}: - - ${{ each check in parameters.checks }}: - - task: Npm@1 - displayName: npm run ${{ check }} - inputs: - command: 'custom' - workingDir: ${{ parameters.buildDirectory }} - customCommand: 'run ${{ check }}' - condition: succeededOrFailed() + # - ${{ each check in parameters.checks }}: + # - task: Npm@1 + # displayName: npm run ${{ check }} + # inputs: + # command: 'custom' + # workingDir: ${{ parameters.buildDirectory }} + # customCommand: 'run ${{ check }}' + # condition: succeededOrFailed() - task: Bash@3 displayName: Check for extraneous modified files