summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgor Chesakov <Egor.Chesakov@microsoft.com>2018-12-10 16:53:40 -0800
committerGitHub <noreply@github.com>2018-12-10 16:53:40 -0800
commit86ae71ac96ed44399de26bad3542fc5ddc04bbf9 (patch)
treea30bf82b16618be7bb64a184b0e753d09c198ae3
parent9084476de3173deaf3c2c39549411fa55f500f72 (diff)
downloadcoreclr-86ae71ac96ed44399de26bad3542fc5ddc04bbf9.tar.gz
coreclr-86ae71ac96ed44399de26bad3542fc5ddc04bbf9.tar.bz2
coreclr-86ae71ac96ed44399de26bad3542fc5ddc04bbf9.zip
Specify HelixTargetQueues in yaml (#21443)
* Parametrize test-job with helixQueues(Public|Internal) in eng/test-job.yml and specify them in eng/platform-matrix.yml * Remove HelixTargetQueues property in tests/helixpublishwitharcade.proj * Fix the error "unknown os: linux2" with Python script
-rw-r--r--eng/platform-matrix.yml22
-rw-r--r--eng/test-job.yml12
-rw-r--r--tests/helixpublishwitharcade.proj25
-rwxr-xr-xtests/runtest_helix.py2
4 files changed, 33 insertions, 28 deletions
diff --git a/eng/platform-matrix.yml b/eng/platform-matrix.yml
index fb1a3c66ed..6d84bbbf4a 100644
--- a/eng/platform-matrix.yml
+++ b/eng/platform-matrix.yml
@@ -16,6 +16,8 @@ jobs:
osGroup: Linux
osGroupName: Linux
containerName: ubuntu_1404_arm_cross_build_image
+ helixQueuesPublic: 'Ubuntu.1404.Arm32.Open'
+ # Currently we don't have Linux/arm32 internal Helix queues
${{ insert }}: ${{ parameters.jobParameters }}
# Linux arm64
@@ -26,6 +28,8 @@ jobs:
osGroup: Linux
osGroupName: Linux
containerName: ubuntu_1604_arm64_cross_build_image
+ helixQueuesPublic: 'Debian.9.Arm64.Open,Ubuntu.1604.Arm64.Open,Ubuntu.1804.Arm64.Open'
+ helixQueuesInternal: 'Debian.9.Arm64,Ubuntu.1604.Arm64,Ubuntu.1804.Arm64'
${{ insert }}: ${{ parameters.jobParameters }}
# Linux musl
@@ -36,6 +40,8 @@ jobs:
osGroup: Linux
osGroupName: Linux_musl
containerName: musl_x64_build_image
+ helixQueuesPublic: 'Alpine.3.Arm64.Open'
+ helixQueuesInternal: 'Alpine.3.Arm64'
${{ insert }}: ${{ parameters.jobParameters }}
# RHEL 6
@@ -46,6 +52,8 @@ jobs:
osGroup: Linux
osGroupName: Linux_rhel6
containerName: centos6_x64_build_image
+ helixQueuesPublic: 'RedHat.6.Amd64.Open'
+ helixQueuesInternal: 'RedHat.6.Amd64'
${{ insert }}: ${{ parameters.jobParameters }}
# RHEL 7
@@ -56,6 +64,8 @@ jobs:
osGroup: Linux
osGroupName: Linux_rhel7
containerName: centos7_x64_build_image
+ helixQueuesPublic: 'Centos.7.Amd64.Open,Fedora.28.Amd64.Open,RedHat.7.Amd64.Open'
+ helixQueuesInternal: 'Centos.7.Amd64,Fedora.28.Amd64,RedHat.7.Amd64'
${{ insert }}: ${{ parameters.jobParameters }}
# Linux x64
@@ -67,6 +77,8 @@ jobs:
osGroup: Linux
osGroupName: Linux
containerName: ubuntu_1604_x64_build_image
+ helixQueuesPublic: 'Debian.8.Amd64.Open,Ubuntu.1604.Amd64.Open,Ubuntu.1804.Arm64.Open'
+ helixQueuesInternal: 'Debian.8.Amd64,Ubuntu.1604.Amd64,Ubuntu.1804.Arm64'
${{ insert }}: ${{ parameters.jobParameters }}
# macOS x64
@@ -77,6 +89,8 @@ jobs:
archType: x64
osGroup: OSX
osGroupName: OSX
+ helixQueuesPublic: 'OSX.1012.Amd64.Open,OSX.1013.Amd64.Open'
+ helixQueuesInternal: 'OSX.1012.Amd64,OSX.1013.Amd64'
${{ insert }}: ${{ parameters.jobParameters }}
# Windows x64/x86/arm/arm64
@@ -87,6 +101,8 @@ jobs:
archType: x64
osGroup: Windows_NT
osGroupName: Windows_NT
+ helixQueuesPublic: 'Windows.10.Amd64.Open,Windows.10.Nano.Amd64.Open,Windows.7.Amd64.Open,Windows.81.Amd64.Open'
+ helixQueuesInternal: 'Windows.10.Amd64,Windows.10.Nano.Amd64,Windows.10.Amd64.Core,Windows.7.Amd64,Windows.81.Amd64'
${{ insert }}: ${{ parameters.jobParameters }}
- template: ${{ parameters.jobTemplate }}
@@ -95,6 +111,8 @@ jobs:
archType: x86
osGroup: Windows_NT
osGroupName: Windows_NT
+ helixQueuesPublic: 'Windows.10.Amd64.Open,Windows.10.Nano.Amd64.Open,Windows.7.Amd64.Open,Windows.81.Amd64.Open'
+ helixQueuesInternal: 'Windows.10.Amd64,Windows.10.Nano.Amd64,Windows.10.Amd64.Core,Windows.7.Amd64,Windows.81.Amd64'
${{ insert }}: ${{ parameters.jobParameters }}
- template: ${{ parameters.jobTemplate }}
@@ -103,6 +121,8 @@ jobs:
archType: arm
osGroup: Windows_NT
osGroupName: Windows_NT
+ helixQueuesPublic: 'Windows.10.Arm64.Open'
+ helixQueuesInternal: 'Windows.10.Arm64'
${{ insert }}: ${{ parameters.jobParameters }}
- template: ${{ parameters.jobTemplate }}
@@ -111,4 +131,6 @@ jobs:
archType: arm64
osGroup: Windows_NT
osGroupName: Windows_NT
+ helixQueuesPublic: 'Windows.10.Arm64.Open'
+ helixQueuesInternal: 'Windows.10.Arm64'
${{ insert }}: ${{ parameters.jobParameters }}
diff --git a/eng/test-job.yml b/eng/test-job.yml
index 32acec383f..72b37f6506 100644
--- a/eng/test-job.yml
+++ b/eng/test-job.yml
@@ -6,6 +6,8 @@ parameters:
priority: 0
crossgen: false
scenarios: ''
+ helixQueuesPublic: ''
+ helixQueuesInternal: ''
### Test job
@@ -53,6 +55,12 @@ jobs:
- ${{ if eq(parameters.scenarios, '') }}:
- name: scenariosArg
value: ''
+ - ${{ if eq(variables['System.TeamProject'], 'public') }}:
+ - name: helixTargetQueuesArg
+ value: ${{ format('/p:HelixTargetQueues=\"{0}\"', parameters.helixQueuesPublic) }}
+ - ${{ if ne(variables['System.TeamProject'], 'public') }}:
+ - name: helixTargetQueuesArg
+ value: ${{ format('/p:HelixTargetQueues=\"{0}\"', parameters.helixQueuesInternal) }}
# TODO: Enable crossgen in build-test.sh. It currently doesn't
# accept a crossgen arg, so disable the macos/linux crossgen test
@@ -113,7 +121,7 @@ jobs:
# Send tests to helix
- ${{ if or(eq(parameters.osGroup, 'Linux'), eq(parameters.osGroup, 'OSX')) }}:
- - script: ./Tools/dotnetcli/dotnet msbuild tests/helixpublishwitharcade.proj /maxcpucount $(scenariosArg)
+ - script: ./Tools/dotnetcli/dotnet msbuild tests/helixpublishwitharcade.proj /maxcpucount $(scenariosArg) $(helixTargetQueuesArg)
displayName: Send test jobs to Helix
env:
${{ if eq(variables['System.TeamProject'], 'internal') }}:
@@ -123,7 +131,7 @@ jobs:
# Access token variable for public project
HelixAccessToken: $(BotAccount-dotnet-github-anon-kaonashi-bot-helix-token)
- ${{ if eq(parameters.osGroup, 'Windows_NT') }}:
- - script: .\Tools\dotnetcli\dotnet msbuild tests\helixpublishwitharcade.proj /maxcpucount $(scenariosArg)
+ - script: .\Tools\dotnetcli\dotnet msbuild tests\helixpublishwitharcade.proj /maxcpucount $(scenariosArg) $(helixTargetQueuesArg)
displayName: Send test jobs to Helix
env:
${{ if eq(variables['System.TeamProject'], 'internal') }}:
diff --git a/tests/helixpublishwitharcade.proj b/tests/helixpublishwitharcade.proj
index 50d7818f17..d4799690ca 100644
--- a/tests/helixpublishwitharcade.proj
+++ b/tests/helixpublishwitharcade.proj
@@ -12,31 +12,6 @@
<HelixType>test/stuff</HelixType>
<HelixBuild>$(BUILD_BUILDNUMBER)</HelixBuild>
- <!-- TODO: add target queues for rhel and linux-musl -->
- <!-- TODO: why don't we currently run tests on windows x86? -->
- <HelixTargetQueues Condition=" '$(BuildOS)' == 'Windows_NT' ">
- Windows.10.Amd64;
- Windows.10.Nano.Amd64;
- Windows.10.Amd64.Core;
- Windows.7.Amd64;
- Windows.81.Amd64
- </HelixTargetQueues>
- <HelixTargetQueues Condition=" '$(BuildOS)' == 'Linux' ">
- debian.82.amd64;
- fedora.27.amd64;
- fedora.28.amd64;
- redhat.73.amd64;
- ubuntu.1404.amd64;
- ubuntu.1604.amd64;
- ubuntu.1804.amd64;
- opensuse.423.amd64;
- sles.12.amd64
- </HelixTargetQueues>
- <HelixTargetQueues Condition=" '$(BuildOS)' == 'OSX' ">
- osx.1012.amd64;
- osx.1013.amd64
- </HelixTargetQueues>
-
<EnableXUnitReporter>true</EnableXUnitReporter>
<WaitForWorkItemCompletion>true</WaitForWorkItemCompletion>
<SourceDirectory>$(MSBuildProjectDirectory)/..</SourceDirectory>
diff --git a/tests/runtest_helix.py b/tests/runtest_helix.py
index 910d9d77ce..10ef1a4853 100755
--- a/tests/runtest_helix.py
+++ b/tests/runtest_helix.py
@@ -22,7 +22,7 @@ test_scenarios = {
"COMPlus_JitStress": "2" },
}
-if sys.platform == "linux" or sys.platform == "darwin":
+if sys.platform.startswith('linux') or sys.platform == "darwin":
platform_type = "unix"
elif sys.platform == "win32":
platform_type = "windows"