Skip to content

test(gateway): wait for session delivery completion - #139891

Closed
steipete wants to merge 1 commit into
mainfrom
codex/session-delivery-completion-test
Closed

steipete wants to merge 1 commit into
mainfrom
codex/session-delivery-completion-test

Conversation

@steipete

@steipete steipete commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

The session-delivery clock-jump integration test could observe an empty durable queue and immediately check the Gateway client before its chat event arrived. CI hit that boundary with one successful provider request but an empty client event buffer.

Why This Change Was Made

Wait for queue removal, the client-visible reply, and durable completion together under the existing 15-second wait. Queue settlement does not acknowledge client receipt.

User Impact

Test-only repair: exactly-one-provider-request and prompt checks, the real scheduler/Gateway/client, clock-jump sequence, 90-second case timeout, and cleanup remain unchanged. No production changes, new mocks, or longer deadlines.

Evidence

The original failure is CI job 101433311322, at the immediate client marker assertion. The original local baseline and repaired real Gateway test both passed; no local failing reproduction is claimed. The canonical changed gate and independent P2 review passed on the original repair.

Rebased as one commit onto main e19a7694cef6d38140033f798215103dd638fafb; the full-index patch and test bytes are identical to the reviewed repair. The direct queue/client-delivery owners are unchanged, but main updated dependencies. Frozen dependencies were refreshed in the task-owned worktree; the fresh real Gateway test passed on c502c952f9e05cb5e949300a763ca90f49e02447 (one test, 68.66s).

Production LOC: 0. Tests: +5/−4.

@clawsweeper

clawsweeper Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS maintainer Maintainer-authored PR labels Sep 6, 2026
@steipete

steipete commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

Closing as superseded by #139820, merged as d56a297. Current main already waits for the client-visible marker inside the existing queue-settlement wait, fixing the observed CI race while retaining the provider, queue, and durable-status assertions. The remaining differences here do not address a separate reproduced failure.

@steipete steipete closed this Sep 6, 2026
@RomneyDa
RomneyDa deleted the codex/session-delivery-completion-test branch October 22, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant