Repository navigation
test: Patch the row renderer where it now lives - #5179
Conversation
#5156 moved the CLI row renderers into `cli/render/rows.py` and made them public. This file's imports were retargeted then; the `patch()` dotted string was not, and a patch target is a string, so nothing failed at collection -- the three pagination tests errored inside the context manager instead, before reaching any assertion. #5173 fixed the other half of the same rename (the binding registry's references to the deleted private names). This is the last reference to `archive_query._emit_rows` in the tree. The three tests keep the anti-vacuity conditions stated in their own docstrings: hard-code `next_offset` to None, or echo the requested limit instead of the one the daemon applied, and they go red. They could not go red for any reason before, which is what this restores. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedNext included review available in 38 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Summary
Three pagination tests error before reaching any assertion because a
patch()target still names a symbol #5156 deleted. Replaces #5174, which was closed after #5173 independently landed the product half of the same fix.Evidence
Receipt
.cache/verify/runs/20260914T233651Z-all-207009-89ddea6b(verify_all, job 1699, 22,540 selected, 29 failed).Caveat on that receipt: its
run.jsonrecordsgit_head: f7964acd12b25134c0e2e4cd8f73f9e6557a4a4f— the tip of branchrebase-5165, notmasterand not an ancestor of it — andfinal_git_head: 724d17535. The shared checkout advanced across 7 merged PRs during the run, so it is not evidence of a frozen tree. I re-ran all 29 node ids at truemasterHEAD: 17 reproduce, 12 do not. These 3 are among the 17, and still reproduce at4105e3698.Per-failure classification
test_archive_query::TestDaemonSearchEnvelopeHonestPagination::test_clamped_page_reports_the_next_offsetpatch("polylogue.cli.archive_query._emit_rows")— #5156 moved it tocli/render/rows.pyas publicemit_rows…::test_final_page_reports_no_next_offset…::test_limit_reports_what_the_daemon_appliedProblem
#5156 moved the CLI row renderers out of
archive_queryintocli/render/rows.pyand made them public. This file's imports were retargeted at the time; thepatch()dotted string was not. A patch target is a string, so nothing failed at collection — insteadmockraisedAttributeErrorinside the context manager, before any assertion ran.emit_session_search_pagecallsemit_rowsfrom its own module namespace, sopolylogue.cli.render.rows.emit_rowsis the seam that actually intercepts it.#5173 fixed the other half of this same rename —
CLI_OPERATION_BINDINGSstill namingarchive_query:_emit_daemon_list_payload,:_emit_daemon_search_payloadand:_emit_rows, none of which resolved. I had that product fix in #5174; #5173 landed the identical change first (as_RENDER_ROWS), so #5174 was closed as conflicting and this PR carries only the remaining test half. After it, there is no reference toarchive_query._emit_rowsleft in the tree.Solution
One line: patch
polylogue.cli.render.rows.emit_rows.Anti-vacuity
The three tests keep the conditions stated in their own docstrings — hard-code
next_offsettoNone, or echo the requestedlimitinstead of the one the daemon applied, and they go red. They could not go red for any reason while the patch target was wrong, since they errored before the assertions. That is what this restores, and it is why the fix is worth making rather than deleting the tests: the behaviour they cover (a daemon-proxied clamped page must not present itself as complete) is not covered elsewhere — the golden-parity suite seeds a corpus smaller than its own--limitand never reaches a clamped page, as the class docstring notes.Verification
The binding registry file is included to confirm #5173's half and this half agree at the current head.
Schema closure
tests/unit/cli/test_archive_query.py— out of the derived schema-identity closure. Test-only change; no product file touched. Does not need to land before an archive rebuild.Residuals
None. This is the last stale reference to the pre-#5156 renderer names.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK