ci: preserve evidence when the Mac smoke launch stalls
Build / macos (push) Failing after 1m1s

This commit is contained in:
2026-09-09 23:51:29 +02:00
parent df23c84474
commit cda28cc6be
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -40,6 +40,9 @@ with tempfile.TemporaryFile() as log:
raise RuntimeError("Recording status allowed an unauthenticated request")
print("Local API readiness and authentication checks passed")
except Exception:
if process.poll() is None:
sample = subprocess.run(["sample", str(process.pid), "1", "1"], capture_output=True, text=True, timeout=10)
print(sample.stdout[:14000], file=sys.stderr)
log.seek(0)
print(log.read().decode(errors="replace")[-8000:], file=sys.stderr)
raise