From 20c99b29e951a9b3a3113fb378105a0e4d1b9ef5 Mon Sep 17 00:00:00 2001 From: Sunil Thaha Date: Thu, 8 Aug 2024 10:18:11 +1000 Subject: [PATCH] chore(validator): fix missing node-info in md Signed-off-by: Sunil Thaha --- e2e/tools/validator/src/validator/cli/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/e2e/tools/validator/src/validator/cli/__init__.py b/e2e/tools/validator/src/validator/cli/__init__.py index 7211d2244d..9eb480de25 100644 --- a/e2e/tools/validator/src/validator/cli/__init__.py +++ b/e2e/tools/validator/src/validator/cli/__init__.py @@ -7,6 +7,7 @@ import logging import os import subprocess +import time import typing from dataclasses import dataclass @@ -146,6 +147,10 @@ def write_md_report(results_dir: str, r: TestResult): for x in r.build_info: md.li(f"`{x}`") + md.h2("Node Info") + for x in r.node_info: + md.li(f"`{x}`") + md.h2("Machine Specs") md.add_machine_spec("Host", r.host_spec) if r.vm_spec is not None: @@ -287,6 +292,10 @@ def stress(cfg: config.Validator, script_path: str, report_dir: str): res.start_time = stress_test.start_time res.end_time = stress_test.end_time + # sleep a bit for prometheus to finish scrapping + click.secho(" * Sleeping for 10 seconds ...", fg="green") + time.sleep(10) + res.validations = run_validations(cfg, stress_test, results_dir) write_md_report(results_dir, res)