Skip to content

host: Add index reuse to split store tests - #5729

Open
backspace wants to merge 1 commit into
mainfrom
store-module-rebuild-split
Open

host: Add index reuse to split store tests#5729
backspace wants to merge 1 commit into
mainfrom
store-module-rebuild-split

Conversation

@backspace

Copy link
Copy Markdown
Contributor

This is in the vein of #5722, but the file needed to be broken up.

@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Preview deployments

Host Test Results

    1 files      1 suites   2h 7m 21s ⏱️
4 066 tests 4 052 ✅ 14 💤 0 ❌
4 085 runs  4 071 ✅ 14 💤 0 ❌

Results for commit 5e83405.

Realm Server Test Results

    1 files  ±0      1 suites  ±0   13m 39s ⏱️ -18s
2 096 tests ±0  2 096 ✅ +1  0 💤 ±0  0 ❌  - 1 
2 175 runs  ±0  2 175 ✅ +1  0 💤 ±0  0 ❌  - 1 

Results for commit 5e83405. ± Comparison against earlier commit b88542a.

@backspace
backspace force-pushed the store-module-rebuild-split branch 3 times, most recently from 3899539 to 0fa7b68 Compare August 10, 2026 13:23
@backspace
backspace force-pushed the shared-index-multirealm branch from cba0b73 to 73b0575 Compare August 11, 2026 13:01
@backspace
backspace force-pushed the store-module-rebuild-split branch from eac049d to b88542a Compare August 11, 2026 13:04
@backspace
backspace changed the base branch from shared-index-multirealm to main August 11, 2026 16:02
store-test.gts is the suite's largest file (6.78m over 73 tests) and, once
the interact-submode family reuses its index, the file that pins the slowest
shard — so migrating it is the only remaining change that shortens CI rather
than just using less runner time.

It couldn't opt in because two of its tests assert on what a source write
does to the *loader*: that the write flushed the module out, and that the
flush was recorded. A test whose index was restored runs against a realm
started with `skipBootIndex`, so no fixture module was ever loaded for a
write to invalidate or a flush to record, and both preconditions fail.

Those two belong to a coherent group of twelve — executable invalidation,
rebuild telemetry, flush records — which all read the loader's reaction to a
code change rather than the Store's handling of data. Moving the whole group
to store-module-rebuild-test.gts, rather than only the two that happened to
fail, keeps the concern in one place and stops a sibling from quietly
depending on the boot index later. They carry their own three helpers
(countRebuilds, renderCard, captureTelemetry) and a fixture set cut to what
they use: Person, Employee, and one instance, in place of the parent's four
classes and nine files.

store-test.gts keeps 61 tests and now reuses its index.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@backspace
backspace force-pushed the store-module-rebuild-split branch from b88542a to 5e83405 Compare August 11, 2026 16:04
@backspace
backspace marked this pull request as ready for review August 11, 2026 17:16
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