Skip to content

Commit d75376b

Browse files
author
akolic
committed
Disable the 'agent' stage by default for micronaut-pegasus.
1 parent 3929a31 commit d75376b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

substratevm/mx.substratevm/mx_substratevm_benchmark.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,12 @@ def benchmarkName(self):
289289
def benchmarkList(self, bmSuiteArgs):
290290
return self.completeBenchmarkList(bmSuiteArgs)
291291

292+
def default_stages(self):
293+
if self.context.benchmark == "micronaut-pegasus":
294+
# The 'agent' stage is not supported, as currently we cannot run micronaut-pegasus on the JVM
295+
return ['instrument-image', 'instrument-run', 'image', 'run']
296+
return super().default_stages()
297+
292298
def application_nib(self):
293299
if self.benchmarkName() not in self._application_nibs:
294300
# Run subprocess retrieving the application nib from the Barista 'build' script
@@ -340,6 +346,7 @@ def extra_run_arg(self, benchmark, args, image_run_args):
340346
return []
341347

342348
def run(self, benchmarks, bmSuiteArgs) -> mx_benchmark.DataPoints:
349+
self.context = mx_sdk_benchmark.BaristaBenchmarkSuite.RuntimeContext(self, None, benchmarks[0], bmSuiteArgs)
343350
return self.intercept_run(super(), benchmarks, bmSuiteArgs)
344351

345352
def ensure_image_is_at_desired_location(self, bmSuiteArgs):

0 commit comments

Comments
 (0)