test
mwp4
task/mwp-4-prebuild-after-index
#6 / 6
test(mwp4): Phase 0 RED reproduction tests for RC-4 ordering race
MWP4_01 — correctly FAILING: claim_next_job returns fetch.mpack.prebuild before a pending mpack.index for the same repo, proving the ordering race (RC-4).
MWP4_02 — PASSING: after deleting inline MusehubMPackIndex rows written by wire_push_unpack_mpack at step 7d (simulating the pre-index state), running process_fetch_mpack_prebuild_job raises FetchNotIndexedError which the broad except at musehub_wire_fetch.py:1164-1167 silently swallows — tips_built=0, no MusehubFetchMPackCache row. The silent-no-cache bug is proven.
Issue: musehub#109, master: muse#58
sha256:2c523da45351334b5c4dbefed4dc3dd553b3faa8737a4e6caf301e5dc82141be
sha
+59
symbols
2 changed · 987 in snapshot
files
sha256:70860b8287e086d698f0fe9497ab806f4e657d6721739e0b4192a1ce6f5611ee
snapshot
+59
symbols added
2
files changed
987
files in snapshot
0
dead code introduced
Semantic Changes
59 symbols
+
index (fixes RC-4)
section MWP-4 — Gate fetch.mpack.prebuild behind mpack.index (fixes RC-4) L1–364
+
Adjacent suites to run green (no regressions)
section Adjacent suites to run green (no regressions) L330–340
+
Why it happens — RC-4 (foundation-job ordering race)
section Why it happens — RC-4 (foundation-job ordering race) L27–86
+
The load-bearing fix — a claim-layer dependency barrier
section The load-bearing fix — a claim-layer dependency barrier L138–199
+
Why a timestamp stagger alone is insufficient
section Why a timestamp stagger alone is insufficient L129–138
+
Phase 0 — RED reproduction (no production change)
section Phase 0 — RED reproduction (no production change) L236–250
+
Phase 1 — created_at stagger (defense-in-depth)
section Phase 1 — created_at stagger (defense-in-depth) L250–260
+
Phase 2 — claim-layer dependency barrier (load-bearing)
section Phase 2 — claim-layer dependency barrier (load-bearing) L260–280
+
Phase 4 — integration + stress (real worker claim loop)
section Phase 4 — integration + stress (real worker claim loop) L290–304
+
test_mwp4_01_claim_returns_prebuild_before_index
function
async_function test_mwp4_01_claim_returns_prebuild_before_index L176–235
+
test_mwp4_02_prebuild_swallows_fetch_not_indexed_error
function
async_function test_mwp4_02_prebuild_swallows_fetch_not_indexed_error L244–340
Files Changed
+2
987 in snapshot
+2
987 in snapshot
← Older
Oldest on task/mwp-4-prebuild-after-index
All commits
Newer
feat(mwp4/phase1): three-tier created_at stagger for fetch.mpack…
sha256:598464aa2f30443e6ab9cb1d2283b79f26896decc4dbf29b7feda42c4b6b5b37
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:2c523da45351334b5c4dbefed4dc3dd553b3faa8737a4e6caf301e5dc82141be --body "your comment"
No comments yet. Be the first to start the discussion.