Repository navigation
problems/summarise.py: read only the suite's dated files - #53
Conversation
The loader read every .jsonl under problems/results/, so the bandwidth probe's records from #52 (problems/results/<host>/2026-11-09/bandwidth.jsonl), which have no top-level host, stopped it with KeyError: 'host'. The same happens to run_by_hand.sh's summary step when a run keeps a clock log beside its results. The suite writes only <host>/<date>.jsonl, so the loader now skips any other name. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMYd92TBVnU47VfKZse
There was a problem hiding this comment.
Note
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.
🟢 Approval recommended
The change is narrowly scoped to filtering .jsonl inputs by the canonical dated filename pattern, which directly prevents the previously observed summarisation crash caused by auxiliary log files lacking the expected schema.
No open issues 🎉
What changed in this PR
This pull request updates the problems suite summariser to only read the suite’s canonical dated results files (YYYY-MM-DD.jsonl), preventing crashes when other .jsonl artifacts (e.g., bandwidth/clock logs) exist under the results tree and don’t match the expected row schema (such as missing top-level host).
Changes:
- Restrict
.jsonlingestion to files whose filename matches the dated suite format (\d{4}-\d{2}-\d{2}\.jsonl). - Skip other
.jsonlfiles under the provided results directory (e.g.,bandwidth.jsonl) to avoidKeyError: 'host'during summary generation.
This pull request is too complex or risky for automated approval.
| File | Summary |
|---|---|
problems/summarise.py |
Filters loaded .jsonl inputs to only YYYY-MM-DD.jsonl suite result files, skipping auxiliary logs to prevent summarisation failures. |
Review effort: Balanced
#52 put the bandwidth probe's records under
problems/results/<host>/2026-11-09/bandwidth.jsonl.problems/summarise.pyreads every.jsonlunder the folder it's given, and those rows have no top-levelhost, sopython problems/summarise.py problems/results/now stops withKeyError: 'host'on main. The session running QuantEcon/project-benchmarks-jax#47's AWS instances found it when a clock log beside c8a's results left that run'ssummary.mdempty.The change. The suite writes only
<host>/<date>.jsonl(run_suite.py), so the loader now skips any other file name, such as a run's clock or bandwidth log.Checked.
KeyError: 'host'1874f1c, before #52run.logprecision/summarise.pyalso reads every.jsonlunder its folder, but it's pointed atresults/, which holds only dated files. #52's precision records sit underprecision/runs/, outside it.#47's results PR will regenerate the three AWS
summary.mdfiles with this change, so it depends on this one.🤖 Generated with Claude Code
https://claude.ai/code/session_01WT8bMYd92TBVnU47VfKZse