Skip to content

Conflict resolver tests cover assertion order at equal standing - #1781

Merged
zlareb1 merged 1 commit into
mainfrom
maintenance/test-resolver-attestation-order-20261130
Nov 30, 2026
Merged

zlareb1 merged 1 commit into
mainfrom
maintenance/test-resolver-attestation-order-20261130

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Related: #1685
Related: #1777

Changelog category

  • CI Fix or Improvement

Why

An attestation raises a memory row's standing. The conflict resolver test attests the retired row, restores it, and expects a lower-standing successor to retire it. The resolver flags that pair for review. The same assertion fails on the contributor CI merge and on main.

Attest the successor before the older row to test first-assertion ordering at equal standing. Keep the unattested successor as a second case that checks the rows remain in conflict and the older row has no superseder.

Scope and risk

The patch changes the conflict resolver integration fixture and checks both standing outcomes.

Compatibility, rollout and rollback

  • Wire changes, operator steps, and stored state changes are none.
  • Reverting restores the former test fixture.

Tests

  • The original assertion failed on clean main with ClickHouse 26.11.5.8. The same test passes in both standing cases after the change, along with two neighboring Undo tests.
  • Run python -m pytest tests/integration/test_conflict_resolver_ch.py::test_an_attest_of_a_retired_row_keeps_its_first_assertion -q against a freshly migrated ClickHouse to reproduce.
  • make lint and make typecheck passed. make format-check passed with the adoption page formatting fix from The format, unit and statement-shape regression checks pass #1706 applied locally. The test passes Ruff format and lint on its own.
  • Contributor CI failure and main CI failure.

AI assistance in the code

  • AI-generated (Codex). The agent verified both live ClickHouse cases and checked that the equal-standing case keeps the original retirement assertion.

Checklist

  • Local format, lint, type checks and focused tests pass with the format baseline noted above.
  • The commit is signed off.

Note

Low Risk
Integration test-only change; no production or schema changes.

Overview
Fixes a failing integration test for conflict resolver behavior when a retired row is attested, restored, and judged against a newer peer.

The test test_an_attest_of_a_retired_row_keeps_its_first_assertion is parametrized over whether the successor row (office_site) is attested before the restored row. When the successor is attested (equal standing), the test still expects the older Paris row to be superseded by Berlin after resolver pass. When it is not attested (lower standing), expectations change to both rows conflicted, no superseded_by on Paris, and Berlin listed in conflict_with.

This aligns CI with current resolver behavior (the old single-case assertion was failing on main/contributor CI) without changing production code.

Reviewed by Cursor Bugbot for commit 5146920. Bugbot is set up for automated code reviews on this repo. Configure here.

Attesting the restored row raises its standing. Attest the successor earlier to preserve the retirement assertion. Keep the lower-standing case as a check that the pair stays in conflict.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Nov 30, 2026 12:42am UTC
loom-telemetry Ready Ready Preview Nov 30, 2026 12:42am UTC

Request Review

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