fix(ci): hydrate script crashes on null snapshot byte sizes#229
Merged
Conversation
The Raincloud conformance workflow failed on its first real run: the
size-cap computation used entry.get('parquet_bytes', 0), but .get returns
the default only for ABSENT keys — a snapshot entry with an explicit
"parquet_bytes": null (a not-yet-hashed slug: jsonbench-bluesky-100m,
wikipedia-structured-contents, code-contests, bi-commongovernment) returns
None, and None + int raised TypeError, aborting the whole hydrate step.
Coerce both fields with 'or 0' so missing and null both cap as 0.
Co-Authored-By: Claude Opus 4.8 <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.
The Raincloud conformance workflow (#205) failed on its first supervised run: the hydrate step's Python size-cap used
entry.get("parquet_bytes", 0), which returns the default only for ABSENT keys. Four corpus slugs (jsonbench-bluesky-100m, wikipedia-structured-contents, code-contests, bi-commongovernment) carry an explicit"parquet_bytes": null(not-yet-hashed), so.getreturns None andNone + intraised TypeError, aborting the whole hydrate step. Coerce both fields withor 0. Found by the supervised workflow_dispatch run done to validate the workflow before its Monday schedule; will re-trigger after merge to confirm end-to-end.🤖 Generated with Claude Code