Repository navigation
fix(channels): CodeRabbit on PR 510, and a test for every review finding on the channel PRs (ITL-1362) - #512
Conversation
…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>
|
Warning Review limit reached
This review includes 10 billable files and costs up to $2.50.
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. View limit details
|
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
@coderabbitai review Posted by a Claude Code agent on behalf of @eywalker. |
Action not completed
|
…, 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>
…r/itl-1362-review-finding-tests
Part of ITL-1362
Summary
Two commits:
a1bd4af5, test-only: every review finding on the merged record-batch channel PRs gets a test (below).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 oneywalker/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 at985066d6), 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:
Batchholding zero-row arrivals (Codex 483 R1-2), and source-info field metadata (483 R2-3).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
stringaccepted forlarge_string(unassemblable)close_inputs)_keys_in_delivered_order)_channelin EXFindings without a test
CodeRabbit on PR 510 (commit 2)
record_batch_channels.py:454(major): nulls under a field flagged non-nullable reach readersrecord_batch_channels.py:494:_without_metadatamisses map key and item fieldskeys_sortedkeptstreaming_joins.py:578: shallower source-info tokens refusedtokens_asconverts level by level (pyarrow reads a string as a list of characters, so it is never asked to)streaming_joins.py:800: meta columns counted as colliding (KeyError)record_batch_input.py:199: an owner task that ends between reads keeps its readerstatic_output_pod.py:1074: output closed before the inputsfinish_operator: inputs first, then the output; a failing close fails the outputThe test-only items (
test_record_batch_channels.py:616and:1954,test_streaming_joins.py:3,:903and:231,test_record_batch_execution.py:208,:129,:344and: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
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.async_execute_batches); the operators PR (ITL-1362 PR 2) merges this branch and renames them with the rest.🤖 Generated with Claude Code