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

Enable CI to run CoreCLR tests on Mono #34054

Merged
merged 51 commits into from
Apr 22, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
822a7be
parent 87e1674da8daaa0f13e374385035039d3ef9cdde
directhex Mar 11, 2020
907c686
Added parameter to msbuild.
naricc Apr 14, 2020
0acbde4
Remove direct invocation of msbuild.
naricc Apr 14, 2020
1500c7b
Fixed white space, spelling issues.
naricc Apr 14, 2020
dbcd508
Propaged runtime flavor dispaly name to test run names.
naricc Apr 15, 2020
bb7367e
Fixed proj file path.
naricc Apr 15, 2020
eea6d8d
Removed extra whitespace.
naricc Apr 15, 2020
ae7cf8b
Used TestPrefix
naricc Apr 15, 2020
888ca66
Improved comments.
naricc Apr 15, 2020
2ff2457
Merged changes from master.
naricc Apr 15, 2020
dd587f2
Merge branch 'master' of github.com:dotnet/runtime into naricc/mono-pri0
naricc Apr 15, 2020
2f9d2ee
Reversed unneeded changes in build-job.yml
naricc Apr 15, 2020
dfd4d30
Updated comment.
naricc Apr 15, 2020
023ea9b
Removed tab.
naricc Apr 15, 2020
ac9dca9
Changed paths common/templates -> common/templates/runtimes
naricc Apr 16, 2020
cad4ebe
Changed invocation of build.sh to msbuild invocation.
naricc Apr 16, 2020
6194735
Fixed path.
naricc Apr 16, 2020
a4d9393
Removed trailing white space.
naricc Apr 16, 2020
abe8ea2
Removed bad -ci option from msbuild.
naricc Apr 17, 2020
f9f4f44
Updated msbuild parameters.
naricc Apr 17, 2020
c64937c
Removed tab.
naricc Apr 17, 2020
972c969
Spacing change.
naricc Apr 17, 2020
b5e1c83
Eliminated extra new line.
naricc Apr 17, 2020
d9b7d0e
Change how runtime flavor is propagated.
naricc Apr 17, 2020
ff1050e
Changes to build-test.
naricc Apr 17, 2020
b35a65a
Added binlog.
naricc Apr 17, 2020
d7fbb17
Added binlog 2.
naricc Apr 17, 2020
fd7ff96
Added runtime-flavor-arg in run-test-job.yml
naricc Apr 20, 2020
13d8bce
Updated comment, moved runtimeFlavorArgs to the right place.
naricc Apr 20, 2020
21e2af1
Fixed runtime flavor arg.
naricc Apr 20, 2020
fc3da88
Added runtime flavor to log prefix.
naricc Apr 20, 2020
0955248
Fixed runtimeFlavorArg
naricc Apr 20, 2020
434d08f
Added runtimeFlavor to log names.
naricc Apr 20, 2020
8f60fbf
Fixed runtime flavor arg value.
naricc Apr 20, 2020
8bbe8eb
Changed build architecture to build architecture.
naricc Apr 20, 2020
0a0377a
Excluded hijacking test on *all* unix targets.
naricc Apr 20, 2020
edd9764
Use multiple /p flags for windows cmd shell compatibility.
naricc Apr 20, 2020
e04b3bd
Removed unecessary mono stuff from build-test-job.
naricc Apr 21, 2020
d5042ef
Changed runtime.yml
naricc Apr 21, 2020
e0e8436
White space.
naricc Apr 21, 2020
6d08bf7
Removed extra white space.
naricc Apr 21, 2020
90a77f0
Added runtime flavor as log prefix.
naricc Apr 21, 2020
2b33b55
Put runtime flavor back in test build names.
naricc Apr 21, 2020
0976a7d
Switched to display name.
naricc Apr 21, 2020
d439388
Added spaces; remvoed unneeded variable setting.
naricc Apr 21, 2020
4f988fb
Removed priority arg.
naricc Apr 21, 2020
6206d11
Changed build-test binlog name.
naricc Apr 21, 2020
18a72b6
Changed build-test binlog name.
naricc Apr 21, 2020
30fba0a
Removed commented out platform.
naricc Apr 21, 2020
af86454
Moved bracket to correct place.
naricc Apr 21, 2020
175627e
Fixed quotes.
naricc Apr 22, 2020
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 @@ -5,6 +5,7 @@ parameters:
osSubgroup: ''
container: ''
testGroup: ''
liveRuntimeBuildConfig: ''
naricc marked this conversation as resolved.
Show resolved Hide resolved

# When set to a non-empty value (Debug / Release), it determines libraries
# build configuration to use for the tests. Setting this property implies
Expand All @@ -18,6 +19,7 @@ parameters:
stagedBuild: false
variables: {}
pool: ''
runtimeFlavorDisplayName: 'CoreCLR'

### Build managed test components (native components are getting built as part
### of the the product build job).
Expand All @@ -27,8 +29,9 @@ parameters:
### over to its reference assembly we should be able to remove this dependency and
### run managed test builds in parallel with the product build job.


jobs:
- template: xplat-pipeline-job.yml
- template: /eng/pipelines/${{ parameters.runtimeFlavor }}/templates/xplat-pipeline-job.yml
parameters:
buildConfig: ${{ parameters.buildConfig }}
archType: ${{ parameters.archType }}
Expand All @@ -40,21 +43,25 @@ jobs:
testGroup: ${{ parameters.testGroup }}
stagedBuild: ${{ parameters.stagedBuild }}
liveLibrariesBuildConfig: ${{ parameters.liveLibrariesBuildConfig }}
variables: ${{ parameters.variables }}
variables:
- runtimeFlavorArgs: ''
- ${{ if eq(parameters.runtimeFlavor, 'mono') }}:
- runtimeFlavorArgs: '-excludemonofailures'
- ${{ each variable in parameters.variables }}:
- ${{insert}}: ${{ variable }}
pool: ${{ parameters.pool }}

# Test jobs should continue on error for internal builds
${{ if eq(variables['System.TeamProject'], 'internal') }}:
continueOnError: true

# Compute job name from template parameters
${{ if eq(parameters.testGroup, 'innerloop') }}:
name: 'coreclr_test_build_p0_${{ parameters.osGroup }}${{ parameters.osSubgroup }}_${{ parameters.archType }}_${{ parameters.buildConfig }}'
displayName: 'CoreCLR Pri0 Test Build ${{ parameters.osGroup }}${{ parameters.osSubgroup }} ${{ parameters.archType }} ${{ parameters.buildConfig }}'
name: '${{ parameters.runtimeFlavor }}_test_build_p0_${{ parameters.osGroup }}${{ parameters.osSubgroup }}_${{ parameters.archType }}_${{ parameters.buildConfig }}'
displayName: '${{ parameters.runtimeFlavorDisplayName }} Pri0 Test Build ${{ parameters.osGroup }}${{ parameters.osSubgroup }} ${{ parameters.archType }} ${{ parameters.buildConfig }}'

${{ if ne(parameters.testGroup, 'innerloop') }}:
name: 'coreclr_test_build_p1_${{ parameters.osGroup }}${{ parameters.osSubgroup }}_${{ parameters.archType }}_${{ parameters.buildConfig }}'
displayName: 'CoreCLR Pri1 Test Build ${{ parameters.osGroup }}${{ parameters.osSubgroup }} ${{ parameters.archType }} ${{ parameters.buildConfig }}'
name: '${{ parameters.runtimeFlavor }}_test_build_p1_${{ parameters.osGroup }}${{ parameters.osSubgroup }}_${{ parameters.archType }}_${{ parameters.buildConfig }}'
displayName: '${{ parameters.runtimeFlavorDisplayName }} Pri1 Test Build ${{ parameters.osGroup }}${{ parameters.osSubgroup }} ${{ parameters.archType }} ${{ parameters.buildConfig }}'

# Since the condition is being altered, merge the default with the additional conditions.
# See https://docs.microsoft.com/azure/devops/pipelines/process/conditions
Expand All @@ -65,7 +72,7 @@ jobs:
# by switching over to using reference assembly.
${{ if ne(parameters.stagedBuild, true) }}:
dependsOn:
- ${{ format('coreclr_product_build_{0}{1}_{2}_{3}', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
- ${{ format('coreclr_product_build_{0}{1}_{2}_{3}', parameters.osGroup, parameters.osSubgroup, parameters.archType, coalesce(parameters.liveRuntimeBuildConfig, parameters.buildConfig)) }}
- ${{ if ne(parameters.liveLibrariesBuildConfig, '') }}:
- ${{ format('libraries_build_{0}{1}_{2}_{3}', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.liveLibrariesBuildConfig) }}

Expand Down Expand Up @@ -98,6 +105,15 @@ jobs:
artifactName: '$(librariesBuildArtifactName)'
displayName: 'live-built libraries'

- ${{ if eq(parameters.runtimeFlavor, 'mono') }}:
# We need to explictly download CoreCLR for Mono
naricc marked this conversation as resolved.
Show resolved Hide resolved
- template: /eng/pipelines/common/download-artifact-step.yml
parameters:
unpackFolder: $(coreClrProductRootFolderPath)
artifactFileName: '$(coreClrProductArtifactName)$(archiveExtension)'
artifactName: '$(coreClrProductArtifactName)'
displayName: 'CoreCLR product build for Mono'


# Download product binaries directory
- template: /eng/pipelines/common/download-artifact-step.yml
Expand All @@ -109,7 +125,7 @@ jobs:


# Build managed test components
- script: $(coreClrRepoRootDir)build-test$(scriptExt) skipnative skipgeneratelayout skiptestwrappers $(buildConfig) $(archType) $(crossArg) $(priorityArg) ci $(librariesOverrideArg)
- script: $(coreClrRepoRootDir)build-test$(scriptExt) $(runtimeFlavorArgs) skipnative skipgeneratelayout skiptestwrappers $(buildConfig) $(archType) $(crossArg) $(priorityArg) ci $(librariesOverrideArg)
displayName: Build managed test components


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ parameters:
runInUnloadableContext: false
naricc marked this conversation as resolved.
Show resolved Hide resolved
variables: {}
pool: ''
runtimeFlavorDisplayName: 'CoreCLR'

### Test run job

### Each test run job depends on a corresponding test build job with the same
### buildConfig and archType.

jobs:
- template: xplat-pipeline-job.yml
- template: /eng/pipelines/${{ parameters.runtimeFlavor }}/templates/xplat-pipeline-job.yml
parameters:
buildConfig: ${{ parameters.buildConfig }}
archType: ${{ parameters.archType }}
Expand All @@ -52,22 +53,22 @@ jobs:
dependsOn:
- ${{ if ne(parameters.corefxTests, true) }}:
- ${{ if eq(parameters.testGroup, 'innerloop') }}:
- 'coreclr_test_build_p0_${{ parameters.managedTestBuildOsGroup }}${{ parameters.managedTestBuildOsSubgroup }}_${{ parameters.archType }}_${{parameters.buildConfig }}'
- '${{ parameters.runtimeFlavor }}_test_build_p0_${{ parameters.managedTestBuildOsGroup }}${{ parameters.managedTestBuildOsSubgroup }}_${{ parameters.archType }}_${{parameters.buildConfig }}'
- ${{ if ne(parameters.testGroup, 'innerloop') }}:
- 'coreclr_test_build_p1_${{ parameters.managedTestBuildOsGroup }}${{ parameters.managedTestBuildOsSubgroup }}_${{ parameters.archType }}_${{parameters.buildConfig }}'
- '${{ parameters.runtimeFlavor }}_test_build_p1_${{ parameters.managedTestBuildOsGroup }}${{ parameters.managedTestBuildOsSubgroup }}_${{ parameters.archType }}_${{parameters.buildConfig }}'
- ${{ if ne(parameters.stagedBuild, true) }}:
- ${{ format('coreclr_product_build_{0}{1}_{2}_{3}', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
- ${{ format('{0}_product_build_{1}{2}_{3}_{4}', parameters.runtimeFlavor, parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
- ${{ if ne(parameters.liveLibrariesBuildConfig, '') }}:
- ${{ format('libraries_build_{0}{1}_{2}_{3}', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.liveLibrariesBuildConfig) }}

# Compute job name from template parameters
${{ if eq(parameters.testGroup, 'innerloop') }}:
name: 'run_test_p0_${{ parameters.displayNameArgs }}_${{ parameters.osGroup }}${{ parameters.osSubgroup }}_${{ parameters.archType }}_${{ parameters.buildConfig }}'
displayName: 'CoreCLR Pri0 Test Run ${{ parameters.displayNameArgs }} ${{ parameters.osGroup }}${{ parameters.osSubgroup }} ${{ parameters.archType }} ${{ parameters.buildConfig }}'
name: 'run_test_p0_${{ parameters.runtimeFlavor }}_${{ parameters.displayNameArgs }}_${{ parameters.osGroup }}${{ parameters.osSubgroup }}_${{ parameters.archType }}_${{ parameters.buildConfig }}'
displayName: '${{ parameters.runtimeFlavorDisplayName }} Pri0 Test Run ${{ parameters.displayNameArgs }} ${{ parameters.osGroup }}${{ parameters.osSubgroup }} ${{ parameters.archType }} ${{ parameters.buildConfig }}'

${{ if ne(parameters.testGroup, 'innerloop') }}:
name: 'run_test_p1_${{ parameters.displayNameArgs }}_${{ parameters.osGroup }}${{ parameters.osSubgroup }}_${{ parameters.archType }}_${{ parameters.buildConfig }}'
displayName: 'CoreCLR Pri1 Test Run ${{ parameters.displayNameArgs }} ${{ parameters.osGroup }}${{ parameters.osSubgroup }} ${{ parameters.archType }} ${{ parameters.buildConfig }}'
displayName: '${{ parameters.runtimeFlavorDisplayName }} Pri1 Test Run ${{ parameters.displayNameArgs }} ${{ parameters.osGroup }}${{ parameters.osSubgroup }} ${{ parameters.archType }} ${{ parameters.buildConfig }}'

variables:
- name: testhostArg
Expand Down Expand Up @@ -190,6 +191,22 @@ jobs:
displayName: 'product build'


- ${{ if eq(parameters.runtimeFlavor, 'mono') }}:
# We need to explictly download CoreCLR for Mono
naricc marked this conversation as resolved.
Show resolved Hide resolved
- template: /eng/pipelines/common/download-artifact-step.yml
parameters:
unpackFolder: $(coreClrProductRootFolderPath)
artifactFileName: '$(coreClrProductArtifactName)$(archiveExtension)'
artifactName: '$(coreClrProductArtifactName)'
displayName: 'CoreCLR product download for Mono'

- script: $(Build.SourcesDirectory)$(dir)build$(scriptExt)
-ci
naricc marked this conversation as resolved.
Show resolved Hide resolved
-projects $(Build.SourcesDirectory)/src/mono
naricc marked this conversation as resolved.
Show resolved Hide resolved
/t:PatchCoreClrCoreRoot
displaName: "Patch dotnet with mono"


# Download and unzip the Microsoft.NET.Sdk.IL package needed for traversing
# ilproj test projects during copynativeonly.
- ${{ if ne(parameters.corefxTests, true) }}:
Expand Down Expand Up @@ -239,7 +256,7 @@ jobs:


# Send tests to Helix
- template: /eng/pipelines/coreclr/templates/send-to-helix-step.yml
- template: /eng/pipelines/common/templates/send-to-helix-step.yml
parameters:
displayName: Send tests to Helix
buildConfig: $(buildConfigUpper)
Expand Down
4 changes: 4 additions & 0 deletions eng/pipelines/common/xplat-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ parameters:
jobs:
- template: ${{ coalesce(parameters.helixQueuesTemplate, parameters.jobTemplate) }}
parameters:
${{ if eq(parameters.runtimeFlavor, 'coreclr') }}:
runtimeFlavorDisplayName: 'CoreCLR'
${{ if eq(parameters.runtimeFlavor, 'mono') }}:
runtimeFlavorDisplayName: 'Mono'
variables:
# Workaround for azure devops flakiness when dowloading artifacts
# https://github.com/dotnet/runtime/issues/32805
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/coreclr/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
#
- template: /eng/pipelines/common/platform-matrix.yml
parameters:
jobTemplate: /eng/pipelines/coreclr/templates/run-test-job.yml
jobTemplate: /eng/pipelines/common/templates/run-test-job.yml
buildConfig: checked
platformGroup: all
helixQueueGroup: ci
Expand All @@ -127,7 +127,7 @@ jobs:
#
- template: /eng/pipelines/common/platform-matrix.yml
parameters:
jobTemplate: /eng/pipelines/coreclr/templates/run-test-job.yml
jobTemplate: /eng/pipelines/common/templates/run-test-job.yml
buildConfig: checked
platforms:
- Linux_arm64
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/coreclr/corefx-jitstress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- template: /eng/pipelines/common/platform-matrix.yml
parameters:
jobTemplate: /eng/pipelines/coreclr/templates/run-test-job.yml
jobTemplate: /eng/pipelines/common/templates/run-test-job.yml
buildConfig: checked
platforms:
# TODO: add Windows_NT_arm64, when we have hardware available, and .NET Core supports it. Note: platform-matrix.yml needs to enable a Helix queue for this.
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/coreclr/corefx-jitstress2-jitstressregs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- template: /eng/pipelines/common/platform-matrix.yml
parameters:
jobTemplate: /eng/pipelines/coreclr/templates/run-test-job.yml
jobTemplate: /eng/pipelines/common/templates/run-test-job.yml
buildConfig: checked
platforms:
# TODO: add Windows_NT_arm64, when we have hardware available, and .NET Core supports it. Note: platform-matrix.yml needs to enable a Helix queue for this.
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/coreclr/corefx-jitstressregs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- template: /eng/pipelines/common/platform-matrix.yml
parameters:
jobTemplate: /eng/pipelines/coreclr/templates/run-test-job.yml
jobTemplate: /eng/pipelines/common/templates/run-test-job.yml
buildConfig: checked
platforms:
# TODO: add Windows_NT_arm64, when we have hardware available, and .NET Core supports it. Note: platform-matrix.yml needs to enable a Helix queue for this.
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/coreclr/corefx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- template: /eng/pipelines/common/platform-matrix.yml
parameters:
jobTemplate: /eng/pipelines/coreclr/templates/run-test-job.yml
jobTemplate: /eng/pipelines/common/templates/run-test-job.yml
buildConfig: checked
platforms:
# TODO: add Windows_NT_arm64, when we have hardware available, and .NET Core supports it. Note: platform-matrix.yml needs to enable a Helix queue for this.
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/coreclr/crossgen2-outerloop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- template: /eng/pipelines/common/platform-matrix.yml
parameters:
jobTemplate: /eng/pipelines/coreclr/templates/run-test-job.yml
jobTemplate: /eng/pipelines/common/templates/run-test-job.yml
helixQueuesTemplate: /eng/pipelines/coreclr/templates/helix-queues-setup.yml
buildConfig: checked
platforms:
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/coreclr/crossgen2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- template: /eng/pipelines/common/platform-matrix.yml
parameters:
jobTemplate: /eng/pipelines/coreclr/templates/run-test-job.yml
jobTemplate: /eng/pipelines/common/templates/run-test-job.yml
helixQueuesTemplate: /eng/pipelines/coreclr/templates/helix-queues-setup.yml
buildConfig: checked
platforms:
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/coreclr/gc-longrunning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

- template: /eng/pipelines/common/platform-matrix.yml
parameters:
jobTemplate: /eng/pipelines/coreclr/templates/run-test-job.yml
jobTemplate: /eng/pipelines/common/templates/run-test-job.yml
buildConfig: release
platforms:
- Linux_x64
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/coreclr/jitstress-isas-x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

- template: /eng/pipelines/common/platform-matrix.yml
parameters:
jobTemplate: /eng/pipelines/coreclr/templates/run-test-job.yml
jobTemplate: /eng/pipelines/common/templates/run-test-job.yml
buildConfig: checked
platforms:
- Linux_x64
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/coreclr/release-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
#
- template: /eng/pipelines/common/platform-matrix.yml
parameters:
jobTemplate: /eng/pipelines/coreclr/templates/run-test-job.yml
jobTemplate: /eng/pipelines/common/templates/run-test-job.yml
buildConfig: release
platformGroup: all
helixQueueGroup: ci
Expand All @@ -58,7 +58,7 @@ jobs:
#
- template: /eng/pipelines/common/platform-matrix.yml
parameters:
jobTemplate: /eng/pipelines/coreclr/templates/run-test-job.yml
jobTemplate: /eng/pipelines/common/templates/run-test-job.yml
buildConfig: release
platformGroup: all
helixQueueGroup: ci
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/coreclr/templates/test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
variables: ${{ parameters.variables }}
pool: ${{ parameters.pool }}

- template: /eng/pipelines/coreclr/templates/run-test-job.yml
- template: /eng/pipelines/common/templates/run-test-job.yml
parameters:
buildConfig: ${{ parameters.buildConfig }}
liveLibrariesBuildConfig: ${{ parameters.liveLibrariesBuildConfig }}
Expand Down
6 changes: 4 additions & 2 deletions eng/pipelines/mono/templates/build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ jobs:
value: ${{ parameters.osSubgroup }}
- name: officialBuildIdArg
value: ''
- name: osOverride
value: ''
# Strip symbols only on the release build
- ${{ if eq(parameters.buildConfig, 'Release') }}:
- name: stripSymbolsArg
value: '-stripsymbols'
naricc marked this conversation as resolved.
Show resolved Hide resolved
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}:
- name: officialBuildIdArg
value: '/p:officialBuildId=$(Build.BuildNumber)'
Expand Down
10 changes: 10 additions & 0 deletions eng/pipelines/mono/templates/xplat-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@ jobs:
- name: osSubgroup
value: ${{ parameters.osSubgroup }}

- name: coreClrRepoRoot
value: '$(Build.SourcesDirectory)/src/coreclr'

- name: coreClrRepoRootDir
value: '$(coreClrRepoRoot)$(dir)'

- name: priorityArg
value: ''
naricc marked this conversation as resolved.
Show resolved Hide resolved


- ${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}:
- name: _HelixSource
value: official/dotnet/runtime/$(Build.SourceBranch)
Expand Down
35 changes: 35 additions & 0 deletions eng/pipelines/mono/templates/xplat-pipeline-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ parameters:
strategy: ''
pool: ''
llvm: false
liveRuntimeBuildConfig: 'release'

# arcade-specific parameters
condition: true
Expand Down Expand Up @@ -46,15 +47,49 @@ jobs:
gatherAssetManifests: ${{ parameters.gatherAssetManifests }}

variables:

- name: coreClrProductArtifactName
value: 'CoreCLRProduct_$(osGroup)$(osSubgroup)_$(archType)_${{ parameters.liveRuntimeBuildConfig }}'

- name: coreClrProductRootFolderPath
value: '$(Build.SourcesDirectory)/artifacts/bin/coreclr/$(osGroup).$(archType).${{ parameters.liveRuntimeBuildConfig }}'

- name: buildProductArtifactName
${{ if ne(parameters.llvm, true) }}:
value: 'MonoProduct_$(osGroup)$(osSubgroup)_$(archType)_$(buildConfig)'
${{ if eq(parameters.llvm, true) }}:
value: 'MonoProduct_LLVM_$(osGroup)$(osSubgroup)_$(archType)_$(buildConfig)'

- name: binTestsPath
value: '$(Build.SourcesDirectory)/artifacts/tests/coreclr'

- name: buildProductRootFolderPath
value: '$(Build.SourcesDirectory)/artifacts/bin/mono/$(osGroup).$(archType).$(buildConfigUpper)'

- name: managedTestArtifactRootFolderPath
value: '$(binTestsPath)/$(osGroup).$(archType).$(buildConfigUpper)'

- name: managedTestArtifactName
value: 'CoreCLRManagedTestArtifacts_${{ parameters.managedTestBuildOsGroup }}${{ parameters.managedTestBuildOsSubgroup }}_$(archType)_$(buildConfig)'

- name: microsoftNetSdkIlFolderPath
value: '$(Build.SourcesDirectory)/.packages/microsoft.net.sdk.il'

- name: microsoftNetSdkIlArtifactName
value: 'MicrosoftNetSdkIlPackage_${{ parameters.managedTestBuildOsGroup }}${{ parameters.managedTestBuildOsSubgroup }}_$(archType)_$(buildConfig)'

- name: monoRepoRoot
value: '$(Build.SourcesDirectory)/src/mono'

- name: nativeTestArtifactName
value: 'CoreCLRNativeTestArtifacts_$(osGroup)$(osSubgroup)_$(archType)_$(buildConfig)'

- name: nativeTestArtifactRootFolderPath
value: '$(binTestsPath)/obj/$(osGroup).$(archType).$(buildConfigUpper)'




- librariesBuildArtifactName: ''
- librariesOverrideArg: ''
- librariesDownloadDir: ''
Expand Down
Loading