fix(data-repo): runlog index builder reads .jsonl.gz run logs - #193
Merged
Conversation
…or_v2 commit path)
scripts/build-runlog-index.py skipped *.jsonl.gz locally and filtered
.endswith('.jsonl') in --github mode, so once Arena Studio v0.72 commits
gzipped logs the per-folder index.json would stop gaining entries and the
dashboard catalog's Start/Duration would read '—' for every new run.
gzip is not seekable, so a .gz is read whole (a 1 h run is ~4 MB compressed)
and inflated; head/tail parsing is unchanged. 'file' keeps the .gz name, 'size'
is the committed (compressed) size — what the catalog shows. A truncated .gz
still yields metadata + start and never raises.
Verified: index.json byte-identical for all 149 v1 logs in the local course
clone (old vs new script); 9 gzipped twins of real logs index identically to
their originals apart from file/size. New tests/test-build-runlog-index.py
(17 checks) added to the pixi test task.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
mbreiser
added a commit
that referenced
this pull request
Sep 7, 2026
…rebuild green Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #187, prerequisite for shipping #186 (Studio v0.72 commits run logs as
.jsonl.gz).Problem
scripts/build-runlog-index.pyskipped*.jsonl.gzin local mode (# gz handled once behavior_v2 lands) and filtered.endswith('.jsonl')in--githubmode. After #186 every new run is gzipped, sorunlogs/<folder>/index.jsonwould stop gaining entries and the dashboard catalog's Start / Duration would read "—" for every new run.Change
.jsonland.jsonl.gzin both modes (is_runlog_name)..gzis read whole (--github: one raw download; a 1 h behavior_v2 run is ~4 MB compressed) and inflated; the existing 64 KB head / 4 KB tail parsing then applies unchanged. Plain.jsonlfiles still use the two Range reads — nothing changes for them.filekeeps the on-disk name (x.jsonl.gz) so the dashboard's per-file lookup matches;sizeis the committed (compressed) size, which is what the catalog shows..gz(half-written upload) still yieldsrun_metadata+ start via a streaming decompressor and never raises; end state staysnull..gzwhole, small).Verification
.jsonlin 10 folders) → everyindex.jsonbyte-identical.file/size(gzip ratios 2.8–7.3×).tests/test-build-runlog-index.py(17 checks: plain vs gz twin, truncated gz, aborted run fallback, local CLI on a mixed folder, name filter) added to thepixi run testtask.Deploy
The data repo runs a copy: after merge, re-install into
reiserlab/cshl-2026-course/.github/scripts/build-runlog-index.py(byte-identical) — same as #187's install step. Until then the Action ignores.gzfiles (no harm, just missing rows).🤖 Generated with Claude Code