Skip to content

Commit eb44b5e

Browse files
authored
build: don't apply cli 'patches' for merge check (microsoft#184210)
* build: don't apply cli 'patches' for merge check This also needed modules installed. But with the new toml patches, the 'merge' will never fail outright, so there's no need to do a separate merge check for it imo * reduce duplication in pipelines, cache node_modules
1 parent fde89ca commit eb44b5e

File tree

5 files changed

+20
-30
lines changed

5 files changed

+20
-30
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
steps:
2+
- template: ../distro/download-distro.yml
3+
4+
- task: Cache@2
5+
inputs:
6+
key: '"build_node_modules" | build/yarn.lock'
7+
path: build/node_modules
8+
cacheHitVar: BUILD_NODE_MODULES_RESTORED
9+
displayName: Restore node_modules cache
10+
11+
- script: yarn --frozen-lockfile --ignore-optional --check-files
12+
workingDirectory: build
13+
condition: and(succeeded(), ne(variables.BUILD_NODE_MODULES_RESTORED, 'true'))
14+
displayName: Install pipeline build
15+
16+
- script: node build/azure-pipelines/distro/apply-cli-patches
17+
displayName: Apply distro patches

build/azure-pipelines/darwin/cli-build-darwin.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,7 @@ steps:
1414
versionSpec: "16.x"
1515

1616
- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
17-
- template: ../distro/download-distro.yml
18-
19-
- script: |
20-
set -e
21-
yarn --frozen-lockfile --ignore-optional
22-
workingDirectory: build
23-
displayName: Install pipeline build
24-
25-
- script: node build/azure-pipelines/distro/apply-cli-patches
26-
displayName: Apply distro patches
17+
- template: ../cli/cli-apply-patches.yml
2718

2819
- task: Npm@1
2920
displayName: Download openssl prebuilt

build/azure-pipelines/distro-build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,3 @@ steps:
1111
inputs:
1212
versionSpec: "16.x"
1313
- template: ./distro/download-distro.yml
14-
- script: node build/azure-pipelines/distro/apply-cli-patches
15-
displayName: Apply distro patches

build/azure-pipelines/linux/cli-build-linux.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,7 @@ steps:
1717
versionSpec: "16.x"
1818

1919
- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
20-
- template: ../distro/download-distro.yml
21-
22-
- script: |
23-
set -e
24-
yarn --frozen-lockfile --ignore-optional
25-
workingDirectory: build
26-
displayName: Install pipeline build
27-
28-
- script: node build/azure-pipelines/distro/apply-cli-patches
29-
displayName: Apply distro patches
20+
- template: ../cli/cli-apply-patches.yml
3021

3122
- task: Npm@1
3223
displayName: Download openssl prebuilt

build/azure-pipelines/win32/cli-build-win32.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,7 @@ steps:
1717
versionSpec: "16.x"
1818

1919
- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
20-
- template: ../distro/download-distro.yml
21-
22-
- pwsh: yarn --frozen-lockfile --ignore-optional
23-
workingDirectory: build
24-
displayName: Install pipeline build
25-
26-
- pwsh: node build/azure-pipelines/distro/apply-cli-patches
27-
displayName: Apply distro patches
20+
- template: ../cli/cli-apply-patches.yml
2821

2922
- task: Npm@1
3023
displayName: Download openssl prebuilt

0 commit comments

Comments
 (0)