Repository navigation
The same-key retirement tests' conflict-check double accepts the keyword the bulk write passes - #227
Merged
Merged
Conversation
…ord the bulk write passes bulk_set now calls _bulk_conflict_verdicts with cap=; the test double took positional arguments only, so both test_retirement_ch restatement tests failed with a TypeError on main. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
6 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #179
Changelog category (leave one):
Why
main's integration job fails two tests intests/integration/same_key/test_retirement_ch.pywithalias_merges() got an unexpected keyword argument 'cap'.bulk_setnow calls_bulk_conflict_verdicts(..., cap=...), and the test double intests/integration/same_key/_rows.pyaccepts positional arguments only. Every open PR's integration job is red on these two tests untilmainis fixed.The fix is the one #179 carries, narrowed: the double also accepts the
capkeyword, by name, so a later change to the real signature fails the test again rather than drifting. The other doubles of this function (test_graph_projection_ch.py, the unit tests) already accept keywords. This PR lands the same change somainturns green; #179 can close once it merges.Scope and risk
One test helper. No server code changes.
Compatibility, rollout and rollback
Tests
tests/integration/same_key/test_retirement_ch.pyagainst a local ClickHouse: 36 passed. Onmainthe two restatement tests fail with theTypeErrorabove (CI run onmain, integration job).AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code. I ran the test file before and after.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code