Repository navigation
Stabilize store fixtures and expose replay worker errors - #1340
Merged
Merged
Conversation
AnthonyRonning
force-pushed
the
codex-winstore-maple
branch
from
October 28, 2026 05:38
2b406b3 to
8c2d77e
Compare
AnthonyRonning
marked this pull request as ready for review
October 28, 2026 06:32
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.
The host snapshot fixture recursively read the live SQLite WAL-index (
maple.db-shm), whose Windows byte-range locks can reject those reads with OS33. It also took its physical baseline while the fixture's seed write could still be checkpointed. This change drains that seed checkpoint, reopens the same store, and excludes only its exact WAL-index path. Main database, WAL and every other source file still undergo exact byte comparison; every refusal/no-drain/runtime-state assertion remains.The Linux
agent-testfailure on this PR exposed a separate owner-lock fixture assumption: dropping itsFilewas immediately followed by a free-lock assertion. The fixture now explicitly callsowner.unlock().unwrap()before dropping it, retaining all missing-path, held-lock and released-lock checks. Linux flock locks follow the open-file description, so duplicated/inherited descriptors can retain a lock after the original descriptor closes. An isolated local duplicate-descriptor experiment demonstrated that distinction and explicit-unlock behavior; the failed CI log does not establish whether that mechanism caused the historical occurrence. Production locking and conservative availability probes are unchanged.The original replay capture failure is not fixed or explained here. Its
Disconnectedhid the worker's actual result. If the hook is not entered, this change releases a late hook, joins the worker, and reports its actual error or resumes its original panic. Every normal-path assertion and deadline remains. No replay, storage, ACL, signature or resource-budget behavior changes.Failure evidence:
317b9e86/ PR head2b406b34: the final free-lock assertion returned false. That test was unchanged from master. Its failed run/log are preserved; no CI rerun was used to conceal it.Validation:
ddb3224b) and 40629115233 (1096bdc9) both passed on the 4-core runner with ordinary parallel workspace tests, 20 complete host iterations and 80 replay subcases per run. These are diagnostic-source results, not current-head native CI.VirtualLockfailures; it was not the final process peak. The memory-lock hypothesis remains unproven. Temporary stress loops, stage tracking and key telemetry are removed;store/keys.rsandstore/replay.rsmatch master.ci-lint+ci-test, all strict Clippy feature sets and workspace tests) passed on macOS at0fbd77fb. The branch was then rebased onto CI/docs-only masterc7000803; all edited/tested files are byte-identical. This is local source validation, not Linux/Windows native proof.ci:windowsremains applied. Final rebased head8c2d77e1CI is run 40639164186; its result is pending.This remains draft while the original replay cause is investigated. No retries, sleeps, ignored tests, Windows skips, relaxed assertions, CI/release workflow changes or automatic merge are included.
Need help on this PR? Tag
@codesmith-botwith what you need.