Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ parameters:
continueOnError: false
displayName: ''
timeoutInMinutes: ''
timeoutPerTestInMinutes: '$(timeoutPerTestInMinutes)'
timeoutPerTestCollectionInMinutes: '$(timeoutPerTestCollectionInMinutes)'
enableMicrobuild: ''
shouldContinueOnError: false

Expand All @@ -40,6 +42,7 @@ steps:
buildConfig: ${{ parameters.buildConfig }}
testBuildArgs: ${{ parameters.testBuildArgs }}
buildAllTestsAsStandalone: ${{ parameters.buildAllTestsAsStandalone }}
condition: ${{ parameters.condition }}
# Build a Mono AOT cross-compiler for non-amd64 targets (in this case, just arm64)
- ${{ if and(eq(parameters.runtimeFlavor, 'mono'), in(parameters.runtimeVariant, 'llvmaot', 'llvmfullaot', 'minifullaot')) }}:
- ${{ if eq(parameters.archType, 'arm64') }}:
Expand All @@ -52,6 +55,7 @@ steps:
/p:BuildMonoAotCrossCompilerOnly=true
/p:CrossBuild=true
displayName: "Build Mono Mini AOT cross compiler"
condition: and(succeeded(), ${{ parameters.condition }})
- ${{ else }}:
- script: ./build.sh
-subset mono
Expand All @@ -62,34 +66,36 @@ steps:
/p:MonoAOTEnableLLVM=true
/p:CrossBuild=true
displayName: "Build Mono LLVM AOT cross compiler"
condition: and(succeeded(), ${{ parameters.condition }})

- ${{ if eq(parameters.archType, 'x64') }}:
- ${{ if eq(parameters.runtimeVariant, 'llvmaot') }}:
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(logRootNameArg)MonoAot mono_aot ${{ parameters.buildConfig }} -arch ${{ parameters.archType }} /p:RuntimeVariant=${{ parameters.runtimeVariant }}
displayName: "AOT compile CoreCLR tests"
condition: and(succeeded(), ${{ parameters.condition }})
target: ${{ coalesce(parameters.llvmAotStepContainer, parameters.container) }}
- ${{ if in(parameters.runtimeVariant, 'llvmfullaot', 'minifullaot') }}:
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(logRootNameArg)MonoAot mono_fullaot ${{ parameters.buildConfig }} -arch ${{ parameters.archType }} /p:RuntimeVariant=${{ parameters.runtimeVariant }} -maxcpucount:1
displayName: "AOT compile CoreCLR tests"
condition: and(succeeded(), ${{ parameters.condition }})
target: ${{ coalesce(parameters.llvmAotStepContainer, parameters.container) }}
- ${{ if eq(parameters.archType, 'arm64') }}:
- ${{ if eq(parameters.runtimeVariant, 'llvmaot') }}:
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(logRootNameArg)MonoAot mono_aot ${{ parameters.buildConfig }} -arch ${{ parameters.archType }} cross /p:RuntimeVariant=${{ parameters.runtimeVariant }} -maxcpucount:2
displayName: "AOT cross-compile CoreCLR tests"
condition: and(succeeded(), ${{ parameters.condition }})
env:
__MonoToolPrefix: aarch64-linux-gnu-
- ${{ if in(parameters.runtimeVariant, 'llvmfullaot', 'minifullaot') }}:
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(logRootNameArg)MonoAot mono_fullaot ${{ parameters.buildConfig }} -arch ${{ parameters.archType }} cross /p:RuntimeVariant=${{ parameters.runtimeVariant }} -maxcpucount:2
displayName: "AOT cross-compile CoreCLR tests"
condition: and(succeeded(), ${{ parameters.condition }})
env:
__MonoToolPrefix: aarch64-linux-gnu-

# Build the runtime tests above, but only send them to Helix when sendToHelix is true.
# This is a compile-time exclusion (not a runtime condition): send-to-helix-inner-step.yml
# wraps the passed-in condition into a string and compares it with ne(condition, false), so a
# runtime 'condition: false' is swallowed and the send runs anyway. Excluding the template keeps
# build coverage while reliably skipping execution on engines that can't run the tests yet
# (e.g. browser/V8 without exnref support).
# Build the runtime tests above, but only include the Helix submission when sendToHelix is true.
# Engines that cannot run the tests yet (e.g. browser/V8 without exnref support) still retain
# build coverage without instantiating a send step.
- ${{ if eq(parameters.sendToHelix, true) }}:
- template: /eng/pipelines/common/templates/runtimes/send-to-helix-step.yml
parameters:
Expand All @@ -112,6 +118,8 @@ steps:

helixBuild: $(Build.BuildNumber)
helixSource: $(_HelixSource)
${{ if eq(parameters.readyToRun, true) }}:
helixType: 'test/functional/r2r/cli/'
${{ if ne(parameters.readyToRun, true) }}:
helixType: 'test/functional/cli/'

Expand All @@ -120,9 +128,11 @@ steps:
# This tests whether an array is empty
${{ if eq(join('', parameters.helixQueues), '') }}:
condition: false
${{ else }}:
condition: ${{ parameters.condition }}
publishTestResults: true
timeoutPerTestInMinutes: $(timeoutPerTestInMinutes)
timeoutPerTestCollectionInMinutes: $(timeoutPerTestCollectionInMinutes)
timeoutPerTestInMinutes: ${{ parameters.timeoutPerTestInMinutes }}
timeoutPerTestCollectionInMinutes: ${{ parameters.timeoutPerTestCollectionInMinutes }}
runCrossGen2: ${{ eq(parameters.readyToRun, true) }}
compositeBuildMode: ${{ parameters.compositeBuildMode }}
runInUnloadableContext: ${{ parameters.runInUnloadableContext }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ steps:
- ${{ if eq(parameters.osGroup, 'windows') }}:
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(crossArg) ci -arch ${{ parameters.archType }} $(buildConfigUpper) $(_nativeSanitizersArg) $(priorityArg) $(runtimeFlavorArgs) ${{ parameters.testBuildArgs }} $(runtimeVariantArg) $(librariesConfigurationArg)
displayName: Build Tests
condition: and(succeeded(), ${{ parameters.condition }})
env:
${{ if eq(parameters.buildAllTestsAsStandalone, true) }}:
BuildAllTestsAsStandalone: true

- ${{ if ne(parameters.osGroup, 'windows') }}:
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(crossArg) ci os ${{ parameters.osGroup }} -arch ${{ parameters.archType }} $(buildConfigUpper) $(_nativeSanitizersArg) $(priorityArg) $(runtimeFlavorArgs) ${{ parameters.testBuildArgs }} $(runtimeVariantArg) $(librariesConfigurationArg)
displayName: Build Tests
condition: and(succeeded(), ${{ parameters.condition }})
env:
${{ if eq(parameters.buildAllTestsAsStandalone, true) }}:
BuildAllTestsAsStandalone: true
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parameters:
osGroup: ''
sendParams: ''
condition: ''
condition: true
displayName: ''
environment: {}
shouldContinueOnError: false
Expand All @@ -10,13 +10,13 @@ steps:
- ${{ if eq(parameters.osGroup, 'windows') }}:
- powershell: $(Build.SourcesDirectory)\eng\common\msbuild.ps1 --restore -ci -warnaserror 0 ${{ parameters.sendParams }}
displayName: ${{ parameters.displayName }} (Windows)
condition: and(succeeded(), ${{ and(ne(parameters.condition, false), ne(parameters.sendParams, '')) }})
condition: and(succeeded(), ${{ parameters.condition }}, ${{ ne(parameters.sendParams, '') }})
env: ${{ parameters.environment }}
continueOnError: ${{ eq(parameters.shouldContinueOnError, true) }}

- ${{ if ne(parameters.osGroup, 'windows') }}:
- script: $(Build.SourcesDirectory)/eng/common/msbuild.sh --restore --ci --warnaserror false ${{ parameters.sendParams }}
displayName: ${{ parameters.displayName }} (Unix)
condition: and(succeeded(), ${{ and(ne(parameters.condition, false), ne(parameters.sendParams, '')) }})
condition: and(succeeded(), ${{ parameters.condition }}, ${{ ne(parameters.sendParams, '') }})
env: ${{ parameters.environment }}
continueOnError: ${{ eq(parameters.shouldContinueOnError, true) }}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ steps:
/p:Configuration=${{ parameters.buildConfig }}
/p:EnableHelixJobMonitor=${{ parameters.useHelixMonitor }}
${{ parameters.extraHelixArguments }}
condition: and(succeeded(), ${{ parameters.condition }})
condition: ${{ parameters.condition }}
Comment thread
jkoritzinsky marked this conversation as resolved.
shouldContinueOnError: ${{ parameters.shouldContinueOnError }}
displayName: ${{ parameters.displayName }}
environment:
Expand Down
Loading
Loading