Repository navigation
Conflict resolver tests cover assertion order at equal standing - #1781
Merged
zlareb1 merged 1 commit intoNov 30, 2026
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 30, 2026
Open
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: #1685
Related: #1777
Changelog category
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
Tests
python -m pytest tests/integration/test_conflict_resolver_ch.py::test_an_attest_of_a_retired_row_keeps_its_first_assertion -qagainst a freshly migrated ClickHouse to reproduce.make lintandmake typecheckpassed.make format-checkpassed 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.AI assistance in the code
Checklist
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_assertionis 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 rowsconflicted, nosuperseded_byon Paris, and Berlin listed inconflict_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.