Repository navigation
test(sessions): keep held archive read after main in pinned-page fixture - #198822
Merged
Merged
Conversation
Main #198775 groups exact archive reads by store identity. The pinned-page fixture held archive-pin before main while waiting for main to progress, causing a reproducible 120-second timeout on the CI main parent. Sort the held fixture store after main without changing assertions, timeouts, or production behavior. All 22 cases pass on both the PR branch and CI parent with this fixture correction; Codex review is clean.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 15, 2026
Main openclaw#198775 groups exact archive reads by store identity. The pinned-page fixture held archive-pin before main while waiting for main to progress, causing a reproducible 120-second timeout on the CI main parent. Sort the held fixture store after main without changing assertions, timeouts, or production behavior. All 22 cases pass on both the PR branch and CI parent with this fixture correction; Codex review is clean.
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.
Problem
src/gateway/session-row-projection.accepted-facts.test.ts > handles an exact cold archive suffix during overlapping pinned pageshangs until its 120-second timeout on currentmain. PR CI on unrelated changes that select this file inherits the red (seen on run 43584072968, job 132415074661).Root cause
#198775 (ea4f8e0) sorts the missing exact-read identities in
prepareExactRowsso interleaved list rows from one store share worker admissions. In the fixture, the first page mixes twomainrows with one row from a second agent,archive-pin. The test gates the firstwithSessionRowDatabaseFactscall (mockImplementationOnce) and holds thearchive-pinread untilmain's accepted suffix is observed. Before the sort,mainwas read first because of page order. After it,archive-pinsorts first. That read consumes the one-shot gate and then waits on its own hold, so the test deadlocks on itself.Production ordering is still correct. A request already awaits all of its keys, and nothing in the product holds one store's read until another store's read finishes. Only the fixture depended on page order.
Fix
This applies lane 2486's fixture commit 7130b86 from #198786 byte for byte, so that PR still merges cleanly. The held agent is renamed to
zz-archive-pin, which sorts aftermainunder both the old FIFO order and the grouped order. A one-line comment states the dependency. Assertions, timeouts and production code are unchanged.Evidence
session-row-projection-refresh.tsalone makes it pass (lane 2486/2488 evidence). The owner, prepared-read, database-facts, fixture and test-setup blobs on current main 93fdc3d are identical to that reproduction.session-row-projection*suite, plus prepared-read, publication-authority, sessions-list privacy and archive-attribution, passes locally on this head: 36 files, 274 tests.oxfmt --check,oxlintandgit diff --checkare clean.Lane 2486's isolated Codex review of this exact commit was scoped-clean (verdict 0.94).