Skip to content

problems/summarise.py: read only the suite's dated files - #53

Merged
mmcky merged 1 commit into
mainfrom
problems-summarise-dated-files
Nov 9, 2026
Merged

mmcky merged 1 commit into
mainfrom
problems-summarise-dated-files

Conversation

@mmcky

@mmcky mmcky commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

#52 put the bandwidth probe's records under problems/results/<host>/2026-11-09/bandwidth.jsonl. problems/summarise.py reads every .jsonl under the folder it's given, and those rows have no top-level host, so python problems/summarise.py problems/results/ now stops with KeyError: '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's summary.md empty.

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.

Check Result
On main, without the change KeyError: 'host'
On main, with it 1,430 lines, identical byte for byte to the summary at 1874f1c, before #52
c8a's records, by the #47 session 143 lines, with P1's table matching its run.log

precision/summarise.py also reads every .jsonl under its folder, but it's pointed at results/, which holds only dated files. #52's precision records sit under precision/runs/, outside it.

#47's results PR will regenerate the three AWS summary.md files with this change, so it depends on this one.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMYd92TBVnU47VfKZse

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
Copilot AI balanced review requested due to automatic review settings November 9, 2026 05:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 .jsonl ingestion to files whose filename matches the dated suite format (\d{4}-\d{2}-\d{2}\.jsonl).
  • Skip other .jsonl files under the provided results directory (e.g., bandwidth.jsonl) to avoid KeyError: '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

@mmcky
mmcky merged commit 2f66a4c into main Nov 9, 2026
1 check passed
@mmcky
mmcky deleted the problems-summarise-dated-files branch November 9, 2026 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants