Skip to content

Commit

Permalink
Always print test_execution_id (#492)
Browse files Browse the repository at this point in the history
Signed-off-by: Chinmay Gadgil <[email protected]>
  • Loading branch information
cgchinmay authored Mar 28, 2024
1 parent 4547df3 commit 490ec84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions osbenchmark/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,9 @@ def configure_results_publishing_params(args, cfg):
cfg.add(config.Scope.applicationOverride, "results_publishing", "numbers.align", args.results_numbers_align)


def print_test_execution_id(args):
console.info(f"[Test Execution ID]: {args.test_execution_id}")

def dispatch_sub_command(arg_parser, args, cfg):
sub_command = args.subcommand

Expand Down Expand Up @@ -860,6 +863,7 @@ def dispatch_sub_command(arg_parser, args, cfg):
configure_builder_params(args, cfg)
builder.install(cfg)
elif sub_command == "start":
print_test_execution_id(args)
cfg.add(config.Scope.applicationOverride, "system", "test_execution.id", args.test_execution_id)
cfg.add(config.Scope.applicationOverride, "system", "install.id", args.installation_id)
cfg.add(config.Scope.applicationOverride, "builder", "runtime.jdk", args.runtime_jdk)
Expand All @@ -874,6 +878,7 @@ def dispatch_sub_command(arg_parser, args, cfg):
# in this section that actually belong to dedicated subcommands (like install, start or stop). Over time
# these duplicated parameters will vanish as we move towards dedicated subcommands and use "execute-test" only
# to run the actual benchmark (i.e. generating load).
print_test_execution_id(args)
if args.effective_start_date:
cfg.add(config.Scope.applicationOverride, "system", "time.start", args.effective_start_date)
cfg.add(config.Scope.applicationOverride, "system", "test_execution.id", args.test_execution_id)
Expand Down

0 comments on commit 490ec84

Please sign in to comment.