Skip to content

test(cli): observe the import's HLC before deleting it, so the prune tests cannot flake - #28

Merged
sequico merged 1 commit into
mainfrom
fix/flaky-import-hlc
Dec 2, 2026
Merged

sequico merged 1 commit into
mainfrom
fix/flaky-import-hlc

Conversation

@sequico

@sequico sequico commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Two independent HLC clocks that stamp in the same millisecond both start at counter 0, so a delete written without having read the import can order before the add it means to shadow; the prune then drops nothing and the test fails (it did, in the Release run). The local log now reads the directory first, so its clock observes the import and the delete is strictly later.

@sequico
sequico merged commit ee9f99e into main Dec 2, 2026
7 checks passed
@sequico
sequico deleted the fix/flaky-import-hlc branch December 2, 2026 23:29
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