Keep probe logs out of the ignored log pattern

The repository ignores *.log, so the action log of a load run (with
the rolling update replacement lines) and the k6 output would never
reach evidence/. The probe now writes action.txt and k6/k6.txt.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Artyom
2026-10-28 19:52:55 +03:00
co-authored by Claude Opus 5.5
parent eb04fc10e3
commit e00eb6c878
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -128,7 +128,7 @@ def run_k6(out, env, on_start=None):
stderr=subprocess.STDOUT,
text=True,
)
with (Path(out) / "k6.log").open("w") as log:
with (Path(out) / "k6.txt").open("w") as log:
for line in process.stdout:
log.write(line)
if not started and "LOAD-START" in line:
@@ -301,7 +301,7 @@ def load(args):
def act():
time.sleep(args.warmup + args.lead)
action["start"] = time.time()
with (out / "action.log").open("w") as log:
with (out / "action.txt").open("w") as log:
action["exit"] = subprocess.call(
args.command, cwd=str(ROOT), stdout=log, stderr=subprocess.STDOUT
)
@@ -318,7 +318,7 @@ def load(args):
for thread in threads:
thread.join()
if "start" not in action:
raise SystemExit(f"k6 failed before the action (exit {code}), see {out / 'k6/k6.log'}")
raise SystemExit(f"k6 failed before the action (exit {code}), see {out / 'k6/k6.txt'}")
t0 = action["start"]
write_csv(
out / "probe.csv",