Skip to content

Commit 2e20bdc

Browse files
committed
[GR-62567] Preserve and upload dacapo output files when a job fails.
PullRequest: graal/20226
2 parents 4c0255c + 1175e83 commit 2e20bdc

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

compiler/ci/ci_common/benchmark-suites.libsonnet

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
local c = (import '../../../ci/ci_common/common.jsonnet'),
33
local bc = (import '../../../ci/ci_common/bench-common.libsonnet'),
4+
local config = (import '../../../ci/repo-configuration.libsonnet'),
45
local cc = (import 'compiler-common.libsonnet'),
56

67
local _suite_key(a) = a['suite'],
@@ -41,6 +42,17 @@
4142
run+: [
4243
self.benchmark_cmd + ["dacapo:*", "--"] + self.extra_vm_args
4344
],
45+
logs+: [
46+
"%s/*/scratch/%s" % [config.compiler.compiler_suite, file]
47+
for file in [
48+
"biojava.out",
49+
"pmd-report.txt",
50+
] + [
51+
"lusearch.out%d" % n
52+
# only capture the files used for output validation; defined in lusearch.cnf
53+
for n in [0, 1, 2, 3, 4, 5, 6, 7, 265, 511, 767, 1023, 1279, 1535, 1791, 2047]
54+
]
55+
],
4456
timelimit: "1:30:00",
4557
forks_batches:: 2,
4658
bench_forks_per_batch:: 3,

sdk/mx.sdk/mx_sdk_benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def postprocessRunArgs(self, benchname, runArgs):
281281
mx.abort("Mismatch between suite-defined workload size ('{}') "
282282
"and user-provided one ('{}')!".format(self.workloadSize(), args.size))
283283

284-
otherArgs = ["-s", self.workloadSize()] + remaining
284+
otherArgs = ["-s", self.workloadSize(), "--preserve"] + remaining
285285

286286
if args.iterations:
287287
if args.iterations.isdigit():

0 commit comments

Comments
 (0)