Repository navigation
test(minimax): clear OAuth observation deadlines - #134569
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 9:30 PM ET / September 1, 2026, 01:30 UTC. ClawSweeper reviewWhat this changesThe PR replaces ad-hoc MiniMax OAuth test observation races with the shared timeout helper and table-drives the authorization-code and token-polling loopback cases. Merge readinessNo blocking patch defect found. Current main still has the original observation race, while this member-authored PR cleanly replaces it with the existing SDK helper and retains both production OAuth timeout paths; it needs normal maintainer acceptance after exact-head checks finish. Priority: P3 Review scores
Verification
How this fits togetherMiniMax OAuth uses an authorization-code request followed by token polling. Its tests simulate both HTTP phases against a hanging loopback server and verify that the production deadline aborts the request. flowchart LR
A[OAuth test harness] --> B[Hanging loopback server]
B --> C[MiniMax OAuth login]
C --> D[Production request timeout]
D --> E[Tagged rejection assertion]
E --> F[Observation deadline cleanup]
Decision needed
Why: Current main does not contain the cleanup, but MEMBER-authored work and the protected maintainer label require an explicit maintainer merge decision. Before merge
Agent review detailsSecurityNone. PR surfaceTests -32. Total -32 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the production OAuth owner unchanged and merge this focused test cleanup after normal maintainer acceptance and exact-head CI completion. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes test observation cleanup, not a separately reported user-facing failure. The source shows both OAuth request phases remain exercised through the existing local loopback scenario. Is this the best way to solve the issue? Yes, with a dependency-inspection limitation: the patch reuses the existing public plugin SDK timeout seam, preserves the meaningful production-timeout assertions, and removes duplicated phase setup. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against b48e2dbce22c. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
|
Maintainer review completed at dcf4e00. I inspected the installed @openclaw/fs-safe 0.5.6 implementation directly: dist/timing.js:10-40 returns the Promise.race result inside try/finally and clears timeoutId in finally. A separate executable probe observed two timers created and two cleared, with no active handles remaining, across resolution and rejection; the resolved value and exact rejection object were preserved. This addresses the latest ClawSweeper dependency-contract risk and Rank-up move. The focused 33-case run and suppressed-production-timeout negative control also pass as described in the PR. No code revision is needed. |
|
Maintainer review complete for 82f1254. Exact-head hosted gates and native preparation pass. The latest ClawSweeper review has no patch findings; its dependency-inspection gap is covered by direct inspection of the installed @openclaw/fs-safe 0.5.6 timing implementation and a contract probe: successful and rejected operations started two deadlines, cleared both, retained no active handles, and preserved the original rejection identity. The SDK facade uses this implementation. Both real loopback OAuth phases still assert the production 30-second deadline and abort signal. Suppressing the production timeout callback fails against the independent 2-second observation bound. All 33 OAuth/registration cases pass; the refreshed five-file CI reproduction also passes all 134 cases. Pricing fixture conflicts were resolved to exact upstream main bytes, so the final PR changes only oauth.test.ts (+62/-94; production unchanged). Normal maintainer acceptance is covered by the requested landing work; no rank-up code change remains. |
|
Merged via squash.
|
* test(minimax): clear OAuth observation deadlines * test(providers): pin promotional pricing fixture dates
The two hanging-loopback OAuth cases leave their losing two-second observation timers running after the expected request rejection. Use the existing shared timeout helper, which clears its timer in finally, and combine the duplicate phase setup into a table.
Both real HTTP request phases, the 30 ms raw-fetch negative control, the captured 30-second production timeout callbacks, and the two-second observation limits remain. Login failures are converted to tagged outcomes before applying the test guard, so a guard expiry cannot satisfy the expected production AbortError/TimeoutError assertion.
All 33 selected OAuth and registration cases pass before and after. Suppressing the production callback makes the revised case fail through its independent guard; restoring the fixture passes the suite. Production is unchanged; tests +62/-94 (net -32). Two leftover timers are removed, with no elapsed-time gain claimed.
CI initially exposed ambient-date pricing assertions, which have since been fixed on main in #134564. The main refresh keeps that repair unchanged and resolves the resulting fixture conflicts. All 134 selected provider cases pass on the refreshed tree. Full changed checks and independent Codex autoreview pass.