@@ -102,6 +102,12 @@ local repo_config = import '../../../ci/repo-configuration.libsonnet';
102102 timelimit: '4:00:00' ,
103103 },
104104
105+ build_polybenchmarks: [
106+ ['mx' , '--env' , '${VM_ENV}' , '--dy' , 'polybenchmarks' , 'sforceimports' ],
107+ ['mx' , '-p' , '../../polybenchmarks' , 'build_benchmarks' ],
108+ ['mx' , '--dy' , 'polybenchmarks' , 'build' , '--dependencies' , 'POLYBENCHMARKS_BENCHMARKS' ]
109+ ],
110+
105111 js_bench_compilation_throughput(pgo): self .vm_bench_common + common.heap.default + {
106112 local mx_libgraal = ["mx" , "--env" , repo_config.vm.mx_env.libgraal],
107113
@@ -311,8 +317,65 @@ local repo_config = import '../../../ci/repo-configuration.libsonnet';
311317 ],
312318 notify_groups +: ['javascript' ],
313319 }
320+ ] + [
321+ # Polybenchmarks jobs
322+ self .polybench_vm_gate('linux' , 'amd64' , 'espresso' , name='polybenchmarks' ) + {
323+ setup+: [
324+ ['mx' , '--dy' , '/espresso' , 'build' ]
325+ ] + $.build_polybenchmarks,
326+ run+: [
327+ self .polybench_wrap(['mx' , '--dy' , '/espresso,polybenchmarks' , '--java-home' , '${POLYBENCH_JVM}' , 'polybench' , '--suite' , 'polybenchmarks-espresso:gate' ]),
328+ ],
329+ },
330+ self .polybench_vm_daily('linux' , 'amd64' , 'espresso' , 'polybenchmarks' ) + {
331+ setup+: [
332+ ['mx' , '--dy' , '/espresso' , 'build' ]
333+ ] + $.build_polybenchmarks,
334+ run+: [
335+ self .polybench_wrap(['mx' , '--dy' , '/espresso,polybenchmarks' , '--java-home' , '${POLYBENCH_JVM}' , 'polybench' , '--suite' , 'polybenchmarks-espresso:benchmark' ]),
336+ ],
337+ },
338+
339+ self .polybench_vm_gate('linux' , 'amd64' , 'python' , name='polybenchmarks' ) + {
340+ setup+: [
341+ ['mx' , '--dy' , 'graalpython' , 'build' ]
342+ ] + $.build_polybenchmarks,
343+ run+: [
344+ self .polybench_wrap(['mx' , '--dy' , 'graalpython,polybenchmarks' , '--java-home' , '${POLYBENCH_JVM}' , 'polybench' , '--suite' , 'polybenchmarks-python:gate' ]),
345+ ],
346+ },
347+ self .polybench_vm_daily('linux' , 'amd64' , 'python' , 'polybenchmarks' ) + {
348+ setup+: [
349+ ['mx' , '--dy' , 'graalpython' , 'build' ]
350+ ] + $.build_polybenchmarks,
351+ run+: [
352+ self .polybench_wrap(['mx' , '--dy' , 'graalpython,polybenchmarks' , '--java-home' , '${POLYBENCH_JVM}' , 'polybench' , '--suite' , 'polybenchmarks-python:benchmark' ]),
353+ ],
354+ },
355+
356+ self .polybench_vm_gate('linux' , 'amd64' , 'ruby' , name='polybenchmarks' ) + common.deps.truffleruby + {
357+ environment+: {
358+ RUBY_BENCHMARKS: 'true' ,
359+ },
360+ setup+: [
361+ ['mx' , '--dy' , 'truffleruby' , 'build' ]
362+ ] + $.build_polybenchmarks,
363+ run+: [
364+ self .polybench_wrap(['mx' , '--dy' , 'truffleruby,polybenchmarks' , '--java-home' , '${POLYBENCH_JVM}' , 'polybench' , '--suite' , 'polybenchmarks-ruby:gate' ]),
365+ ],
366+ },
367+ self .polybench_vm_daily('linux' , 'amd64' , 'ruby' , 'polybenchmarks' ) + common.deps.truffleruby + {
368+ environment+: {
369+ RUBY_BENCHMARKS: 'true' ,
370+ },
371+ setup+: [
372+ ['mx' , '--dy' , 'truffleruby' , 'build' ]
373+ ] + $.build_polybenchmarks,
374+ run+: [
375+ self .polybench_wrap(['mx' , '--dy' , 'truffleruby,polybenchmarks' , '--java-home' , '${POLYBENCH_JVM}' , 'polybench' , '--suite' , 'polybenchmarks-ruby:benchmark' ]),
376+ ],
377+ },
314378 ],
315- # TODO (GR-60584): reimplement polybenchmarks jobs once polybench is unchained
316379
317380 builds: utils.add_defined_in(builds, std.thisFile ),
318381}
0 commit comments