Skip to content

Commit 3498ec6

Browse files
committed
[GR-46794] Drop compiler JDK 17 CI jobs.
PullRequest: graal/14880
2 parents f938bfa + 054b7aa commit 3498ec6

File tree

4 files changed

+30
-46
lines changed

4 files changed

+30
-46
lines changed

compiler/ci/ci_common/gate.jsonnet

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@
191191
# fields of the denoted build.
192192
local gates = {
193193
"gate-compiler-test-labsjdk-21-linux-amd64": t("1:00:00") + c.mach5_target,
194-
"gate-compiler-test-labsjdk-17-linux-amd64": t("1:00:00"),
195194
"gate-compiler-test-labsjdk-21-linux-aarch64": t("1:50:00"),
196195
"gate-compiler-test-labsjdk-21-darwin-amd64": t("1:00:00") + c.mach5_target,
197196
"gate-compiler-test-labsjdk-21-darwin-aarch64": t("1:00:00"),
@@ -227,6 +226,8 @@
227226
# Each value in this map is an object that overrides or extends the
228227
# fields of the denoted build.
229228
local dailies = {
229+
"daily-compiler-test-labsjdk-21-windows-amd64": {},
230+
230231
"daily-compiler-ctw-labsjdk-21-linux-aarch64": {},
231232
"daily-compiler-ctw-labsjdk-21-darwin-amd64": {},
232233
"daily-compiler-ctw-labsjdk-21-darwin-aarch64": {},
@@ -247,11 +248,6 @@
247248
notify_emails: ["[email protected]"],
248249
},
249250

250-
"weekly-compiler-test-labsjdk-17-linux-aarch64": {},
251-
"weekly-compiler-test-labsjdk-17-windows-amd64": {},
252-
"weekly-compiler-test-labsjdk-17-darwin-amd64": {},
253-
"weekly-compiler-test-labsjdk-17-darwin-aarch64": {},
254-
255251
"weekly-compiler-test_vec16-labsjdk-21-linux-amd64": {},
256252
"weekly-compiler-test_avx0-labsjdk-21-linux-amd64": {},
257253
"weekly-compiler-test_avx1-labsjdk-21-linux-amd64": {},
@@ -261,8 +257,6 @@
261257
notify_emails: ["[email protected]"],
262258
},
263259

264-
"weekly-compiler-bootstrap_lite-labsjdk-17-darwin-amd64": t("1:00:00") + c.mach5_target,
265-
266260
"weekly-compiler-benchmarktest-labsjdk-21Debug-linux-amd64": t("3:00:00"),
267261

268262
"weekly-compiler-coverage*": {},
@@ -384,7 +378,6 @@
384378
"bootstrap_full"
385379
]
386380
for jdk in [
387-
"17",
388381
"21"
389382
]
390383
for os_arch in all_os_arches
@@ -394,7 +387,6 @@
394387
# probably require adding some capabilities.
395388
local all_zgc_builds = [self.make_build(jdk, os_arch, task).build
396389
for jdk in [
397-
"17",
398390
"21"
399391
]
400392
for os_arch in [

compiler/ci/ci_includes/bootstrap_extra.libsonnet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
# See definition of `gates` local variable in ../ci_common/gate.jsonnet
77
local gates = {
8-
"gate-compiler-bootstrap-labsjdk-20-linux-amd64": g.many_cores + c.mach5_target,
9-
"gate-compiler-bootstrap_economy-labsjdk-20-linux-amd64": g.many_cores + c.mach5_target,
8+
"gate-compiler-bootstrap-labsjdk-21-linux-amd64": g.many_cores + c.mach5_target,
9+
"gate-compiler-bootstrap_economy-labsjdk-21-linux-amd64": g.many_cores + c.mach5_target,
1010
},
1111

12-
# Builds run on only on linux-amd64-[jdk20]
12+
# Builds run on only on linux-amd64-jdk21
1313
local linux_amd64_builds = [g.make_build(jdk, "linux-amd64", task, gates_manifest=gates).build
14-
for jdk in ["17", "20"]
14+
for jdk in ["21"]
1515
for task in ["bootstrap", "bootstrap_economy"]
1616
],
1717

vm/ci/ci_common/libgraal.jsonnet

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,7 @@ local utils = import '../../../ci/ci_common/common-utils.libsonnet';
8080

8181
# See definition of `dailies` local variable in ../../compiler/ci_common/gate.jsonnet
8282
local dailies = {
83-
"daily-vm-libgraal_compiler-labsjdk-17-linux-amd64": {},
84-
"daily-vm-libgraal_truffle-labsjdk-17-linux-amd64": {},
85-
"daily-vm-libgraal_compiler_zgc-labsjdk-17-linux-amd64": {},
86-
"daily-vm-libgraal_truffle_zgc-labsjdk-17-linux-amd64": {},
8783
"daily-vm-libgraal_truffle_zgc-labsjdk-21-linux-amd64": {},
88-
"daily-vm-libgraal_compiler_quickbuild-labsjdk-17-linux-amd64": {},
89-
"daily-vm-libgraal_truffle_quickbuild-labsjdk-17-linux-amd64": {},
9084
},
9185

9286
# See definition of `weeklies` local variable in ../../compiler/ci_common/gate.jsonnet
@@ -123,7 +117,6 @@ local utils = import '../../../ci/ci_common/common-utils.libsonnet';
123117
monthlies_manifest=monthlies).build +
124118
vm["vm_java_" + jdk]
125119
for jdk in [
126-
"17",
127120
"21"
128121
]
129122
for os_arch in all_os_arches
@@ -175,7 +168,6 @@ local utils = import '../../../ci/ci_common/common-utils.libsonnet';
175168
monthlies_manifest=monthlies).build +
176169
vm["vm_java_" + jdk]
177170
for jdk in [
178-
"17",
179171
"21",
180172
]
181173
for os_arch in all_os_arches

vm/mx.vm/mx_vm_gate.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -84,26 +84,43 @@ def _unittest_config_participant(config):
8484

8585
mx_unittest.add_config_participant(_unittest_config_participant)
8686

87-
def _check_compiler_log(compiler_log_file, expectations, extra_check=None):
87+
def _check_compiler_log(compiler_log_file, expectations, extra_check=None, extra_log_files=None):
8888
"""
89-
Checks that `compiler_log_file` exists and that its contents match each regular expression in `expectations`.
89+
Checks that `compiler_log_file` exists and that its contents matches each regular expression in `expectations`.
9090
If all checks succeed, `compiler_log_file` is deleted.
9191
"""
92+
def append_extra_logs():
93+
suffix = ''
94+
if extra_log_files:
95+
for extra_log_file in extra_log_files:
96+
if exists(extra_log_file):
97+
nl = os.linesep
98+
with open(extra_log_file) as fp:
99+
lines = fp.readlines()
100+
if len(lines) > 50:
101+
lines = lines[0:25] + [f'...{nl}', f'<omitted {len(lines) - 50} lines>{nl}', f'...{nl}'] + lines[-50:]
102+
if lines:
103+
suffix += f'{nl}{extra_log_file}:\n' + ''.join(lines)
104+
return suffix
105+
92106
in_exception_path = sys.exc_info() != (None, None, None)
93107
if not exists(compiler_log_file):
94-
mx.abort('No output written to ' + compiler_log_file)
108+
mx.abort(f'No output written to {compiler_log_file}{append_extra_logs()}')
95109
with open(compiler_log_file) as fp:
96110
compiler_log = fp.read()
97111
if not isinstance(expectations, list) and not isinstance(expectations, tuple):
98112
expectations = [expectations]
99113
for pattern in expectations:
100114
if not re.search(pattern, compiler_log):
101-
mx.abort(f'Did not find expected pattern ("{pattern}") in compiler log:{linesep}{compiler_log}')
115+
mx.abort(f'Did not find expected pattern ("{pattern}") in compiler log:{linesep}{compiler_log}{append_extra_logs()}')
102116
if extra_check is not None:
103117
extra_check(compiler_log)
104118
if mx.get_opts().verbose or in_exception_path:
105119
mx.log(compiler_log)
106120
remove(compiler_log_file)
121+
if extra_log_files:
122+
for extra_log_file in extra_log_files:
123+
remove(extra_log_file)
107124

108125
def _test_libgraal_basic(extra_vm_arguments, libgraal_location):
109126
"""
@@ -314,6 +331,7 @@ def _test_libgraal_CompilationTimeout_Truffle(extra_vm_arguments):
314331
"""
315332
graalvm_home = mx_sdk_vm_impl.graalvm_home()
316333
compiler_log_file = abspath('graal-compiler.log')
334+
truffle_log_file = abspath('truffle-compiler.log')
317335
G = '-Dgraal.' #pylint: disable=invalid-name
318336
P = '-Dpolyglot.engine.' #pylint: disable=invalid-name
319337
for vm_can_exit in (False, True):
@@ -330,7 +348,7 @@ def _test_libgraal_CompilationTimeout_Truffle(extra_vm_arguments):
330348
f'{P}TraceCompilation=false',
331349
f'{P}CompileImmediately=true',
332350
f'{P}BackgroundCompilation=false',
333-
f'-Dpolyglot.log.file={compiler_log_file}',
351+
f'-Dpolyglot.log.file={truffle_log_file}',
334352
'-Ddebug.graal.CompilationWatchDog=true', # helps debug failure
335353
'-Dgraalvm.locatorDisabled=true',
336354
'-Dtruffle.attach.library=' + mx_subst.path_substitutions.substitute('<path:TRUFFLE_LIBGRAAL_TRUFFLEATTACH>/bin/<lib:truffleattach>'),
@@ -344,27 +362,9 @@ def _test_libgraal_CompilationTimeout_Truffle(extra_vm_arguments):
344362
exit_code = mx.run(cmd, nonZeroIsFatal=False, err=err)
345363
if err.data:
346364
mx.log(err.data)
347-
if 'Could not find or load main class com.oracle.truffle.sl.launcher.SLMain' in err.data:
348-
# Extra diagnostics to debug GR-43161
349-
350-
# Can we find the class with javap?
351-
cmd = [join(graalvm_home, 'bin', 'javap'), '-cp', cp, 'com.oracle.truffle.sl.launcher.SLMain']
352-
mx.log(' '.join(cmd))
353-
mx.run(cmd, nonZeroIsFatal=False)
354-
355-
# Maybe the class files are disappearing?
356-
for p in ('com.oracle.truffle.sl', 'com.oracle.truffle.sl.launcher'):
357-
classes_dir = mx.project(p).output_dir()
358-
mx.log(f'Contents of {classes_dir}:')
359-
for root, dirnames, filenames in os.walk(classes_dir):
360-
for name in dirnames + filenames:
361-
mx.log(' ' + join(root, name))
362-
363-
# Ignore this transient failure until it's clear what is causing it
364-
return
365365

366366
expectations = ['detected long running compilation'] + (['a stuck compilation'] if vm_can_exit else [])
367-
_check_compiler_log(compiler_log_file, expectations)
367+
_check_compiler_log(compiler_log_file, expectations, extra_log_files=[truffle_log_file])
368368
if vm_can_exit:
369369
# org.graalvm.compiler.core.CompilationWatchDog.EventHandler.STUCK_COMPILATION_EXIT_CODE
370370
if exit_code != 84:

0 commit comments

Comments
 (0)