Repository navigation
fix(ci): align Gateway E2E expectations with current behavior - #148653
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 11:37 PM ET / September 15, 2026, 03:37 UTC (Revision 3). ClawSweeper reviewWhat this changesUpdates 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 Review scores
Verification
How this fits togetherThe 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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +4. Total +4 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
* 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) ...
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
2c796d69b2c917319cfc0913837c38975a63d4aa; parent:c0c4881d01785da6ddefed92029fe58001f43539. The tested and committed diff is identical.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.