Skip to content

Commit 5fd18c5

Browse files
committed
Add mixed platforms
Signed-off-by: Keith W. Campbell <[email protected]>
1 parent 02a3887 commit 5fd18c5

File tree

1 file changed

+69
-46
lines changed

1 file changed

+69
-46
lines changed

buildenv/jenkins/openjdk_tests

+69-46
Original file line numberDiff line numberDiff line change
@@ -1,121 +1,145 @@
11
#!groovy
22

3-
def PLATFORM_MAP = [
3+
def PLATFORM_MAP = [
44
'arm_linux' : [
55
'SPEC' : 'linux_arm',
6-
'LABEL' : 'ci.role.test&&sw.os.linux&&hw.arch.aarch32',
6+
'LABEL' : 'ci.role.test&&sw.os.linux&&hw.arch.aarch32'
77
],
88
'aarch64_linux' : [
99
'SPEC' : 'linux_aarch64_cmprssptrs',
10-
'LABEL' : 'ci.role.test&&sw.os.linux&&hw.arch.aarch64',
10+
'LABEL' : 'ci.role.test&&sw.os.linux&&hw.arch.aarch64'
11+
],
12+
'aarch64_linux_mixed' : [
13+
'SPEC' : 'linux_aarch64_mxdptrs',
14+
'LABEL' : 'ci.role.test&&sw.os.linux&&hw.arch.aarch64'
1115
],
1216
'aarch64_linux_xl' : [
1317
'SPEC' : 'linux_aarch64',
14-
'LABEL' : 'ci.role.test&&sw.os.linux&&hw.arch.aarch64',
18+
'LABEL' : 'ci.role.test&&sw.os.linux&&hw.arch.aarch64'
1519
],
1620
'ppc32_aix' : [
1721
'SPEC' : 'aix_ppc',
18-
'LABEL' : 'ci.role.test&&hw.arch.ppc64&&sw.os.aix',
22+
'LABEL' : 'ci.role.test&&hw.arch.ppc64&&sw.os.aix'
1923
],
2024
'ppc32_linux' : [
2125
'SPEC' : 'linux_ppc',
22-
'LABEL' : 'ci.role.test&&hw.arch.ppc64&&sw.os.linux',
26+
'LABEL' : 'ci.role.test&&hw.arch.ppc64&&sw.os.linux'
2327
],
2428
'ppc64_aix' : [
2529
'SPEC' : 'aix_ppc-64_cmprssptrs',
26-
'LABEL' : 'ci.role.test&&hw.arch.ppc64&&sw.os.aix',
30+
'LABEL' : 'ci.role.test&&hw.arch.ppc64&&sw.os.aix'
31+
],
32+
'ppc64_aix_mixed' : [
33+
'SPEC' : 'aix_ppc-64_mxdptrs',
34+
'LABEL' : 'ci.role.test&&hw.arch.ppc64&&sw.os.aix'
2735
],
2836
'ppc64_aix_xl' : [
2937
'SPEC' : 'aix_ppc-64',
30-
'LABEL' : 'ci.role.test&&hw.arch.ppc64&&sw.os.aix',
31-
],
32-
'ppc64_linux' : [
33-
'SPEC' : 'linux_ppc-64_cmprssptrs',
34-
'LABEL' : 'ci.role.test&&hw.arch.ppc64&&sw.os.linux',
35-
],
36-
'ppc64_linux_xl' : [
37-
'SPEC' : 'linux_ppc-64',
38-
'LABEL' : 'ci.role.test&&hw.arch.ppc64&&sw.os.linux',
38+
'LABEL' : 'ci.role.test&&hw.arch.ppc64&&sw.os.aix'
3939
],
4040
'ppc64le_linux' : [
4141
'SPEC' : 'linux_ppc-64_cmprssptrs_le',
42-
'LABEL' : 'ci.role.test&&hw.arch.ppc64le&&sw.os.linux',
42+
'LABEL' : 'ci.role.test&&hw.arch.ppc64le&&sw.os.linux'
43+
],
44+
'ppc64le_linux_mixed' : [
45+
'SPEC' : 'linux_ppc-64_mxdptrs_le',
46+
'LABEL' : 'ci.role.test&&hw.arch.ppc64le&&sw.os.linux'
4347
],
4448
'ppc64le_linux_xl' : [
4549
'SPEC' : 'linux_ppc-64_le',
46-
'LABEL' : 'ci.role.test&&hw.arch.ppc64le&&sw.os.linux',
50+
'LABEL' : 'ci.role.test&&hw.arch.ppc64le&&sw.os.linux'
51+
],
52+
'ppc64_linux' : [
53+
'SPEC' : 'linux_ppc-64_cmprssptrs',
54+
'LABEL' : 'ci.role.test&&hw.arch.ppc64&&sw.os.linux'
55+
],
56+
'ppc64_linux_xl' : [
57+
'SPEC' : 'linux_ppc-64',
58+
'LABEL' : 'ci.role.test&&hw.arch.ppc64&&sw.os.linux'
4759
],
4860
'riscv64_linux' : [
4961
'SPEC' : 'linux_riscv64_cmprssptrs',
50-
'LABEL' : 'ci.role.test&&sw.os.linux&&hw.arch.riscv&&hw.bits.64',
62+
'LABEL' : 'ci.role.test&&sw.os.linux&&hw.arch.riscv&&hw.bits.64'
5163
],
5264
'riscv64_linux_xl' : [
5365
'SPEC' : 'linux_riscv64',
54-
'LABEL' : 'ci.role.test&&sw.os.linux&&hw.arch.riscv&&hw.bits.64',
66+
'LABEL' : 'ci.role.test&&sw.os.linux&&hw.arch.riscv&&hw.bits.64'
5567
],
5668
's390_linux' : [
5769
'SPEC' : 'linux_390',
58-
'LABEL' : 'ci.role.test&&hw.arch.s390x&&sw.os.linux&&hw.bits.32',
59-
],
60-
's390_zos' : [
61-
'SPEC' : 'zos_390',
62-
'LABEL' : 'ci.role.test&&hw.arch.s390x&&sw.os.zos',
70+
'LABEL' : 'ci.role.test&&hw.arch.s390x&&sw.os.linux&&hw.bits.32'
6371
],
6472
's390x_linux' : [
6573
'SPEC' : 'linux_390-64_cmprssptrs',
66-
'LABEL' : 'ci.role.test&&hw.arch.s390x&&sw.os.linux',
74+
'LABEL' : 'ci.role.test&&hw.arch.s390x&&sw.os.linux'
75+
],
76+
's390x_linux_mixed' : [
77+
'SPEC' : 'linux_390-64_mxdptrs',
78+
'LABEL' : 'ci.role.test&&hw.arch.s390x&&sw.os.linux'
6779
],
6880
's390x_linux_xl' : [
6981
'SPEC' : 'linux_390-64',
70-
'LABEL' : 'ci.role.test&&hw.arch.s390x&&sw.os.linux',
82+
'LABEL' : 'ci.role.test&&hw.arch.s390x&&sw.os.linux'
7183
],
7284
's390x_zos' : [
7385
'SPEC' : 'zos_390-64_cmprssptrs',
74-
'LABEL' : 'ci.role.test&&hw.arch.s390x&&sw.os.zos',
86+
'LABEL' : 'ci.role.test&&hw.arch.s390x&&sw.os.zos'
7587
],
7688
's390x_zos_xl' : [
7789
'SPEC' : 'zos_390-64',
78-
'LABEL' : 'ci.role.test&&hw.arch.s390x&&sw.os.zos',
90+
'LABEL' : 'ci.role.test&&hw.arch.s390x&&sw.os.zos'
91+
],
92+
's390_zos' : [
93+
'SPEC' : 'zos_390',
94+
'LABEL' : 'ci.role.test&&hw.arch.s390x&&sw.os.zos'
7995
],
8096
'sparcv9_solaris' : [
8197
'SPEC' : 'sunos_sparcv9-64_cmprssptrs',
82-
'LABEL' : 'ci.role.test&&hw.arch.sparcv9&&sw.os.sunos',
98+
'LABEL' : 'ci.role.test&&hw.arch.sparcv9&&sw.os.sunos'
8399
],
84100
'x86-32_linux' : [
85101
'SPEC' : 'linux_x86',
86-
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.linux',
102+
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.linux'
87103
],
88104
'x86-32_windows' : [
89105
'SPEC' : 'win_x86',
90-
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.windows',
106+
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.windows'
91107
],
92108
'x86-64_linux' : [
93109
'SPEC' : 'linux_x86-64_cmprssptrs',
94-
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.linux',
95-
],
96-
'x86-64_linux_xl' : [
97-
'SPEC' : 'linux_x86-64',
98-
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.linux',
110+
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.linux'
99111
],
100112
'x86-64_linux_mixed' : [
101113
'SPEC' : 'linux_x86-64_mxdptrs',
102-
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.linux',
114+
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.linux'
115+
],
116+
'x86-64_linux_xl' : [
117+
'SPEC' : 'linux_x86-64',
118+
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.linux'
103119
],
104120
'x86-64_mac' : [
105121
'SPEC' : 'osx_x86-64_cmprssptrs',
106-
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.osx',
122+
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.osx'
123+
],
124+
'x86-64_mac_mixed' : [
125+
'SPEC' : 'osx_x86-64_mxdptrs',
126+
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.osx'
107127
],
108128
'x86-64_mac_xl' : [
109129
'SPEC' : 'osx_x86-64',
110-
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.osx',
130+
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.osx'
111131
],
112132
'x86-64_windows' : [
113133
'SPEC' : 'win_x86-64_cmprssptrs',
114-
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.windows',
134+
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.windows'
135+
],
136+
'x86-64_windows_mixed' : [
137+
'SPEC' : 'win_x86-64_mxdptrs',
138+
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.windows'
115139
],
116140
'x86-64_windows_xl' : [
117141
'SPEC' : 'win_x86-64',
118-
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.windows',
142+
'LABEL' : 'ci.role.test&&hw.arch.x86&&sw.os.windows'
119143
]
120144
]
121145

@@ -195,7 +219,7 @@ if (JDK_VERSIONS.size() > 1 || JDK_IMPLS.size() > 1 || PLATFORMS.size() >1 || PL
195219
if (nodes < 1) {
196220
// If no active node matches the label, we see if there's a timeout value set.
197221
// If there is, we wait and check again periodically. If not, we fail immediately.
198-
222+
199223
boolean didnt_find_node = true
200224

201225
if (params.ACTIVE_NODE_TIMEOUT && params.ACTIVE_NODE_TIMEOUT.isInteger()) {
@@ -237,10 +261,10 @@ if (JDK_VERSIONS.size() > 1 || JDK_IMPLS.size() > 1 || PLATFORMS.size() >1 || PL
237261
sh "git clone -b ${SCM_GIT_BRANCH} ${SCM_GIT_REPO_VAL} openjdk-tests"
238262
} else {
239263
def gitConfig = scm.getUserRemoteConfigs().get(0)
240-
264+
241265
// Adopt windows machines require env here https://github.com/AdoptOpenJDK/openjdk-tests/issues/1803
242266
ref_cache = "${env.HOME}/openjdk_cache"
243-
267+
244268
checkout scm: [$class: 'GitSCM',
245269
branches: [[name: "${scm.branches[0].name}"]],
246270
extensions: [
@@ -258,4 +282,3 @@ if (JDK_VERSIONS.size() > 1 || JDK_IMPLS.size() > 1 || PLATFORMS.size() >1 || PL
258282
assert false : "Cannot find key PLATFORM: ${params.PLATFORM} in PLATFORM_MAP: ${PLATFORM_MAP}."
259283
}
260284
}
261-

0 commit comments

Comments
 (0)