Skip to content

Commit 50df183

Browse files
AarryaSarafclaude
andcommitted
[Data] batch_ablation: create --out dir before writing ablation.json
A fresh --out path crashed the final write (night2 gate run) after all cells had already printed; the tables survived only in the tee'd log. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Aarrya <aarrya.saraf@anyscale.com>
1 parent 6bc01ee commit 50df183

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

release/nightly_tests/dataset/arrow_rs_probe/batch_ablation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ def orchestrate(a):
337337
f"{r['rows']:>9} {rr:>5} {rw:>6} {gates}"
338338
)
339339

340+
os.makedirs(os.path.dirname(os.path.abspath(out_path)), exist_ok=True)
340341
with open(out_path, "w") as fh:
341342
json.dump({"cells": results, "verdict": verdict}, fh, indent=2)
342343
fails = {k: v for k, v in verdict.items() if not v["passed"]}

0 commit comments

Comments
 (0)