Skip to content

test(sessions): keep held archive read after main in pinned-page fixture - #198822

Merged
steipete merged 1 commit into
mainfrom
fix/accepted-facts-held-store-order
Nov 14, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/accepted-facts-held-store-order

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Problem

src/gateway/session-row-projection.accepted-facts.test.ts > handles an exact cold archive suffix during overlapping pinned pages hangs until its 120-second timeout on current main. 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 prepareExactRows so interleaved list rows from one store share worker admissions. In the fixture, the first page mixes two main rows with one row from a second agent, archive-pin. The test gates the first withSessionRowDatabaseFacts call (mockImplementationOnce) and holds the archive-pin read until main's accepted suffix is observed. Before the sort, main was read first because of page order. After it, archive-pin sorts 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 after main under both the old FIFO order and the grouped order. A one-line comment states the dependency. Assertions, timeouts and production code are unchanged.

Evidence

  • Red: on main parent 51fc614 and CI parent e3f1538, the case times out at 120 s. Restoring the pre-ea4f8e02 session-row-projection-refresh.ts alone 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.
  • Green: with this commit on 93fdc3d, the full file passes 22/22. The formerly hanging case takes 448 ms.
  • Other exact-row-preparation tests: every 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, oxlint and git diff --check are clean.

Lane 2486's isolated Codex review of this exact commit was scoped-clean (verdict 0.94).

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.
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T11:11:39.172694Z 14731be PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Nov 14, 2026
@steipete
steipete merged commit 09d322a into main Nov 14, 2026
32 of 36 checks passed
@steipete
steipete deleted the fix/accepted-facts-held-store-order branch November 14, 2026 11:10
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant