Commit 6e42a30
fix(ci): hydrate script crashes on snapshot entries with null byte sizes
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>1 parent abf892b commit 6e42a30
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
80 | 83 | | |
81 | | - | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
0 commit comments