Skip to content

fix(channels): CodeRabbit on PR 510, and a test for every review finding on the channel PRs (ITL-1362) - #512

Merged
eywalker merged 3 commits into
eywalker/job-speedfrom
eywalker/itl-1362-review-finding-tests
Nov 23, 2026
Merged

eywalker merged 3 commits into
eywalker/job-speedfrom
eywalker/itl-1362-review-finding-tests

Conversation

@eywalker

@eywalker eywalker commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Part of ITL-1362

Summary

Two commits:

  1. a1bd4af5, test-only: every review finding on the merged record-batch channel PRs gets a test (below).
  2. 730deeea: the fixes for CodeRabbit's review of PR 510 (job-speed into main) on the channels and kernels, each with a test that fails with only the fix reverted. This code is on no wired path: nothing in a node, pipeline module or orchestrator calls the record-batch channels or kernels on eywalker/job-speed, so no sync result can move.

The audit (commit 1)

The developer's standing requirement: every finding a reviewer raised is captured by a test, so the same kind of defect is caught again. This PR audits every Codex and CodeRabbit finding on my merged record-batch channel PRs (#483, #488, #490, #495; #490 and #495 drew no CodeRabbit item, #495 carried findings 3 to 5 of the PR 485 final Codex round). It adds the tests that were missing. Commit 1 changes no source.

Method

Each fix was reverted alone at the base (job-speed, then 4a2e4baa; the new tests were checked again at 985066d6), and the tests named for it were run in one process. The fix was then restored. A test counts only if it fails with its fix reverted. A declined or documented-limit finding counts if a test pins the stated behaviour.

Result before this PR:

  • 42 findings had a test that fails without its fix (2 of them pinning declined or documented behaviour).
  • 2 had a test that still passed with the fix reverted: CodeRabbit's overlapping sends (thread 4657988055), and its "close every input" (review 6012081355).
  • 2 had no test: Batch holding zero-row arrivals (Codex 483 R1-2), and source-info field metadata (483 R2-3).
  • 6 covered only the reported case of a wider class.

The new file tests/test_channels/test_record_batch_review_findings.py (27 cases) fixes all ten. Each new test was checked to fail with only its fix reverted. The table gives the result per finding.

Review findings and their tests

Round Finding Disposition Test (file::name) Fails without the fix
Codex PR 483 round 1 Barrier sees other input than sync (null column; position predicate) declined (job-sync oracle) tests/test_core/operators/test_record_batch_execution.py::test_a_barrier_operator_sees_its_input_as_a_job_gives_it[null_column, position_predicate] pins the documented behaviour
Codex PR 483 round 1 Batch crashes on arrivals whose provenance flags differ fixed tests/test_channels/test_record_batch_review_findings.py::test_batch_takes_arrivals_whose_provenance_field_flags_differ[system_tag, source_info]; the existing matrix test yes: 2 of 2 fail with Batch's concatenation reverted
Codex PR 483 round 1 Zero-row batches held by the channel fixed tests/test_channels/test_record_batch_channels.py::test_a_batch_with_no_rows_is_checked_and_not_kept yes: r1-2c (send keeps zero-row batches): FAIL
Codex PR 483 round 1 Batch's waiting list holds zero-row batches fixed tests/test_channels/test_record_batch_review_findings.py::test_batch_holds_no_arrival_without_rows[2, 3] yes: 2 of 2 fail with Batch's zero-row skip removed
Codex PR 483 round 1 Waiting send survives close/fail; publishes after end fixed tests/test_channels/test_record_batch_channels.py::test_a_waiting_send_ends_when_the_channel_ends[close/fail]; tests/test_channels/test_record_batch_channels.py::test_a_send_scheduled_before_the_end_of_a_retained_output_publishes_nothing[close/fail] yes: r1-3 (no re-check after wake): both waiting params FAIL; r1-3b (send start checks only _closed): retained[fail] FAIL
Codex PR 483 round 1 string accepted for large_string (unassemblable) fixed tests/test_channels/test_record_batch_review_findings.py::test_a_column_in_another_representation_is_refused[binary, list, string_in_struct, string_in_list]; the existing channel test yes: 4 of 4 fail with the comparison made after large normalization
Codex PR 483 round 1 Null column accepts real values fixed tests/test_channels/test_record_batch_channels.py::test_a_batch_in_another_representation_is_refused; tests/test_channels/test_record_batch_channels.py::test_nulls_are_judged_on_the_values_sent yes: r1-4b (null-only check off): both FAIL
Codex PR 483 round 1 F provenance schema (system-tag metadata, list item field) fixed (stage 2 F) tests/test_core/operators/test_record_batch_execution.py::test_the_provenance_columns_have_the_row_built_schema; tests/test_core/operators/test_row_built_form.py::test_row_built_form_of_a_raw_stream[raw, select-z-x, drop-nulls] yes: r1-5a1 (keep system-tag metadata): all 4 FAIL. r1-5a2 (no item-field rebuild) alone: passes (also enforced by _type_source_info_by_values and concatenate_batches); with tsibv-off: RB tests FAIL
Codex PR 483 round 1 Field metadata not compared (top level) fixed tests/test_channels/test_record_batch_channels.py::test_a_batch_in_another_representation_is_refused yes: r1-5b: FAIL
Codex PR 483 round 1 Reader close turns partial collection into a stream fixed tests/test_channels/test_record_batch_channels.py::test_to_stream_of_a_channel_closed_before_its_end_raises yes: r1-6a (anext ends on any _ended): FAIL (+ R2-2 tests)
Codex PR 483 round 1 Cancelled receive strands the producer fixed tests/test_channels/test_record_batch_channels.py::test_a_cancelled_read_closes_the_reader_and_frees_the_producer yes: r1-6b (no close on cancel): FAIL
Codex PR 483 round 1 Raw meta columns travel as data fixed (stage 2 F) tests/test_core/operators/test_record_batch_execution.py::test_a_meta_column_does_not_travel; tests/test_core/operators/test_row_built_form.py::test_row_built_form_of_a_raw_stream[raw] yes: r1-7 (no meta filter in row_built_names): both FAIL
Codex PR 483 round 1 Closed readers stay registered fixed tests/test_channels/test_record_batch_channels.py::test_a_closed_reader_is_unregistered yes: r1-8: FAIL
Codex PR 483 round 1 Instructions name wrong protocol module fixed — docs only
Codex PR 483 round 2 Close during back-pressure: two readers complete differently fixed tests/test_channels/test_record_batch_channels.py::test_a_close_during_a_send_that_reached_one_reader_fails_both; tests/test_channels/test_record_batch_channels.py::test_a_waiting_send_ends_when_the_channel_ends[close] yes: r2-1 (close never fails the channel): only waiting[close] FAILs; the two-reader test passes because the CR-374 abort rule also fails the channel. r2-1b (both reverted): two-reader test FAILs
Codex PR 483 round 2 Early input close: partial success in row-by-row ops and sized Batch fixed tests/test_core/operators/test_record_batch_execution.py::test_an_input_closed_early_fails_a_streaming_operator[row_by_row, batch_by_arrival] yes: r1-6a: both FAIL
Codex PR 483 round 2 Metadata accepted below top level and on provenance fields fixed tests/test_channels/test_record_batch_review_findings.py::test_nested_field_metadata_must_be_the_descriptions[struct_child, map_item, list_item]; tests/test_channels/test_record_batch_review_findings.py::test_a_source_info_field_carries_no_metadata[top_level, list_item]; the existing channel test yes: 3 of 3 fail with the nested check off; 2 of 2 with the source-info check off
Codex PR 483 round 2 All-empty nested source-info lists: F keeps 2 levels documented limit, then fixed by stage 2 value typing tests/test_core/operators/test_record_batch_execution.py::test_empty_source_info_lists_are_typed_from_their_tokens[one_batch, one_row_per_batch]; tests/test_core/operators/test_row_built_form.py::test_source_info_types_follow_the_tokens[*] yes: tsibv-off alone: RB FAIL, EX passes (channel side settled by concatenate_batches); r2-4a (both): EX both FAIL
Codex PR 483 round 2 System tag with string and null: sync refuses, channel accepts documented limit (unreachable in a job) tests/test_core/operators/test_record_batch_execution.py::test_a_system_tag_with_a_null_is_refused_by_the_job_sync_path pins the documented behaviour
Codex PR 483 round 2 Null-typed source-info column accepts a token at send declined (not a defect) tests/test_channels/test_record_batch_review_findings.py::test_a_token_sent_into_a_null_typed_source_info_column_is_taken; tests/test_core/operators/test_row_built_form.py::test_source_info_types_follow_the_tokens[null-type] declined: pins the behaviour
Codex PR 483 round 2 Nested null check reads masked children / whole backing array fixed tests/test_channels/test_record_batch_channels.py::test_nulls_are_judged_on_the_values_sent yes: r2-6a (raw struct children): FAIL; r2-6b (array.values): FAIL (map part)
Codex PR 483 round 2 Untyped description: wrong names pass, result() fails fixed tests/test_channels/test_record_batch_channels.py::test_without_arrow_types_the_names_are_still_the_streams yes: r2-7: FAIL
Codex PR 488 round 1 Rejoin over job nodes loses a row (raw context column) fixed tests/test_core/operators/test_record_batch_execution.py::test_rejoin_over_job_nodes_with_rows_of_two_data_contexts yes: srcnode-raw alone and shortcut-general alone: pass (two protections now); r488-1 (both, the PR-488 head state): FAIL
Codex PR 488 round 1 Barrier succeeds over unbound input fixed tests/test_channels/test_record_batch_channels.py::test_an_unbound_input_fails_a_barrier_before_it_runs yes: shortcut-general: FAIL
Codex PR 488 round 1 Exhausted channel later yields rows; polling reread fixed tests/test_channels/test_record_batch_channels.py::test_an_exhausted_channel_never_yields_rows_later; tests/test_channels/test_record_batch_channels.py::test_a_polling_source_is_read_once_through_a_channel yes: r488-3a (reserve allows reuse after reads): exhausted FAIL; shortcut-general: polling FAIL
Codex PR 488 round 1 Source node batches in slot order, not rows' fixed tests/test_channels/test_record_batch_channels.py::test_a_bound_source_node_sends_its_rows_in_their_own_column_order yes: srcnode-raw: FAIL
Codex PR 488 round 1 Feed keeps every emitted batch fixed tests/test_channels/test_record_batch_channels.py::test_a_delivered_batch_is_not_kept_by_the_feed yes: r488-5 (feed keeps delivered): FAIL
Codex PR 488 round 2 Shortcut tested the describing stream fixed tests/test_channels/test_record_batch_channels.py::test_a_flagged_stream_is_given_as_it_is_only_by_its_own_channel yes: r488b-1 (shortcut on self._stream): FAIL
Codex PR 488 round 2 Narrower bind drops data-tag provenance fixed tests/test_channels/test_record_batch_channels.py::test_a_source_nodes_channel_carries_its_execute_output[declared-both] yes: srcnode-raw: declared-both FAIL (transparent params FAIL only with the shortcut also reverted)
Codex PR 488 round 2 Order fix incomplete; rebind before first read fixed tests/test_channels/test_record_batch_channels.py::test_a_source_nodes_conversion_keeps_the_delivered_column_order; tests/test_channels/test_record_batch_channels.py::test_a_rebind_before_the_first_read_is_read_whole; tests/test_channels/test_record_batch_channels.py::test_a_source_nodes_description_takes_its_rows_in_their_own_order (former ITL-1365 xfail) yes: srcnode-raw: order tests FAIL; srcnode-eager (feed built at open): rebind FAIL. The ITL-1365 test passes at head; its fix (on main) was not reverted
Codex PR 488 round 2 Pending receive leaves reader unread; conversion races fixed tests/test_channels/test_record_batch_channels.py::test_a_reader_has_one_consumer[retained, bounded] yes: r488b-4 alone (reserve checks _received): passes (the _reading guard also refuses); r488b-4b (+ guard off): both FAIL
Codex PR 488 round 2 Feed's own ChannelClosed taken for EOF fixed tests/test_channels/test_record_batch_review_findings.py::test_a_channel_closed_raised_by_a_later_fetch_is_a_read_error[iteration, collect, to_stream]; the existing channel test yes: 3 of 3 fail with the EOF rule reverted
Codex PR 488 round 2 Unpolled PollingSource fetched twice fixed tests/test_channels/test_record_batch_channels.py::test_a_polling_source_is_read_once_through_a_channel yes: r488b-6 (keys before table): FAIL
Codex PR 488 round 2 Closed never-read reader: RuntimeError not ChannelClosed fixed tests/test_channels/test_record_batch_channels.py::test_a_closed_reader_cannot_be_converted yes: r488b-7: FAIL
Codex PR 488 round 3 Reservation not exclusive between batches / before await fixed tests/test_channels/test_record_batch_channels.py::test_a_reader_belongs_to_its_first_consumer_between_batches, ::test_a_reserved_reader_is_read_only_through_its_claim, ::test_a_conversion_reserves_the_reader_when_it_is_created (each retained/bounded) yes: r488c-owner (no owner check): all 6 FAIL; r488c-late (reserve inside the coroutine): conversion-reserves FAIL
Codex PR 485 final (carried, fixed in PR 495) Undeclared channel publishes duplicate system-tag column fixed (PR 495) tests/test_channels/test_record_batch_review_findings.py::test_a_batch_with_a_column_twice_is_refused[declared, undeclared × data, system_tag, source_info] yes: 6 of 6 fail with the duplicate check off
Codex PR 485 final (carried, fixed in PR 495) Batches pass send but cannot be assembled (4 cases) fixed (PR 495) tests/test_channels/test_record_batch_channels.py::test_batches_send_accepts_are_assembled[list_depth, null_then_string, item_nullability]; tests/test_channels/test_record_batch_channels.py::test_a_token_that_cannot_be_represented_is_refused_at_send; tests/test_channels/test_record_batch_channels.py::test_a_batch_whose_tokens_cannot_settle_with_accepted_ones_is_refused yes: concat-nosettle: 3 params + Batch test FAIL; send-nosettle: cannot-be-represented and cannot-settle FAIL
Codex PR 485 final (carried, fixed in PR 495) Zero-row batch records a token type fixed (PR 495) tests/test_channels/test_record_batch_channels.py::test_batches_send_accepts_are_assembled[zero_rows_first] yes: f5: FAIL
CodeRabbit PR 483 Inferred schema saved before validation fixed tests/test_channels/test_record_batch_channels.py::test_a_refused_first_batch_sets_no_schema yes: cr050: FAIL
CodeRabbit PR 483 Overlapping non-retained sends reach readers in different orders fixed (send lock) tests/test_channels/test_record_batch_review_findings.py::test_a_send_started_while_another_waits_reaches_every_reader_after_it yes: fails with the send lock removed (the old test did not)
CodeRabbit PR 483 Cancelled partial send must fail the output fixed tests/test_channels/test_record_batch_channels.py::test_a_cancelled_send_that_reached_one_reader_fails_both; tests/test_channels/test_record_batch_channels.py::test_a_send_cancelled_before_it_reached_a_reader_leaves_the_channel_usable yes: cr374: first FAILs; cr059b (fail even if not delivered): second FAILs
CodeRabbit PR 483 Source-info order of data-tags after role change reproduced with another cause (DropTagColumns tag order, ITL-1365); now accepted by name comparison tests/test_core/operators/test_record_batch_execution.py::test_drop_tag_columns_over_three_tags_sends_its_result (+ the matrix's Select/DropTagColumns cases) yes: positional (send compares names by position): FAIL; cr-order alone: FAIL
CodeRabbit PR 483 Document that to_stream needs an unread channel fixed — docs only
CodeRabbit PR 483 Per-arrival test does not reject barrier execution fixed (test) tests/test_core/operators/test_record_batch_execution.py::test_a_row_by_row_operator_sends_each_batch_as_it_arrives yes: barrier-all (row-by-row ops run as barriers): FAIL (times out waiting for the first result)
CodeRabbit PR 483 output.close() inside the protected block fixed tests/test_core/operators/test_record_batch_execution.py::test_a_failing_close_of_the_output_fails_it yes: cr-close-try (close after the try): FAIL
CodeRabbit PR 483 Close every input even if one close fails (static_output_pod 935-936) fixed (close_inputs) tests/test_channels/test_record_batch_review_findings.py::test_every_input_is_closed_when_one_close_fails_with_another_still_open[succeeding, failing]; tests/test_channels/test_record_batch_review_findings.py::test_a_failing_operator_releases_an_input_it_never_read yes: both cases fail with close_inputs closing only the first input (the old test did not); the operator-level test passes either way (a cancelled read closes too), kept as behaviour
CodeRabbit PR 483 Docstrings for channel methods fixed — docs only
CodeRabbit PR 483 Docstrings for tests fixed — docs only
CodeRabbit PR 483 batch.py:310 per-prefix grouping not a finding (CodeRabbit confirmed no issue) — not a finding
CodeRabbit PR 488 Register conversion tasks inside the try fixed tests/test_channels/test_record_batch_channels.py::test_a_barrier_leaves_no_conversion_behind_when_an_input_was_read yes: cr214: FAIL
CodeRabbit PR 488 Move the snapshot read off the event loop declined (deferred to the wiring PR; part2 notes A) — declined, deferred to the wiring PR: no behaviour to pin yet
CodeRabbit PR 488 Clear the claim after its first redemption fixed tests/test_channels/test_record_batch_channels.py::test_a_claim_is_taken_over_once yes: cr228: FAIL
CodeRabbit PR 488 Release the consumer task at end and on close fixed tests/test_channels/test_record_batch_channels.py::test_a_reader_releases_its_consumer_task_at_its_end_and_on_close yes: cr240 (end) FAIL; cr240b (close) FAIL
CodeRabbit PR 488 Document claim-held state fixed — docs only
CodeRabbit PR 488 Docstrings for test helpers fixed — docs only
CodeRabbit PR 488 wait_for reads in another task on Python 3.11 fixed (test only) — test-only change
CodeRabbit PR 488 Keep delivered row order when a source-node channel becomes a stream fixed (_keys_in_delivered_order) tests/test_channels/test_record_batch_channels.py::test_a_source_nodes_conversion_keeps_the_delivered_column_order; tests/test_core/operators/test_record_batch_execution.py::test_drop_tag_columns_over_three_tags_sends_its_result yes: cr-order alone: the source-node test passes (its channel now gives the execute() output as is, through the ROW_BUILT_OUTPUT shortcut), the drop-tag test FAILs; cr-order2 (+ shortcut off): source-node test FAILs
CodeRabbit PR 488 Check batch release before collect() fixed (test) tests/test_channels/test_record_batch_channels.py::test_a_delivered_batch_is_not_kept_by_the_feed yes: cr488-nit (feed releases only at end of channel): FAIL
CodeRabbit PR 488 Feed-raised StopAsyncIteration taken as EOF fixed tests/test_channels/test_record_batch_channels.py::test_a_feed_raising_stop_async_iteration_is_a_read_error yes: cr-stopiter: FAIL
CodeRabbit PR 488 Release the reader when a conversion never starts fixed (PR 489) tests/test_channels/test_record_batch_channels.py::test_a_conversion_that_never_starts_releases_its_reader[cancelled, dropped]; tests/test_channels/test_record_batch_channels.py::test_a_dropped_reader_whose_claim_is_freed_later_releases_its_producer yes: cr-never (no finalize): all 3 FAIL
CodeRabbit PR 488 Test fixture reads the stream twice when sizes is None fixed (PR 489, test only) _channel in EX test-only change
CodeRabbit PR 488 Docstrings for the remaining helpers - — docs only

Findings without a test

  • CodeRabbit PR 488, thread 4658665223 (move the snapshot read off the event loop). It was declined and deferred to the wiring work (ITL-1362 PR 3), so there is no behaviour to pin yet. If the read moves to a thread there, that PR adds tests for cancellation during the read and for two channels reading one stream at once.

CodeRabbit on PR 510 (commit 2)

Item Fix Test (file::name) Fails without the fix
record_batch_channels.py:454 (major): nulls under a field flagged non-nullable reach readers the send check refuses a null where the description's field is not nullable tests/test_channels/test_record_batch_review_findings.py::test_a_null_in_a_column_declared_non_nullable_is_refused[k, g, x, y] yes: 4 of 4
record_batch_channels.py:494: _without_metadata misses map key and item fields map branch, keys_sorted kept tests/test_channels/test_record_batch_review_findings.py::test_a_map_typed_system_tag_column_carries_no_nested_metadata[key, item] yes: 2 of 2
streaming_joins.py:578: shallower source-info tokens refused converted to the layout's token type, every value kept; tokens_as converts level by level (pyarrow reads a string as a list of characters, so it is never asked to) tests/test_core/operators/test_streaming_joins.py::test_shallower_source_info_tokens_are_taken_with_every_value (3 kernels × 3 token shapes) yes: 9 of 9
streaming_joins.py:800: meta columns counted as colliding (KeyError) data columns are those of each input's layout tests/test_core/operators/test_streaming_joins.py::test_merge_join_over_inputs_with_a_meta_column (18 arrangements) yes: 18 of 18
record_batch_input.py:199: an owner task that ends between reads keeps its reader a done callback closes a reader its finished task still owns tests/test_channels/test_record_batch_review_findings.py::test_a_reader_whose_task_finishes_between_reads_releases_its_producer[returns, raises, cancelled] yes: 3 of 3
static_output_pod.py:1074: output closed before the inputs finish_operator: inputs first, then the output; a failing close fails the output tests/test_core/operators/test_record_batch_execution.py::test_every_input_is_closed_when_one_close_fails yes

The test-only items (test_record_batch_channels.py:616 and :1954, test_streaming_joins.py:3, :903 and :231, test_record_batch_execution.py:208, :129, :344 and :702, test_streaming_rejoin.py:189) are applied as described in the signed reply on PR 510. The empty-result comparison (:208) compares fields with the job's zero-row form of the sync result (_materialize_upstream([], ...)): the bare sync stream's provenance flags are not the form a job hands on.

Checks: the channel, record-batch, kernel, row-built and transport-equivalence tests pass (1,688). ruff check and format are clean. basedpyright on the changed files reports only the import cycles a file subset attributes, which the whole-repo run does not report.

Notes

  • Some fixes are now held twice: reverting one alone fails nothing, and the test fails only with both reverted. The tests prove the behaviour, though not which mechanism holds it. This applies to 483 R2-1 (the close-during-send rule and the abort-on-partial-send rule), 488 R1-1, 488 R2-4, the source-info typing layers (483 R1-5a, 483 R2-4a, 485f-4), and CodeRabbit 488 outside-2.
  • 488 R2-3's former strict xfail (test_a_source_nodes_description_takes_its_rows_in_their_own_order) passes at the base. Its fix landed on main outside these PRs, so it was not reverted here.
  • The new tests use job-speed's names (async_execute_batches); the operators PR (ITL-1362 PR 2) merges this branch and renames them with the rest.
  • No changelog fragment: the channels are unreleased, and their fragment comes with the wiring (ITL-1362 PR 3).

🤖 Generated with Claude Code

…has a test that fails without its fix (ITL-1362)

An audit of every Codex and CodeRabbit finding on PRs 483, 488 and 495 reverted each
fix alone and ran its tests. Two tests still passed with their fix reverted, two
fixes had no test, and six tests covered only the reported case of a wider class.
The new tests, each checked to fail with only its fix reverted:

- overlapping sends on a bounded output, in the reviewer's schedule;
- close_inputs with a second input still open, on success and on failure;
- Batch holds no zero-row arrival;
- arrivals whose system-tag or source-info flags differ;
- binary, list and nested non-large representations refused at send;
- field metadata on a struct child, a map item and source-info fields;
- a token into a null-typed source-info column is taken (declined finding, pinned);
- a column twice, declared and undeclared, for data, system-tag and source-info;
- a ChannelClosed from a fetch after a successful one, through iteration,
  collect and to_stream.

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

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 10 billable files and costs up to $2.50.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 25 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 102 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 8841710 and b1a35f9.

Files selected for processing: 10

  • src/orcapod/core/operators/batch.py
  • src/orcapod/core/operators/static_output_pod.py
  • src/orcapod/core/operators/streaming_joins.py
  • src/orcapod/core/record_batch_channels.py
  • src/orcapod/core/streams/record_batch_input.py
  • tests/test_channels/test_record_batch_channels.py
  • tests/test_channels/test_record_batch_review_findings.py
  • tests/test_core/operators/test_record_batch_execution.py
  • tests/test_core/operators/test_streaming_joins.py
  • tests/test_core/operators/test_streaming_rejoin.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/orcapod/core/operators/batch.py 100.00% <100.00%> (+0.71%) ⬆️
src/orcapod/core/operators/static_output_pod.py 94.81% <100.00%> (+0.36%) ⬆️
src/orcapod/core/operators/streaming_joins.py 98.12% <100.00%> (+0.03%) ⬆️
src/orcapod/core/record_batch_channels.py 98.37% <100.00%> (+1.26%) ⬆️
src/orcapod/core/streams/record_batch_input.py 96.31% <100.00%> (+0.42%) ⬆️

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@eywalker

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

Posted by a Claude Code agent on behalf of @eywalker.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

…, map metadata, shallower tokens, meta columns, reader release, close order (ITL-1362)

CodeRabbit's review of PR 510 (job-speed into main), on the record-batch channels and
kernels; none of this code is on a wired path yet. Each fix has a test that fails with
only the fix reverted.

- send refuses a batch whose column is flagged non-nullable but holds a null (major).
- the provenance metadata check strips the key and item fields of a map too.
- a join kernel takes a batch whose source-info tokens have fewer list levels than
  its input's layout (nulls, empty lists), every token kept; tokens_as converts level
  by level and never reads a string as a list of characters.
- StreamingMergeJoin counts as colliding only data columns its batches carry: a raw
  stream's meta column (__note) raised KeyError (18 cases, every arrangement).
- an input channel whose consumer task finishes between reads is closed, so its
  producer never waits for it.
- an operator closes its inputs before its output (finish_operator): a failing close
  fails the output instead of leaving readers a normal end.

Tests: the empty-result fields are compared with the job's zero-row form (types,
flags, metadata), signed zeros are told apart, one deadline covers the Batch arrival
test, the cleanup test counts the second input's close, batch schemas are compared
with metadata, the release schedule with held rows, the barrier tests wait on a
started conversion and on a partly read failing input, the streaming-join module
docstring, and a rename in test_streaming_rejoin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@eywalker eywalker changed the title test(channels): every review finding on the record-batch channel PRs has a test that fails without its fix (ITL-1362) fix(channels): CodeRabbit on PR 510, and a test for every review finding on the channel PRs (ITL-1362) Nov 23, 2026
@eywalker
eywalker merged commit 5190189 into eywalker/job-speed Nov 23, 2026
16 checks passed
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.

1 participant