Skip to content

Commit

Permalink
Merge pull request #1681 from sthaha/fix-validator-node-info
Browse files Browse the repository at this point in the history
chore(validator): fix missing node-info in md
  • Loading branch information
sthaha authored Aug 8, 2024
2 parents 9a322d3 + 20c99b2 commit dd3e88b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions e2e/tools/validator/src/validator/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import logging
import os
import subprocess
import time
import typing
from dataclasses import dataclass

Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit dd3e88b

Please sign in to comment.