Skip to content

fix(channels): CodeRabbit's final pass on #510, stages 1-2 and compare.py (ITL-1347) - #521

Merged
eywalker merged 4 commits into
eywalker/job-speedfrom
eywalker/itl-1347-pr510-coderabbit-final
Nov 23, 2026
Merged

eywalker merged 4 commits into
eywalker/job-speedfrom
eywalker/itl-1347-pr510-coderabbit-final

Conversation

@eywalker

@eywalker eywalker commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

CodeRabbit's final pass on #510 (head 365f2a0): my part. Branched from 365f2a0, into eywalker/job-speed.

Related: ITL-1347.

Items static_output_pod.py:1126 and the outside-diff :1219 are fixed in #520, not here.

Findings and tests

Each fixed test was checked by restoring the 365f2a0 file: it fails without the fix.

Finding Verdict Test
compare.py:140: set mode keyed rows by Python values (time64[ns] 1 = 2) fixed: rows keyed by their Arrow IPC bytes tests/test_pipeline/test_review_findings_510.py::test_set_mode_tells_raw_values_apart[time64_ns,timestamp_ns,decimal256,negative_zero,long_string]
source_node.py:497: opened_on started the feed fixed tests/test_pipeline/test_review_findings_510.py::test_inspecting_a_source_channel_s_origin_takes_no_binding
source_node.py:1330: arrow_types_declared for an unbound slot code right, protocol docstring fixed tests/test_pipeline/test_review_findings_510.py::test_an_unbound_slot_states_its_types_as_the_protocol_says[arrow,python]
source_node.py:1884: a subclass without a bound source raised fixed (matches main) tests/test_pipeline/test_review_findings_510.py::test_a_source_job_node_subclass_with_rows_of_its_own_needs_no_binding
streams/base.py:550: the stream was read again after a failed preparation fixed: the failure is recorded and raised again tests/test_pipeline/test_review_findings_510.py::test_a_failed_batch_preparation_is_raised_again_without_a_second_read
streams/base.py:550: system tags the rows retype took the whole-table route fixed: falls back to the row build tests/test_pipeline/test_review_findings_510.py::test_a_channel_on_a_stream_gives_the_rows_system_tag_types[int16,int32,string], tests/test_pipeline/test_review_findings_510.py::test_a_channel_on_a_stream_whose_rows_cannot_make_one_table_raises, tests/test_pipeline/test_review_findings_510.py::test_an_arrow_table_source_channel_takes_the_whole_table; test_record_batch_execution.py::test_a_system_tag_with_a_null_is_refused_by_the_job_sync_path updated (the channel now refuses as the job does)
job.py:1003: a compatibility route for old run(held_rows=) overrides declined: no backward-compatibility shims before v0.1.0. Stated as a breaking change in changelog.d/ITL-1360.md, for the developer's decision tests/test_pipeline/test_review_findings_510.py::test_a_sync_orchestrator_override_of_the_old_signature_is_not_supported (pins it)
nitpick static_output_pod.py:521: local constants imports done refactor, covered by existing tests
nitpick test_rows_on_read.py:349: tag_only_columns=True done the test itself

Wired paths

  • source_node.py:1884 changes the sync execute path of a job, for SourceJobNode subclasses only. It now does what main does; library nodes are unchanged.
  • Everything else is record-batch channel code (not wired into jobs yet) or dev scripts.

Checks

  • Targeted suites in one process: tests/test_pipeline, tests/test_core/{operators,streams,sources,nodes}, tests/test_hashing, tests/test_dev_scripts. They passed, except the one pinned channel test, which was then updated; the affected files were rerun green.
  • Whole-repo basedpyright: exit 0.
  • ruff check and format: clean.

🤖 Generated with Claude Code

Edgar Y. Walker and others added 3 commits November 23, 2026 03:05
- compare.py set mode keys rows by their raw Arrow values (IPC bytes per row).
- A source-node channel's opened_on no longer starts the feed.
- arrow_types_declared: the protocol states what an unbound slot answers.
- A SourceJobNode subclass reads its own rows without a bound source, as on main.
- A row-by-row operator settles source-info token types across its input's batches.
- close_inputs closes every input when one close is cancelled, then propagates.
- CompleteStreamFeed records a failed preparation and never reads the stream again.
- A channel on a stream whose system tags the rows retype delivers the row-built table.
- Drop two local imports of constants (module-level import used).

Every fix has a regression test in tests/test_pipeline/test_review_findings_510.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…is not supported (ITL-1347)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… test nitpick (ITL-1347)

- Restore the row-by-row loop and close_inputs to their base form (fixed in PR #520).
- test_rows_on_read: the empty-edge source passes tag_only_columns=True.
- test_record_batch_execution: a channel on a raw stream whose system tag holds a
  null raises what the row build raises (the channel now builds it from its rows).

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 9 billable files and costs up to $2.25.

  • 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 52 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 105 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 365f2a0 and 4a3bbd9.

Files selected for processing: 9

  • changelog.d/ITL-1360.md
  • docs/dev/scripts/itl_1347/compare.py
  • src/orcapod/core/nodes/source_node.py
  • src/orcapod/core/operators/static_output_pod.py
  • src/orcapod/core/streams/base.py
  • src/orcapod/protocols/core_protocols/streams.py
  • tests/test_core/operators/test_record_batch_execution.py
  • tests/test_pipeline/test_review_findings_510.py
  • tests/test_pipeline/test_rows_on_read.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

…change for overrides (ITL-1347)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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/nodes/source_node.py 95.82% <100.00%> (+0.14%) ⬆️
src/orcapod/core/operators/static_output_pod.py 95.26% <ø> (-0.02%) ⬇️
src/orcapod/core/streams/base.py 96.42% <100.00%> (+0.11%) ⬆️
🚀 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
eywalker merged commit 72bbbd1 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