Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always print test_execution_id #492

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions osbenchmark/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,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 @@ -832,6 +835,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 @@ -846,6 +850,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
Loading