• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

open-hyped / crane / 41097923667
97%

Build:
DEFAULT BRANCH: main
Ran 30 Oct 2026 05:32PM UTC
Jobs 1
Files 23
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Oct 2026 05:20PM UTC coverage: 96.303% (+0.2%) from 96.117%
41097923667

push

github

web-flow
fix(iterables): keep the row order when rebatching Arrow tables (#29)

* fix(iterables): keep the row order when rebatching Arrow tables

FastRebatchedArrowExamplesIterable yielded rows out of the order they
arrived in, in two ways: a chunk of exactly the batch size was yielded
at once, ahead of smaller chunks still buffered before it, and the rest
of a chunk cut to fill a batch was put at the end of the buffer instead
of first in line. Every dataset written through it could have its rows
reordered, and a filter or map with `with_indices` got indices that did
not match the rows' positions in the source.

The buffer is now a deque taken from the front, the cut rest put back
first, and a full chunk is only passed through when nothing is
buffered. The buffered rows are counted as they come rather than summed
on every chunk, so many small tables are no longer quadratic: 100k
tables of one row rebatched to 1000 took 2.8 s, now 0.3 s, on par with
datasets' own RebatchedArrowExamplesIterable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(iterables)!: drop FastRebatchedArrowExamplesIterable for datasets' own rebatch

The fast rebatch no longer has an advantage: rebatching from datasets 5
is as fast, within about 30% either way on 1 to 100k tables per million
rows, and a few milliseconds per million rows next to the processing.
It also keeps the checkpoint state crane's version left as a TODO.
The runners now use the RebatchedArrowExamplesIterable that datasets
inserts, and replace_rebatch is gone with the class.

The order the rows are written in is tested at the writer instead: a
source of uneven tables prefetched in batches of 3 and written in
batches of 4 must be written in its order; this fails on the old fast
rebatch.

BREAKING CHANGE: crane.core.iterables.FastRebatchedArrowExamplesIterable
and its replace_rebatch are removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(runners): let each worker count its indice... (continued)

62 of 62 new or added lines in 6 files covered. (100.0%)

4 existing lines in 1 file now uncovered.

1693 of 1758 relevant lines covered (96.3%)

0.96 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
92.82
-0.13% src/crane/core/runners/multi_process_runner.py
Jobs
ID Job ID Ran Files Coverage
1 41097923667.1 30 Oct 2026 05:32PM UTC 23
96.3
GitHub Action Run
Source Files on build 41097923667
  • Tree
  • List 23
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0a6f058a on github
  • Prev Build on main (#40956426177)
  • Next Build on main (#41118640910)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc