Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate testing stage #4759

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 0 additions & 155 deletions diagnostics-codeql.yml

This file was deleted.

69 changes: 41 additions & 28 deletions diagnostics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,32 +41,20 @@ extends:
parameters:
stages:
- stage: build
displayName: Build and Test Diagnostics
displayName: Build Diagnostics Assets
jobs:

############################
# #
# Source Build legs #
# #
############################

- template: ${{ variables.sourceBuildTemplate }}
parameters:
platform:
name: Complete
buildScript: ./eng/common/build.sh

############################
# #
# Build legs #
# #
############################

- template: /eng/pipelines/build.yml
parameters:
jobTemplate: ${{ variables.jobTemplate }}
name: Windows
osGroup: Windows_NT
osGroup: Windows
buildOnly: true
buildConfigs:
- configuration: Debug
architecture: x64
Expand Down Expand Up @@ -123,6 +111,7 @@ extends:
parameters:
jobTemplate: ${{ variables.jobTemplate }}
osGroup: MacOS
buildOnly: true
buildConfigs:
- configuration: Release
architecture: x64
Expand Down Expand Up @@ -200,19 +189,46 @@ extends:
artifactUploadPath: bin/linux.arm64.Release
artifactTargetPath: bin/linux-musl.arm64.Release

############################
# #
# Test only legs #
# #
############################
- stage: test
displayName: Run Diagnostics Tests
jobs:

- template: /eng/pipelines/build.yml
parameters:
jobTemplate: ${{ variables.jobTemplate }}
osGroup: Windows
testOnly: true
buildConfigs:
- configuration: Debug
architecture: x64
- configuration: Release
architecture: x64
- configuration: Release
architecture: x86
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
- configuration: Release
architecture: arm
- configuration: Release
architecture: arm64

- template: /eng/pipelines/build.yml
parameters:
jobTemplate: ${{ variables.jobTemplate }}
osGroup: MacOS
testOnly: true
buildConfigs:
- configuration: Release
architecture: x64
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
- configuration: Debug
architecture: x64

- template: /eng/pipelines/build.yml
parameters:
jobTemplate: ${{ variables.jobTemplate }}
name: Ubuntu_20_04
osGroup: Linux
container: test_ubuntu_20_04
dependsOn: Linux
testOnly: true
buildConfigs:
- configuration: Release
Expand All @@ -227,7 +243,6 @@ extends:
name: Ubuntu_22_04
osGroup: Linux
container: test_ubuntu_22_04
dependsOn: Linux
testOnly: true
buildConfigs:
- configuration: Release
Expand All @@ -243,7 +258,6 @@ extends:
osGroup: Linux
osSuffix: -musl
container: test_linux_musl_x64
dependsOn: Linux_musl
testOnly: true
disableComponentGovernance: true
buildConfigs:
Expand All @@ -260,8 +274,6 @@ extends:
name: Debian_Bullseye
osGroup: Linux
container: test_debian_11_amd64
dependsOn: Linux
testOnly: true
Copy link
Member

Choose a reason for hiding this comment

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

Won't this try to build without the "testOnly: true"?

buildConfigs:
- configuration: Release
architecture: x64
Expand All @@ -275,7 +287,6 @@ extends:
name: Fedora_39
osGroup: Linux
container: test_fedora
dependsOn: Linux
testOnly: true
buildConfigs:
- configuration: Release
Expand All @@ -287,6 +298,7 @@ extends:
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- stage: package
displayName: Package, Sign, and Generate BAR Manifests
dependsOn: build
jobs:
- template: /eng/common/templates-official/job/job.yml
parameters:
Expand Down Expand Up @@ -366,6 +378,7 @@ extends:
enableNugetValidation: true
symbolPublishingAdditionalParameters: '/p:PublishSpecialClrFiles=false'
publishInstallersAndChecksums: true
publishAssetsImmediately: true

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