Skip to content

fix(e2e): OpenAI smoke fails while agent databases are starting - #177173

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/release-openai-smoke-readiness-20261019
Oct 19, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/release-openai-smoke-readiness-20261019

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: the OpenAI chat-tools release smoke fails with HTTP 503 when the Gateway health check succeeds before agent database admission finishes.

User Impact

No user-visible product change. Release validation waits for Gateway readiness before sending its chat-tools request. No configuration changes or migrations are required.

Why This Change Was Made

Use the existing bounded /readyz readiness helper instead of treating health RPC success as traffic readiness. Keep the same 360 attempts, the final authenticated health check, and the single strict chat request; do not retry the write or weaken the Gateway's startup guard.

Evidence

  • Reproduced the release job failure at the real scenario startup-to-client boundary: healthy RPC followed by non-JSON response 503: Agent database is starting. Please retry.
  • The provider-free regression uses a controlled real HTTP listener and the unmodified chat client. It verifies no POST while readiness is pending and exactly one authenticated POST after admission.
  • Regression plus readiness-owner suite: 41 tests passed, 6.64s wall time. Final regression file: 206ms test time, 3.47s wrapper wall time. CI seconds are unavailable; CI was not run.
  • Targeted typecheck, type-aware lint, formatting, Bash syntax, and whitespace checks passed.
  • Canonical independent autoreview (Codex, P0–P2): scoped-clean. Only mechanical lint corrections followed that review.

Proof gaps: full live Gateway/provider integration, the Docker release lane, and CI were not run. This proof covers harness readiness ordering, not provider behavior or complete packaged-runtime compatibility.

Contributor credit

Co-authored with @vincentkoc.

Work sessions

Worked on by

roboclaw-bot and others added 2 commits October 19, 2026 08:24
Reuse the bounded readiness owner before the chat-tools POST so a healthy RPC cannot race required agent database admission. Preserve the final authenticated health check and the single strict client request.

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 09374d76-3dfc-4525-a010-598402a34e2e
@clawsweeper

clawsweeper Bot commented Oct 19, 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 scripts Repository scripts size: M labels Oct 19, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 19, 2026 09:03
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 19, 2026
@roboclaw-bot
roboclaw-bot merged commit 74a970d into main Oct 19, 2026
162 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/release-openai-smoke-readiness-20261019 branch October 19, 2026 09:16
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
…claw#177173)

* fix(test): wait for OpenAI smoke gateway readiness

Reuse the bounded readiness owner before the chat-tools POST so a healthy RPC cannot race required agent database admission. Preserve the final authenticated health check and the single strict client request.

Co-authored-by: vincentkoc <[email protected]>

* fix(e2e): OpenAI smoke fails while agent databases are starting

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 09374d76-3dfc-4525-a010-598402a34e2e

---------

Co-authored-by: vincentkoc <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 1, 2026
)

* fix(test): wait for OpenAI smoke gateway readiness

Reuse the bounded readiness owner before the chat-tools POST so a healthy RPC cannot race required agent database admission. Preserve the final authenticated health check and the single strict client request.

Co-authored-by: vincentkoc <[email protected]>

* fix(e2e): OpenAI smoke fails while agent databases are starting

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 09374d76-3dfc-4525-a010-598402a34e2e

---------

Co-authored-by: vincentkoc <[email protected]>
(cherry picked from commit 74a970d)
Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant