Skip to content

The same-key retirement tests' conflict-check double accepts the keyword the bulk write passes - #227

Merged
zlareb1 merged 2 commits into
mainfrom
fix/retirement-double-cap
Nov 3, 2026
Merged

zlareb1 merged 2 commits into
mainfrom
fix/retirement-double-cap

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Related: #179

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Why

main's integration job fails two tests in tests/integration/same_key/test_retirement_ch.py with alias_merges() got an unexpected keyword argument 'cap'. bulk_set now calls _bulk_conflict_verdicts(..., cap=...), and the test double in tests/integration/same_key/_rows.py accepts positional arguments only. Every open PR's integration job is red on these two tests until main is fixed.

The fix is the one #179 carries, narrowed: the double also accepts the cap keyword, 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 so main turns green; #179 can close once it merges.

Scope and risk

One test helper. No server code changes.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: none.
  • Rollback: none needed.

Tests

tests/integration/same_key/test_retirement_ch.py against a local ClickHouse: 36 passed. On main the two restatement tests fail with the TypeError above (CI run on main, 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 typecheck and make test-unit pass; the integration suite passes if server behaviour changed.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers.
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

🤖 Generated with Claude Code

zlareb1 and others added 2 commits November 3, 2026 15:28
…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]>
@zlareb1
zlareb1 merged commit f31c629 into main Nov 3, 2026
18 checks passed
@zlareb1
zlareb1 deleted the fix/retirement-double-cap branch November 3, 2026 16:33
@pufit pufit mentioned this pull request Nov 4, 2026
9 tasks done
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