Skip to content

Commit 4199aa1

Browse files
akoeplingerJan Jahoda
authored andcommitted
Add runtime-community.yml pipeline and add s390x job (#60255)
1 parent 8b7d4e5 commit 4199aa1

File tree

4 files changed

+93
-0
lines changed

4 files changed

+93
-0
lines changed

eng/pipelines/common/platform-matrix.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,32 @@ jobs:
205205
${{ insert }}: ${{ parameters.jobParameters }}
206206
buildingOnSourceBuildImage: true
207207

208+
# Linux s390x
209+
210+
- ${{ if or(containsValue(parameters.platforms, 'Linux_s390x'), in(parameters.platformGroup, 'all', 'gcstress')) }}:
211+
- template: xplat-setup.yml
212+
parameters:
213+
jobTemplate: ${{ parameters.jobTemplate }}
214+
helixQueuesTemplate: ${{ parameters.helixQueuesTemplate }}
215+
variables: ${{ parameters.variables }}
216+
osGroup: Linux
217+
archType: s390x
218+
targetRid: linux-s390x
219+
platform: Linux_s390x
220+
container:
221+
image: ubuntu-18.04-cross-s390x-20201102145728-d6e0352
222+
registry: mcr
223+
jobParameters:
224+
runtimeFlavor: ${{ parameters.runtimeFlavor }}
225+
stagedBuild: ${{ parameters.stagedBuild }}
226+
buildConfig: ${{ parameters.buildConfig }}
227+
${{ if eq(parameters.passPlatforms, true) }}:
228+
platforms: ${{ parameters.platforms }}
229+
helixQueueGroup: ${{ parameters.helixQueueGroup }}
230+
crossBuild: true
231+
crossrootfsDir: '/crossrootfs/s390x'
232+
${{ insert }}: ${{ parameters.jobParameters }}
233+
208234
# WebAssembly
209235

210236
- ${{ if containsValue(parameters.platforms, 'Browser_wasm') }}:

eng/pipelines/libraries/helix-queues-setup.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ jobs:
8282
# Limiting interp runs as we don't need as much coverage.
8383
- (Debian.10.Amd64.Open)Ubuntu.1804.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-20210304164434-56c6673
8484

85+
# Linux s390x
86+
- ${{ if eq(parameters.platform, 'Linux_s390x') }}:
87+
- Ubuntu.2004.S390X.Experimental.Open
88+
8589
# OSX arm64
8690
- ${{ if eq(parameters.platform, 'OSX_arm64') }}:
8791
- OSX.1100.ARM64.Open
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
trigger: none
2+
3+
schedules:
4+
- cron: "0 7,19 * * *" # run at 7:00 and 19:00 (UTC) which is 23:00 and 11:00 (PST).
5+
displayName: Runtime-community default schedule
6+
branches:
7+
include:
8+
- main
9+
always: false # run only if there were changes since the last successful scheduled run.
10+
11+
variables:
12+
- template: /eng/pipelines/common/variables.yml
13+
14+
jobs:
15+
#
16+
# Evaluate paths
17+
#
18+
- ${{ if eq(variables.dependOnEvaluatePaths, true) }}:
19+
- template: /eng/pipelines/common/evaluate-default-paths.yml
20+
21+
#
22+
# s390x
23+
# Build the whole product using Mono and run libraries tests
24+
#
25+
- template: /eng/pipelines/common/platform-matrix.yml
26+
parameters:
27+
jobTemplate: /eng/pipelines/common/global-build-job.yml
28+
helixQueuesTemplate: /eng/pipelines/libraries/helix-queues-setup.yml
29+
buildConfig: Release
30+
runtimeFlavor: mono
31+
platforms:
32+
- Linux_s390x
33+
variables:
34+
# map dependencies variables to local variables
35+
- name: librariesContainsChange
36+
value: $[ dependencies.evaluate_paths.outputs['SetPathVars_libraries.containsChange'] ]
37+
- name: monoContainsChange
38+
value: $[ dependencies.evaluate_paths.outputs['SetPathVars_mono.containsChange'] ]
39+
jobParameters:
40+
testGroup: innerloop
41+
nameSuffix: AllSubsets_Mono
42+
buildArgs: -s mono+libs+host+packs+libs.tests -c $(_BuildConfig) /p:ArchiveTests=true
43+
timeoutInMinutes: 180
44+
condition: >-
45+
or(
46+
eq(dependencies.evaluate_paths.outputs['SetPathVars_libraries.containsChange'], true),
47+
eq(dependencies.evaluate_paths.outputs['SetPathVars_mono.containsChange'], true),
48+
eq(dependencies.evaluate_paths.outputs['SetPathVars_installer.containsChange'], true),
49+
eq(variables['isFullMatrix'], true))
50+
# extra steps, run tests
51+
extraStepsTemplate: /eng/pipelines/libraries/helix.yml
52+
extraStepsParameters:
53+
creator: dotnet-bot
54+
testRunNamePrefixSuffix: Mono_$(_BuildConfig)
55+
condition: >-
56+
or(
57+
eq(variables['librariesContainsChange'], true),
58+
eq(variables['monoContainsChange'], true),
59+
eq(variables['isFullMatrix'], true))

src/libraries/tests.proj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@
258258
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Security.Cryptography.OpenSsl/tests/System.Security.Cryptography.OpenSsl.Tests.csproj" />
259259
</ItemGroup>
260260

261+
<ItemGroup Condition="'$(TargetArchitecture)' == 's390x' and '$(RunDisableds390xTests)' != 'true'">
262+
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Drawing.Common\tests\System.Drawing.Common.Tests.csproj" />
263+
</ItemGroup>
264+
261265
<ItemGroup Condition="'$(TestSingleFile)' == 'true'">
262266
<!-- Run only a small randomly chosen set of passing test suites -->
263267
<ProjectExclusions Include="$(MSBuildThisFileDirectory)*\tests\**\*.Tests.csproj" />

0 commit comments

Comments
 (0)