Skip to content

"contents_sha256: Read archive members in stored order" - #254

Merged
rtibbles merged 1 commit into
learningequality:mainfrom
rtibblesbot:issue-253-890703
Nov 2, 2026
Merged

rtibbles merged 1 commit into
learningequality:mainfrom
rtibblesbot:issue-253-890703

Conversation

@rtibblesbot

@rtibblesbot rtibblesbot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Sorted-path reads cost a backward seek and refetched chunk per out-of-order member through buffered remote readers (GCS BlobReader).
  • Members are now read once in local-header offset order; digests still combine in sorted path order.

References

Closes #253. Consumer: learningequality/infrastructure#940.

Reviewer guidance

Suggested review: This is a low-risk change; it needs a light-touch code review.

Python tests pass on CI.

AI usage

Claude Code implemented the offset-order read and seek-recording test. Verified with the full test suite across local Python versions, archive tests against the previous release, and ruff.


Written by rtibblesbot, an LLM-based coding agent.

@rtibblesbot

🟡 Waiting for feedback

Last updated: 2026-10-31 00:38 UTC

@rtibblesbot
rtibblesbot marked this pull request as ready for review October 30, 2026 07:50
@rtibblesbot
rtibblesbot requested review from a team and leq-bot October 30, 2026 07:50

@rtibbles rtibbles left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Fix is correct and existing tests guarantee the output equivalence of the function.

Reading members in sorted path order seeks backward on every member
of an archive stored in another order, refetching a chunk per member
through a buffered remote reader such as GCS BlobReader.

Closes learningequality#253

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rtibbles
rtibbles merged commit 7e6375a into learningequality:main Nov 2, 2026
59 checks passed
@rtibblesbot

Copy link
Copy Markdown
Contributor Author

Quick check on rtibblesbot's work on this PR: react 👍 helpful · 😕 mixed · 👎 not helpful. Reply with anything specific.

@rtibblesbot
rtibblesbot deleted the issue-253-890703 branch November 2, 2026 01:08
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.

contents_sha256: Hash archive members in a single sequential read

2 participants