Skip to content

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

Closed
pufit wants to merge 1 commit into
mainfrom
pufit/retirement-double-cap
Closed

pufit wants to merge 1 commit into
mainfrom
pufit/retirement-double-cap

Conversation

@pufit

@pufit pufit commented Nov 2, 2026

Copy link
Copy Markdown
Member

Related: #161
Related: #178

Changelog category (leave one):

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

Why

Since #161 the bulk write calls _bulk_conflict_verdicts(…, cap=state.conflict_check_cap). The same-key retirement tests replace that function with alias_merges(_input, rows, *a), which takes no keyword, so main's integration job fails test_a_restated_merge_that_lands_keeps_the_last_entrys_high_label and …_pin with TypeError: alias_merges() got an unexpected keyword argument 'cap'. The double now accepts and ignores keywords, as the real function's other callers may pass them.

Scope and risk

One test helper line; no server code changes.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: none.
  • Rollback: nothing left behind.

Tests

The two tests need a ClickHouse service and run in CI's integration job; ruff check and ruff format --check pass on the file.

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; the failing CI log and the call site in server/memory/app/bulk_set.py were read, the change is the one-line signature.

  • 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. (Test-only change; the integration suite is CI's.)
  • Generated files are regenerated in this PR, not by hand. (None affected.)
  • A new migration is additive and numbered after the latest on main; no merged migration is edited. (No migration.)
  • A behaviour change to any file a plugin ships bumps both plugin manifests' version. (No plugin file changed.)
  • The frontend builds and its tests pass, if frontend/ changed. (Unchanged.)
  • Docs under docs/ describe the system as it now is. (Unchanged.)

Generated by Nerve

@pufit

pufit commented Nov 2, 2026

Copy link
Copy Markdown
Member Author

CI on this branch: the integration job is green (1801 passed; the two test_retirement_ch.py tests that fail on main pass here). The unit job fails on the same three tests as main (https://github.com/ClickHouse/loom/actions/runs/41444061303): test_llm_max_tokens.py::test_no_call_site_caps_its_output_with_a_literal (server/memory/app/decision_extract.py:405), test_tests_patch_only_real_settings.py::test_every_patched_settings_name_is_a_settings_field (tests/unit/test_decision_extract.py patches settings._llm_provider_source), and test_tunable_constants.py::test_no_new_tunable_constant (_MIN_WINDOW_CHARS, _RESTATEMENT_TOP_K, CAPTION_MAX_CHARS, MAX_KNOWN_DECISIONS). None of them is touched by this branch.

Generated by Nerve

@pufit

pufit commented Nov 4, 2026

Copy link
Copy Markdown
Member Author

Superseded: main now carries the keyword in the double itself (tests/integration/same_key/_rows.py, alias_merges(…, *a, cap: int | None = None)), and its integration job passes the two retirement tests again. Closing; the branch is deleted.

Generated by Nerve

@pufit pufit closed this Nov 4, 2026
@pufit
pufit deleted the pufit/retirement-double-cap branch November 4, 2026 15:40
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.

2 participants