Skip to content

Commit ec19441

Browse files
committed
Separate testing stage
1 parent f9c76c5 commit ec19441

File tree

3 files changed

+49
-204
lines changed

3 files changed

+49
-204
lines changed

Diff for: diagnostics-codeql.yml

-155
This file was deleted.

Diff for: diagnostics.yml

+39-25
Original file line numberDiff line numberDiff line change
@@ -41,32 +41,20 @@ extends:
4141
parameters:
4242
stages:
4343
- stage: build
44-
displayName: Build and Test Diagnostics
44+
displayName: Build Diagnostics Assets
4545
jobs:
4646

47-
############################
48-
# #
49-
# Source Build legs #
50-
# #
51-
############################
52-
5347
- template: ${{ variables.sourceBuildTemplate }}
5448
parameters:
5549
platform:
5650
name: Complete
5751
buildScript: ./eng/common/build.sh
5852

59-
############################
60-
# #
61-
# Build legs #
62-
# #
63-
############################
64-
6553
- template: /eng/pipelines/build.yml
6654
parameters:
6755
jobTemplate: ${{ variables.jobTemplate }}
68-
name: Windows
69-
osGroup: Windows_NT
56+
osGroup: Windows
57+
buildOnly: true
7058
buildConfigs:
7159
- configuration: Debug
7260
architecture: x64
@@ -123,6 +111,7 @@ extends:
123111
parameters:
124112
jobTemplate: ${{ variables.jobTemplate }}
125113
osGroup: MacOS
114+
buildOnly: true
126115
buildConfigs:
127116
- configuration: Release
128117
architecture: x64
@@ -200,19 +189,46 @@ extends:
200189
artifactUploadPath: bin/linux.arm64.Release
201190
artifactTargetPath: bin/linux-musl.arm64.Release
202191

203-
############################
204-
# #
205-
# Test only legs #
206-
# #
207-
############################
192+
- stage: test
193+
displayName: Run Diagnostics Tests
194+
jobs:
195+
196+
- template: /eng/pipelines/build.yml
197+
parameters:
198+
jobTemplate: ${{ variables.jobTemplate }}
199+
osGroup: Windows
200+
testOnly: true
201+
buildConfigs:
202+
- configuration: Debug
203+
architecture: x64
204+
- configuration: Release
205+
architecture: x64
206+
- configuration: Release
207+
architecture: x86
208+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
209+
- configuration: Release
210+
architecture: arm
211+
- configuration: Release
212+
architecture: arm64
213+
214+
- template: /eng/pipelines/build.yml
215+
parameters:
216+
jobTemplate: ${{ variables.jobTemplate }}
217+
osGroup: MacOS
218+
testOnly: true
219+
buildConfigs:
220+
- configuration: Release
221+
architecture: x64
222+
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
223+
- configuration: Debug
224+
architecture: x64
208225

209226
- template: /eng/pipelines/build.yml
210227
parameters:
211228
jobTemplate: ${{ variables.jobTemplate }}
212229
name: Ubuntu_20_04
213230
osGroup: Linux
214231
container: test_ubuntu_20_04
215-
dependsOn: Linux
216232
testOnly: true
217233
buildConfigs:
218234
- configuration: Release
@@ -227,7 +243,6 @@ extends:
227243
name: Ubuntu_22_04
228244
osGroup: Linux
229245
container: test_ubuntu_22_04
230-
dependsOn: Linux
231246
testOnly: true
232247
buildConfigs:
233248
- configuration: Release
@@ -243,7 +258,6 @@ extends:
243258
osGroup: Linux
244259
osSuffix: -musl
245260
container: test_linux_musl_x64
246-
dependsOn: Linux_musl
247261
testOnly: true
248262
disableComponentGovernance: true
249263
buildConfigs:
@@ -261,7 +275,6 @@ extends:
261275
osGroup: Linux
262276
container: test_debian_11_amd64
263277
dependsOn: Linux
264-
testOnly: true
265278
buildConfigs:
266279
- configuration: Release
267280
architecture: x64
@@ -275,7 +288,6 @@ extends:
275288
name: Fedora_39
276289
osGroup: Linux
277290
container: test_fedora
278-
dependsOn: Linux
279291
testOnly: true
280292
buildConfigs:
281293
- configuration: Release
@@ -287,6 +299,7 @@ extends:
287299
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
288300
- stage: package
289301
displayName: Package, Sign, and Generate BAR Manifests
302+
dependsOn: build
290303
jobs:
291304
- template: /eng/common/templates-official/job/job.yml
292305
parameters:
@@ -366,6 +379,7 @@ extends:
366379
enableNugetValidation: true
367380
symbolPublishingAdditionalParameters: '/p:PublishSpecialClrFiles=false'
368381
publishInstallersAndChecksums: true
382+
publishAssetsImmediately: true
369383

370384
# This sets up the bits to do a Release.
371385
- template: /eng/pipelines/prepare-release.yml

0 commit comments

Comments
 (0)