Skip to content

test(presets): make no-index nonblocking rebuild test deterministic - #26

Draft
Seagulls wants to merge 1 commit into
dev-publicfrom
test/presets-nowait-deterministic-build-20261031
Draft

Seagulls wants to merge 1 commit into
dev-publicfrom
test/presets-nowait-deterministic-build-20261031

Conversation

@Seagulls

Copy link
Copy Markdown
Owner

Cause

The existing TestIndexNoWait_NoIndexYet assumes an asynchronously launched manifest index build cannot finish before loadManifestIndexNoWait() returns. On faster CI hosts, it legitimately finishes and returns the new catalogue, making the test fail despite correct no-wait behavior.

Observed failure in PR #23 CI: TestIndexNoWait_NoIndexYet returned New Game instead of an empty catalogue.

Minimal fix

Reuse the test suite's existing slowBuilds gate, explicitly wait until the async rebuild has started, then release it and check that the next read sees the index. No production changes, no sleeps added to the implementation, no weakening of the no-wait contract.

Validation

Source-level sequencing checked; exact-head CI pending. Keep independent of save-path CAS PR #23 and topology/linking PR #24.

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