Skip to content

Commit 8388724

Browse files
[GR-61278] Minimise the number of gates that run with tmpfs/
PullRequest: graal/19779
2 parents aae7098 + aa93283 commit 8388724

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

vm/ci/ci_common/common-bench.jsonnet

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ local vm_common = import '../ci_common/common.jsonnet';
88
local repo_config = import '../../../ci/repo-configuration.libsonnet';
99

1010
{
11-
vm_bench_common: {
11+
vm_bench_common_gate: {
1212
result_file:: 'results.json',
13+
capabilities+: ['e3'],
14+
timelimit: '1:30:00',
15+
},
16+
vm_bench_common: self.vm_bench_common_gate + {
1317
upload:: ['bench-uploader.py', self.result_file],
1418
upload_and_wait_for_indexing:: self.upload + ['--wait-for-indexing'],
15-
capabilities+: ['tmpfs25g', 'e3'],
16-
timelimit: '1:30:00',
19+
capabilities+: ['tmpfs25g'],
1720
},
1821

1922
vm_bench_js_linux_amd64(bench_suite=null): vm.vm_java_21 + vm_common.svm_common + vm_common.sulong + vm.custom_vm + self.vm_bench_common + {
@@ -69,7 +72,7 @@ local repo_config = import '../../../ci/repo-configuration.libsonnet';
6972
timelimit: '1:00:00',
7073
},
7174

72-
vm_bench_polybenchmarks_linux_common(vm_config='jvm', is_gate=false, suite='default:*'): vm_common.svm_common + vm_common.truffleruby + vm.custom_vm + self.vm_bench_common + vm.vm_java_21 + self.polybench_hpc_linux_common + self.vm_bench_polybenchmarks_base(env='polybench-${VM_ENV}') {
75+
vm_bench_polybenchmarks_linux_common(vm_config='jvm', is_gate=false, suite='default:*'): vm_common.svm_common + vm_common.truffleruby + vm.custom_vm + vm.vm_java_21 + self.polybench_hpc_linux_common + self.vm_bench_polybenchmarks_base(env='polybench-${VM_ENV}') {
7376
bench_cmd:: self.base_cmd + ['benchmark', '--results-file', self.result_file],
7477
setup+: [
7578
self.base_cmd + ['sforceimports'],
@@ -92,9 +95,9 @@ local repo_config = import '../../../ci/repo-configuration.libsonnet';
9295
notify_emails+: if (is_gate) then [] else [ 'boris.spasojevic@oracle.com' ],
9396
teardown+: if (is_gate) then [] else [ $.vm_bench_common.upload ],
9497
timelimit: if (is_gate) then '1:00:00' else '1:30:00',
95-
},
98+
} + (if is_gate then self.vm_bench_common_gate else self.vm_bench_common),
9699

97-
vm_bench_polybench_linux_common(env='polybench-${VM_ENV}', is_gate=false): vm_common.svm_common + vm_common.truffleruby + vm_common.graalpy + vm.custom_vm + self.vm_bench_common + vm_common.wasm {
100+
vm_bench_polybench_linux_common(env='polybench-${VM_ENV}', is_gate=false): vm_common.svm_common + vm_common.truffleruby + vm_common.graalpy + vm.custom_vm + vm_common.wasm {
98101
base_cmd:: ['mx', '--env', env],
99102
bench_cmd:: self.base_cmd + ['benchmark'] + (if (is_gate) then ['--fail-fast'] else []),
100103
interpreter_bench_cmd(vmConfig):: self.bench_cmd +
@@ -111,7 +114,7 @@ local repo_config = import '../../../ci/repo-configuration.libsonnet';
111114
self.base_cmd + ['build', '--dependencies=POLYBENCH_BENCHMARKS'],
112115
],
113116
notify_groups:: ['polybench'],
114-
},
117+
} + (if is_gate then self.vm_bench_common_gate else self.vm_bench_common),
115118

116119
vm_bench_polybench_hpc_linux_common(env, metric, benchmarks='*', polybench_vm_config='native-interpreter'): self.vm_bench_polybench_linux_common(env=env) + self.polybench_hpc_linux_common + {
117120
local machine_name = "e3", // restricting ourselves to specific hardware to ensure performance counters work there

0 commit comments

Comments
 (0)