-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Test] Collapse mono runtime tests into single builds using global-build-job template #62863
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3f2a694
Make mono desktop runs use global build template.
0ae52c8
Add iltools subset; reanble il tests.
a0a8ff7
Make windows use old template.
91d584e
Exclude more tests.
e23ac00
Removed extra }
7284495
Remove redundant condition.
d683fe1
One more test exclusions.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 113 additions & 0 deletions
113
eng/pipelines/common/templates/runtimes/build-runtime-tests-and-send-to-helix.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,113 @@ | ||
| parameters: | ||
| buildConfig: '' | ||
| archType: 'wasm' | ||
| osGroup: 'Browser' | ||
| osSubgroup: '' | ||
| container: '' | ||
| testGroup: '' | ||
| crossBuild: false | ||
| readyToRun: false | ||
| liveLibrariesBuildConfig: '' | ||
| compositeBuildMode: false | ||
| helixQueues: '' | ||
| stagedBuild: false | ||
| displayNameArgs: '' | ||
| runInUnloadableContext: false | ||
| runtimeVariant: 'monointerpreter' | ||
| variables: {} | ||
| pool: '' | ||
| dependsOn: [] | ||
| #arcade-specific parameters | ||
| condition: always() | ||
| continueOnError: false | ||
| displayName: '' | ||
| timeoutInMinutes: '' | ||
| enableMicrobuild: '' | ||
| gatherAssetManifests: false | ||
| shouldContinueOnError: false | ||
|
|
||
| steps: | ||
| - script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) /p:RuntimeVariant=${{ parameters.runtimeVariant }} /p:LibrariesConfiguration=${{ parameters.buildConfig }} -mono -ci os ${{ parameters.osGroup }} ${{ parameters.archType }} $(buildConfigUpper) | ||
| displayName: Build Tests | ||
|
|
||
|
|
||
| # Build a Mono LLVM AOT cross-compiler for non-amd64 targets (in this case, just arm64) | ||
| - ${{ if and(eq(parameters.runtimeFlavor, 'mono'), or(eq(parameters.runtimeVariant, 'llvmaot'), eq(parameters.runtimeVariant, 'llvmfullaot'))) }}: | ||
| - ${{ if eq(parameters.archType, 'arm64') }}: | ||
| - script: ./build.sh | ||
| -subset mono | ||
| -c ${{ parameters.buildConfig }} | ||
| -arch ${{ parameters.archType }} | ||
| /p:BuildMonoAotCrossCompiler=true | ||
| /p:BuildMonoAotCrossCompilerOnly=true | ||
| /p:MonoLibClang="/usr/lib/llvm-9/lib/libclang-9.so.1" | ||
| /p:MonoAOTEnableLLVM=true | ||
| /p:MonoAOTLLVMUseCxx11Abi=true | ||
| /p:CrossBuild=true | ||
| displayName: "Build Mono LLVM AOT cross compiler" | ||
|
|
||
| - ${{ if and(eq(parameters.runtimeFlavor, 'mono'), or(eq(parameters.runtimeVariant, 'llvmaot'), eq(parameters.runtimeVariant, 'llvmfullaot'))) }}: | ||
naricc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - ${{ if eq(parameters.archType, 'x64') }}: | ||
| - ${{ if eq(parameters.runtimeVariant, 'llvmaot') }}: | ||
| - script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(logRootNameArg)MonoAot mono_aot ${{ parameters.buildConfig }} ${{ parameters.archType }} | ||
| displayName: "LLVM AOT compile CoreCLR tests" | ||
| - ${{ if eq(parameters.runtimeVariant, 'llvmfullaot') }}: | ||
| - script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(logRootNameArg)MonoAot mono_fullaot ${{ parameters.buildConfig }} ${{ parameters.archType }} | ||
| displayName: "LLVM AOT compile CoreCLR tests" | ||
| - ${{ if eq(parameters.archType, 'arm64') }}: | ||
| - ${{ if eq(parameters.runtimeVariant, 'llvmaot') }}: | ||
| - script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(logRootNameArg)MonoAot mono_aot ${{ parameters.buildConfig }} ${{ parameters.archType }} $(_monoAotCrossCompileArg) /p:RuntimeVariant=llvmfullaot -maxcpucount:2 | ||
| displayName: "LLVM AOT cross-compile CoreCLR tests" | ||
| env: | ||
| __MonoToolPrefix: aarch64-linux-gnu- | ||
| - ${{ if eq(parameters.runtimeVariant, 'llvmfullaot') }}: | ||
| - script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(logRootNameArg)MonoAot mono_fullaot ${{ parameters.buildConfig }} ${{ parameters.archType }} $(_monoAotCrossCompileArg) /p:RuntimeVariant=llvmfullaot -maxcpucount:2 | ||
| displayName: "LLVM AOT cross-compile CoreCLR tests" | ||
| env: | ||
| __MonoToolPrefix: aarch64-linux-gnu- | ||
|
|
||
| # Send tests to Helix | ||
| - template: /eng/pipelines/common/templates/runtimes/send-to-helix-step.yml | ||
| parameters: | ||
| displayName: Send tests to Helix | ||
| buildConfig: $(buildConfigUpper) | ||
| archType: ${{ parameters.archType }} | ||
| osGroup: ${{ parameters.osGroup }} | ||
| osSubgroup: ${{ parameters.osSubgroup}} | ||
| coreClrRepoRoot: $(Build.SourcesDirectory)/src/coreclr | ||
| shouldContinueOnError: ${{ parameters.shouldContinueOnError }} | ||
| runtimeFlavor: ${{ parameters.runtimeFlavor }} | ||
| runtimeVariant: ${{ parameters.runtimeVariant }} | ||
|
|
||
| ${{ if eq(variables['System.TeamProject'], 'public') }}: | ||
| creator: $(Build.DefinitionName) | ||
|
|
||
| helixBuild: $(Build.BuildNumber) | ||
| helixSource: $(_HelixSource) | ||
|
|
||
| ${{ if ne(parameters.readyToRun, true) }}: | ||
| helixType: 'test/functional/cli/' | ||
|
|
||
| helixQueues: ${{ parameters.helixQueues }} | ||
|
|
||
| # This tests whether an array is empty | ||
| ${{ if eq(join('', parameters.helixQueues), '') }}: | ||
| condition: false | ||
|
|
||
| publishTestResults: true | ||
|
|
||
| timeoutPerTestInMinutes: $(timeoutPerTestInMinutes) | ||
| timeoutPerTestCollectionInMinutes: $(timeoutPerTestCollectionInMinutes) | ||
|
|
||
| runCrossGen2: ${{ eq(parameters.readyToRun, true) }} | ||
| compositeBuildMode: ${{ parameters.compositeBuildMode }} | ||
| runInUnloadableContext: ${{ parameters.runInUnloadableContext }} | ||
|
|
||
| ${{ if eq(variables['System.TeamProject'], 'internal') }}: | ||
| # Access token variable for internal project from the | ||
| # DotNet-HelixApi-Access variable group | ||
| helixAccessToken: $(HelixApiAccessToken) | ||
|
|
||
| helixProjectArguments: '$(Build.SourcesDirectory)/src/tests/Common/helixpublishwitharcade.proj' | ||
|
|
||
| scenarios: normal | ||
78 changes: 0 additions & 78 deletions
78
eng/pipelines/common/templates/runtimes/wasm-runtime-and-send-to-helix.yml
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.