Skip to content

Commit 4b9018c

Browse files
authored
Engineering - Add pipeline to test the new agent pool (microsoft#253253)
Add pipeline to test the new agent pool
1 parent eee3294 commit 4b9018c

File tree

1 file changed

+139
-0
lines changed

1 file changed

+139
-0
lines changed
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
pr: none
2+
3+
trigger:
4+
batch: true
5+
branches:
6+
include: ["main"]
7+
8+
parameters:
9+
- name: VSCODE_QUALITY
10+
displayName: Quality
11+
type: string
12+
default: insider
13+
- name: NPM_REGISTRY
14+
displayName: "Custom NPM Registry"
15+
type: string
16+
default: 'https://pkgs.dev.azure.com/monacotools/Monaco/_packaging/vscode/npm/registry/'
17+
- name: CARGO_REGISTRY
18+
displayName: "Custom Cargo Registry"
19+
type: string
20+
default: 'sparse+https://pkgs.dev.azure.com/monacotools/Monaco/_packaging/vscode/Cargo/index/'
21+
22+
variables:
23+
- name: NPM_REGISTRY
24+
${{ if in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI') }}: # disable terrapin when in VSCODE_CIBUILD
25+
value: none
26+
${{ else }}:
27+
value: ${{ parameters.NPM_REGISTRY }}
28+
- name: CARGO_REGISTRY
29+
value: ${{ parameters.CARGO_REGISTRY }}
30+
- name: VSCODE_QUALITY
31+
value: ${{ parameters.VSCODE_QUALITY }}
32+
- name: VSCODE_CIBUILD
33+
value: ${{ in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI') }}
34+
- name: skipComponentGovernanceDetection
35+
value: true
36+
- name: ComponentDetection.Timeout
37+
value: 600
38+
- name: Codeql.SkipTaskAutoInjection
39+
value: true
40+
- name: ARTIFACT_PREFIX
41+
value: ''
42+
43+
name: "$(Date:yyyyMMdd).$(Rev:r) (${{ parameters.VSCODE_QUALITY }})"
44+
45+
resources:
46+
repositories:
47+
- repository: 1ESPipelines
48+
type: git
49+
name: 1ESPipelineTemplates/1ESPipelineTemplates
50+
ref: refs/tags/release
51+
52+
extends:
53+
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
54+
parameters:
55+
sdl:
56+
tsa:
57+
enabled: true
58+
configFile: $(Build.SourcesDirectory)/build/azure-pipelines/config/tsaoptions.json
59+
binskim:
60+
analyzeTargetGlob: '+:file|$(Agent.BuildDirectory)/VSCode-*/**/*.exe;+:file|$(Agent.BuildDirectory)/VSCode-*/**/*.node;+:file|$(Agent.BuildDirectory)/VSCode-*/**/*.dll;-:file|$(Build.SourcesDirectory)/.build/**/system-setup/VSCodeSetup*.exe;-:file|$(Build.SourcesDirectory)/.build/**/user-setup/VSCodeUserSetup*.exe'
61+
codeql:
62+
runSourceLanguagesInSourceAnalysis: true
63+
compiled:
64+
enabled: false
65+
justificationForDisabling: "CodeQL breaks ESRP CodeSign on macOS (ICM #520035761, githubcustomers/microsoft-codeql-support#198)"
66+
credscan:
67+
suppressionsFile: $(Build.SourcesDirectory)/build/azure-pipelines/config/CredScanSuppressions.json
68+
eslint:
69+
enabled: true
70+
enableExclusions: true
71+
exclusionsFilePath: $(Build.SourcesDirectory)/.eslint-ignore
72+
sourceAnalysisPool: 1es-windows-2022-x64
73+
createAdoIssuesForJustificationsForDisablement: false
74+
containers:
75+
ubuntu-2004-arm64:
76+
image: onebranch.azurecr.io/linux/ubuntu-2004-arm64:latest
77+
stages:
78+
- stage: Compile
79+
jobs:
80+
- job: Compile
81+
timeoutInMinutes: 90
82+
pool:
83+
name: ACESLabTest
84+
os: macOS
85+
steps:
86+
- template: build/azure-pipelines/product-compile.yml@self
87+
parameters:
88+
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
89+
90+
- stage: macOS
91+
dependsOn:
92+
- Compile
93+
pool:
94+
name: ACESLabTest
95+
os: macOS
96+
variables:
97+
BUILDSECMON_OPT_IN: true
98+
jobs:
99+
- job: macOSElectronTest
100+
displayName: Electron Tests
101+
timeoutInMinutes: 30
102+
variables:
103+
VSCODE_ARCH: arm64
104+
steps:
105+
- template: build/azure-pipelines/darwin/product-build-darwin.yml@self
106+
parameters:
107+
VSCODE_ARCH: arm64
108+
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
109+
VSCODE_CIBUILD: ${{ variables.VSCODE_CIBUILD }}
110+
VSCODE_TEST_ARTIFACT_NAME: electron
111+
VSCODE_RUN_ELECTRON_TESTS: true
112+
113+
- job: macOSBrowserTest
114+
displayName: Browser Tests
115+
timeoutInMinutes: 30
116+
variables:
117+
VSCODE_ARCH: arm64
118+
steps:
119+
- template: build/azure-pipelines/darwin/product-build-darwin.yml@self
120+
parameters:
121+
VSCODE_ARCH: arm64
122+
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
123+
VSCODE_CIBUILD: ${{ variables.VSCODE_CIBUILD }}
124+
VSCODE_TEST_ARTIFACT_NAME: browser
125+
VSCODE_RUN_BROWSER_TESTS: true
126+
127+
- job: macOSRemoteTest
128+
displayName: Remote Tests
129+
timeoutInMinutes: 30
130+
variables:
131+
VSCODE_ARCH: arm64
132+
steps:
133+
- template: build/azure-pipelines/darwin/product-build-darwin.yml@self
134+
parameters:
135+
VSCODE_ARCH: arm64
136+
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
137+
VSCODE_CIBUILD: ${{ variables.VSCODE_CIBUILD }}
138+
VSCODE_TEST_ARTIFACT_NAME: remote
139+
VSCODE_RUN_REMOTE_TESTS: true

0 commit comments

Comments
 (0)