Skip to content

fix(ci): align Gateway E2E expectations with current behavior - #148653

Merged
vincentkoc merged 1 commit into
mainfrom
fix/ci-e2e-expectations-20260915
Sep 15, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/ci-e2e-expectations-20260915

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Two Gateway E2E expectations no longer match current behavior: New Agent now says “Let's create an agent,” and a provider-owned request deadline can span multiple stall-heartbeat reports.

User Impact

Test maintenance only; production behavior is unchanged.

Why This Change Was Made

Align both welcome assertions with the current producer. Accept repeated stall reports while requiring every report to have a numeric age at or above the existing six-minute no-progress bound. Authentication, recovery, deadline, queue, history, terminal-state, and cleanup assertions remain intact.

Evidence

  • Signed head: 2c796d69b2c917319cfc0913837c38975a63d4aa; parent: c0c4881d01785da6ddefed92029fe58001f43539. The tested and committed diff is identical.
  • Source review and formal P0–P2 autoreview passed with no actionable findings.
  • Exact-head Testbox validation: frozen install, all 16 changed checks, and the required private-QA build passed.
  • Both complete focused E2E files passed on Node 24.19.0/Linux: 2 tests, zero failures or skips. The provider-timeout case passed in 449.9 seconds; managed authentication passed in 4.7 seconds.
  • Command: pnpm test:e2e:gateway test/system-agent-managed-auth.e2e.test.ts test/e2e/qa-lab/runtime/gateway-repeated-request-recovery.e2e.test.ts.

Focused proof is complete. Required hosted CI and native landing checks remain before merge.

@vincentkoc vincentkoc self-assigned this Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 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 size: XS maintainer Maintainer-authored PR labels Sep 15, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 11:37 PM ET / September 15, 2026, 03:37 UTC (Revision 3).

ClawSweeper review

What this changes

Updates Gateway end-to-end tests to expect the current New Agent greeting and allow repeated stall reports while checking every report’s minimum age.

Merge readiness

✅ Ready for maintainer review

The focused test corrections remain necessary on current main, and no actionable patch defects were found. The updated evidence addresses the prior request for completed E2E runs. This maintainer-authored PR remains protected from cleanup closure.

Priority: P3
Reviewed head: 2c796d69b2c917319cfc0913837c38975a63d4aa

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported test correction with no actionable findings and completed scenario results reported in the updated evidence.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored test-only PR. Its updated body reports completed real-Gateway greeting/authentication and provider-timeout/queue scenarios on the reviewed head; raw Testbox logs were inaccessible to this reviewer.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored test-only PR. Its updated body reports completed real-Gateway greeting/authentication and provider-timeout/queue scenarios on the reviewed head; raw Testbox logs were inaccessible to this reviewer.
Evidence reviewed 7 items Verified introduced scope: The pinned parent-to-head diff changes only greeting expectations and stall-count assertions; authentication, recovery, queue, terminal-state, and cleanup checks remain intact. Diff whitespace validation passed.
Greeting producer matches the corrected expectation: The current-main welcome producer returns “Let's create an agent”; the Gateway invokes it for the new-agent welcome variant. Current-main E2E assertions still expect the older greeting.
Repeated stall reports are supported by the owner: The heartbeat repeatedly classifies active work and emits session.stalled; warning backoff applies to stuck and long-running reports, not stalled reports. Provider allowance independently gates recovery, so an exact count of one is not the production contract.
Findings None None.
Security None None.

How this fits together

The Gateway accepts agent-setup and chat requests, invokes providers, and reports session progress. These tests exercise its greeting, credential handling, provider timeout, and queued-reply behavior.

flowchart TD
  A[Gateway E2E scenarios] --> B[Real Gateway]
  B --> C[New Agent greeting]
  B --> D[Provider requests]
  D --> E[Stall diagnostics and timeout]
  E --> F[Queued reply completion]
  C --> G[Contract assertions]
  F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +4. Total +4 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 9 5 +4
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 9 5 +4

Review metrics

None.

Technical review

Best possible solution:

Keep the existing end-to-end coverage aligned with producer behavior while preserving credential-rotation rejection, provider deadline ownership, and exactly-once queued completion.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a production bug reproduction: source inspection establishes stale test expectations, and the PR body reports both corrected scenarios passing; this read-only review did not execute tests.

Is this the best way to solve the issue?

Yes. Updating the existing assertions follows the production owners without changing deadlines, weakening authentication checks, or adding a competing implementation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 1528bc1614de.

Labels

Label justifications:

  • P3: This is bounded test maintenance with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored test-only PR. Its updated body reports completed real-Gateway greeting/authentication and provider-timeout/queue scenarios on the reviewed head; raw Testbox logs were inaccessible to this reviewer.

Evidence

What I checked:

  • Verified introduced scope: The pinned parent-to-head diff changes only greeting expectations and stall-count assertions; authentication, recovery, queue, terminal-state, and cleanup checks remain intact. Diff whitespace validation passed. (test/e2e/qa-lab/runtime/gateway-repeated-request-recovery.e2e.test.ts:398, 2c796d69b2c9)
  • Greeting producer matches the corrected expectation: The current-main welcome producer returns “Let's create an agent”; the Gateway invokes it for the new-agent welcome variant. Current-main E2E assertions still expect the older greeting. (src/system-agent/new-agent-welcome.ts:15, 1528bc1614de)
  • Repeated stall reports are supported by the owner: The heartbeat repeatedly classifies active work and emits session.stalled; warning backoff applies to stuck and long-running reports, not stalled reports. Provider allowance independently gates recovery, so an exact count of one is not the production contract. (src/logging/diagnostic.ts:1051, 2c796d69b2c9)
  • Prior merged timeout-contract clarification: fix(qa): align repeated-request proof with provider timeout #129851 is merged and explicitly establishes provider-owned deadlines, visible cumulative stall diagnostics, zero diagnostic recovery events, and exactly one queued reply as this scenario’s intended contract. (test/e2e/qa-lab/runtime/gateway-repeated-request-recovery.e2e.test.ts, c8c6e5a990b2)
  • Previous validation request addressed: The captured PR body reports both complete focused E2E files passing on the unchanged head under Node 24.19.0/Linux: two tests, no failures or skips, with durations of 449.9 seconds and 4.7 seconds. This addresses the previous review’s single rank-up request. The linked Testbox workflow has an overall cancelled conclusion; its raw logs could not be inspected because the redirected storage host is blocked. The reported focused results are therefore distinguished from an independently verified green workflow. (2c796d69b2c9)
  • Current-main necessity and release check: Fetched main still contains both obsolete greeting assertions and the exact-one stall assertion. No locally available release tag contains the proposed head; no shipped-fix claim is made. (test/e2e/qa-lab/runtime/gateway-repeated-request-recovery.e2e.test.ts:398, 1528bc1614de)

Likely related people:

  • Miguel Branco: Raw commit a00606a adds test/system-agent-managed-auth.e2e.test.ts:125 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a00606a55d85; files: test/system-agent-managed-auth.e2e.test.ts)
  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-15T00:37:57.014Z sha 2c796d6 :: blocked before merge. :: none
  • reviewed 2026-09-15T03:04:56.220Z sha 2c796d6 :: blocked before merge. :: none

@vincentkoc
vincentkoc marked this pull request as ready for review September 15, 2026 03:31
@vincentkoc
vincentkoc merged commit 9e10ec9 into main Sep 15, 2026
187 of 188 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-e2e-expectations-20260915 branch September 15, 2026 03:52
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
vincentkoc added a commit that referenced this pull request Sep 15, 2026
* commit 'd8e50a38fd1c4df6dd69bcbc155697c464e1be45': (23 commits)
  fix(cron): release queued reservations when activation fails (#141008)
  fix(gateway): reduce CPU work in session lists and searches (#148713)
  feat(gateway): add admin CPU profile diagnostics (#148004)
  fix(gateway): cap device-required probe cache to prevent unbounded growth (#147708)
  fix(ci): align Gateway E2E expectations (#148653)
  refactor(ai): remove unused overflow wrapper (#148719)
  feat: stage selected chat text as editable comments (#148649)
  fix(ci): admit reachable release refs with large histories (#148161)
  fix(agents): allow authorized email CLI actions (#148521)
  improve(agents): trim large tool results with less CPU (#148718)
  refactor(docker): share image version parsing (#148243)
  fix(ci): retain passing hosted checks after skipped duplicates (#148722)
  fix(update): report configuration failures during repair (#144819)
  refactor(imessage): share handle classification (#148229)
  fix(ui): keep the selected agent across Settings pages (#148667)
  test(telegram): reuse deferred fixture helper (#148501)
  fix(media): resize images before understanding (#122431)
  fix: preserve unfinished work during completed PR cleanup (#148704)
  refactor(migrate-hermes): reuse canonical config record coercion (#148645)
  perf(channels): reduce history worker metadata footprint (#148711)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant