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

Produce Mono+LLVM runtime packs on desktop platforms #35841

Merged
merged 35 commits into from
May 18, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
2f3a143
Add LLVM Mono runtime build
directhex May 4, 2020
8c49666
Switch from 'llvm' boolean to 'runtimeVariant' freeform string in yaml
directhex May 5, 2020
496ffbb
Add an LLVM suffix to installer nupkgs
directhex May 5, 2020
f1b4472
Fix up yaml dependencies.
directhex May 5, 2020
65f0a4a
Fix another dependency
directhex May 5, 2020
fab5365
Resolve runtimeVariant variable properly
directhex May 5, 2020
393c10c
Fixup
directhex May 5, 2020
5d755a7
Tweak runtime artifact download name
directhex May 5, 2020
2c4bdea
Another runtimeVariant
directhex May 5, 2020
c36a78f
Add runtimeVariant to CoreCLR artifact names
directhex May 5, 2020
4230811
Add installer run for LLVM JIT Mono
directhex May 6, 2020
f5885de
Actually specifiy LLVM or not to installer build
directhex May 6, 2020
ae41da4
Merge remote-tracking branch 'origin/master' into llvm-runtime-packs
directhex May 6, 2020
6d188aa
Unique name for LLVM installer run
directhex May 6, 2020
5ba82c7
Ensure log uploads are disambiguated
directhex May 6, 2020
775cd6c
Fix dependency in full matrix
directhex May 6, 2020
45849b6
Add LLVMAOT variant, which bundles llc/opt for current arch
directhex May 7, 2020
aeb3f7c
Merge remote-tracking branch 'origin/master' into llvm-runtime-packs
directhex May 8, 2020
9987260
Merge remote-tracking branch 'origin/master' into llvm-runtime-packs
directhex May 13, 2020
482dae7
Unify runtimeMode into runtimeVariant
directhex May 13, 2020
49a6d92
Make sure we don't use Mono.LLVM package names on CoreCLR or Mobile
directhex May 13, 2020
09946d4
Fix perf runs to deal with runtimeVariant
directhex May 13, 2020
2fba625
Try to reconcile perf test artifact names
directhex May 13, 2020
42f4cfe
Another "except for interpreter"
directhex May 13, 2020
7be3b29
And again
directhex May 13, 2020
90e64c9
Make bundling llc/opt the default when LLVM enabled on Mono
directhex May 14, 2020
4187fd8
Capitalise Interpreter, so it's prettier on AzDO
directhex May 14, 2020
9f08f07
Merge remote-tracking branch 'origin/master' into llvm-runtime-packs
directhex May 15, 2020
3315b79
Merge remote-tracking branch 'origin/master' into llvm-runtime-packs
directhex May 15, 2020
a379c28
Merge remote-tracking branch 'origin/master' into llvm-runtime-packs
directhex May 15, 2020
3c3d44c
Merge remote-tracking branch 'origin/master' into llvm-runtime-packs
directhex May 15, 2020
f675e5f
Merge remote-tracking branch 'origin/master' into llvm-runtime-packs
directhex May 15, 2020
dff6abb
Merge remote-tracking branch 'origin/master' into llvm-runtime-packs
directhex May 18, 2020
902f2a2
Remove some Interpreter runtimeVariant stuff, now it's a Scenario ins…
directhex May 18, 2020
821d386
Fix tpyo
directhex May 18, 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
Prev Previous commit
Next Next commit
Unify runtimeMode into runtimeVariant
  • Loading branch information
directhex committed May 13, 2020
commit 482dae7ec7ea90c60dafe6b3d19d469ce34723b0
22 changes: 11 additions & 11 deletions eng/pipelines/common/templates/runtimes/run-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ parameters:
pool: ''
runtimeFlavor: 'coreclr'
runtimeFlavorDisplayName: 'CoreCLR'
runtimeMode: ''
runtimeModeDisplayName: ''

### Test run job

Expand Down Expand Up @@ -63,18 +61,24 @@ jobs:
- ${{ if ne(parameters.testGroup, 'innerloop') }}:
- '${{ parameters.runtimeFlavor }}_common_test_build_p1_${{ parameters.managedTestBuildOsGroup }}${{ parameters.managedTestBuildOsSubgroup }}_${{ parameters.archType }}_${{parameters.buildConfig }}'
- ${{ if ne(parameters.stagedBuild, true) }}:
- ${{ format('{0}_{1}_product_build_{2}{3}_{4}_{5}', parameters.runtimeFlavor, parameters.runtimeVariant, parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
- ${{ if eq(parameters.runtimeVariant, 'interpreter') }}:
### runtimeVariant affects build artifacts, but we want to use "normal"
### build artifacts for interpreter - there's no special interpreter
###artifact to download
- ${{ format('{0}__product_build_{1}{2}_{3}_{4}', parameters.runtimeFlavor, parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
- ${{ if ne(parameters.runtimeVariant, 'interpreter') }}:
- ${{ format('{0}_{1}_product_build_{2}{3}_{4}_{5}', parameters.runtimeFlavor, parameters.runtimeVariant, 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.runtimeFlavor }}${{ parameters.runtimeMode }}_${{ parameters.displayNameArgs }}_${{ parameters.osGroup }}${{ parameters.osSubgroup }}_${{ parameters.archType }}_${{ parameters.buildConfig }}'
displayName: '${{ parameters.runtimeFlavorDisplayName }} ${{ parameters.runtimeModeDisplayName}} Pri0 Runtime Tests Run ${{ parameters.displayNameArgs }} ${{ parameters.osGroup }}${{ parameters.osSubgroup }} ${{ parameters.archType }} ${{ parameters.buildConfig }}'
name: 'run_test_p0_${{ parameters.runtimeFlavor }}${{ parameters.runtimeVariant }}_${{ parameters.displayNameArgs }}_${{ parameters.osGroup }}${{ parameters.osSubgroup }}_${{ parameters.archType }}_${{ parameters.buildConfig }}'
displayName: '${{ parameters.runtimeFlavorDisplayName }} ${{ parameters.runtimeVariant}} Pri0 Runtime Tests 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: '${{ parameters.runtimeFlavorDisplayName }} ${{ parameters.runtimeModeDisplayName }} Pri1 Runtime Tests Run ${{ parameters.displayNameArgs }} ${{ parameters.osGroup }}${{ parameters.osSubgroup }} ${{ parameters.archType }} ${{ parameters.buildConfig }}'
displayName: '${{ parameters.runtimeFlavorDisplayName }} ${{ parameters.runtimeVariant }} Pri1 Runtime Tests Run ${{ parameters.displayNameArgs }} ${{ parameters.osGroup }}${{ parameters.osSubgroup }} ${{ parameters.archType }} ${{ parameters.buildConfig }}'

variables:
- name: testhostArg
Expand Down Expand Up @@ -109,10 +113,6 @@ jobs:
- name: crossgenArg
value: 'composite'

- ${{ if eq(parameters.runtimeMode, 'interpreter') }}:
- name: RuntimeModeDisplayName
value: 'Interpreter'

# Set job timeouts
#
# "timeoutPerTestCollectionInMinutes" is the time needed for the "biggest" xUnit test collection to complete.
Expand Down Expand Up @@ -461,6 +461,6 @@ jobs:
displayName: Publish Logs
inputs:
targetPath: $(Build.SourcesDirectory)/artifacts/log
artifactName: '${{ parameters.runtimeFlavor }}_${{ parameters.runtimeMode }}_$(LogNamePrefix)_$(osGroup)$(osSubgroup)_$(archType)_$(buildConfig)_${{ parameters.testGroup }}'
artifactName: '${{ parameters.runtimeFlavor }}_${{ parameters.runtimeVariant }}_$(LogNamePrefix)_$(osGroup)$(osSubgroup)_$(archType)_$(buildConfig)_${{ parameters.testGroup }}'
continueOnError: true
condition: always()
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ parameters:
gcSimulatorTests: ''
coreClrRepoRoot: ''
runtimeFlavorDisplayName: 'CoreCLR'
runtimeMode: ''
runtimeVariant: ''

steps:
- ${{ if eq(parameters.osGroup, 'Windows_NT') }}:
Expand Down Expand Up @@ -58,7 +58,7 @@ steps:
_TimeoutPerTestCollectionInMinutes: ${{ parameters.timeoutPerTestCollectionInMinutes }}
_TimeoutPerTestInMinutes: ${{ parameters.timeoutPerTestInMinutes }}
runtimeFlavorDisplayName: ${{ parameters.runtimeFlavorDisplayName }}
_RuntimeMode: ${{ parameters.runtimeMode }}
_RuntimeVariant: ${{ parameters.runtimeVariant }}
${{ if eq(parameters.publishTestResults, 'true') }}:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
# TODO: remove NUGET_PACKAGES once https://github.com/dotnet/arcade/issues/1578 is fixed
Expand Down Expand Up @@ -100,7 +100,7 @@ steps:
_TimeoutPerTestCollectionInMinutes: ${{ parameters.timeoutPerTestCollectionInMinutes }}
_TimeoutPerTestInMinutes: ${{ parameters.timeoutPerTestInMinutes }}
runtimeFlavorDisplayName: ${{ parameters.runtimeFlavorDisplayName }}
_RuntimeMode: ${{ parameters.runtimeMode }}
_RuntimeVariant: ${{ parameters.runtimeVariant }}
${{ if eq(parameters.publishTestResults, 'true') }}:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
# TODO: remove NUGET_PACKAGES once https://github.com/dotnet/arcade/issues/1578 is fixed
Expand Down
3 changes: 1 addition & 2 deletions eng/pipelines/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -815,8 +815,7 @@ jobs:
testGroup: innerloop
liveLibrariesBuildConfig: ${{ variables.debugOnPrReleaseOnRolling }}
liveRuntimeBuildConfig: release
runtimeMode: 'interpreter'
runtimeModeDisplayName: 'Interpreter'
runtimeVariant: 'interpreter'
condition: >-
or(
eq(dependencies.checkout.outputs['SetPathVars_mono.containsChange'], true),
Expand Down
8 changes: 4 additions & 4 deletions src/coreclr/tests/helixpublishwitharcade.proj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
RunInUnloadableContext=$(_RunInUnloadableContext);
TimeoutPerTestCollectionInMinutes=$(_TimeoutPerTestCollectionInMinutes);
TimeoutPerTestInMinutes=$(_TimeoutPerTestInMinutes);
RuntimeMode=$(_RuntimeMode)
RuntimeVariant=$(_RuntimeVariant)
</_PropertiesToPass>
</PropertyGroup>

Expand Down Expand Up @@ -181,7 +181,7 @@
<TestRunNamePrefix Condition=" '$(RunCrossGen2)' == 'true' ">R2R-CG2 </TestRunNamePrefix>
<TestRunNamePrefix Condition=" '$(Scenario)' == 'normal' ">$(TestRunNamePrefix)$(TargetOS) $(TargetArchitecture) $(Configuration) @ </TestRunNamePrefix>
<TestRunNamePrefix Condition=" '$(Scenario)' != 'normal' ">$(TestRunNamePrefix)$(TargetOS) $(TargetArchitecture) $(Configuration) $(Scenario) @ </TestRunNamePrefix>
<TestRunNamePrefix Condition=" '$(RuntimeMode)' == 'interpreter' ">$(TestRunNamePrefix) Interpreter </TestRunNamePrefix>
<TestRunNamePrefix Condition=" '$(RuntimeVariant)' == 'interpreter' ">$(TestRunNamePrefix) Interpreter </TestRunNamePrefix>
<TimeoutPerTestInMilliseconds Condition=" '$(TimeoutPerTestInMinutes)' != '' ">$([System.TimeSpan]::FromMinutes($(TimeoutPerTestInMinutes)).TotalMilliseconds)</TimeoutPerTestInMilliseconds>
<WaitForWorkItemCompletion>true</WaitForWorkItemCompletion>
<_XUnitParallelMode>collections</_XUnitParallelMode>
Expand All @@ -208,7 +208,7 @@
<HelixPreCommand Include="set __CollectDumps=1" />
<HelixPreCommand Include="set __CrashDumpFolder=%HELIX_DUMP_FOLDER%" />
<HelixPreCommand Include="type %__TestEnv%" />
<HelixPreCommand Include="set MONO_ENV_OPTIONS='--interpreter'" Condition=" '$(RuntimeMode)' == 'interpreter' " />
<HelixPreCommand Include="set MONO_ENV_OPTIONS='--interpreter'" Condition=" '$(RuntimeVariant)' == 'interpreter' " />
</ItemGroup>

<ItemGroup Condition=" '$(TargetsWindows)' != 'true' ">
Expand All @@ -228,7 +228,7 @@
<HelixPreCommand Include="cat $__TestEnv" />
<HelixPreCommand Include="sudo bash -c 'echo $HELIX_DUMP_FOLDER/core.%u.%p > /proc/sys/kernel/core_pattern'" Condition=" '$(TargetOS)' != 'OSX' " />
<HelixPreCommand Include="ulimit -c unlimited" Condition=" '$(TargetOS)' == 'OSX' " />
<HelixPreCommand Include="export MONO_ENV_OPTIONS='--interpreter" Condition=" '$(RuntimeMode)' == 'interpreter' " />
<HelixPreCommand Include="export MONO_ENV_OPTIONS='--interpreter" Condition=" '$(RuntimeVariant)' == 'interpreter' " />
</ItemGroup>

<PropertyGroup>
Expand Down