Repository navigation
fix(e2e): close the sign-in page before the redirect loads; bound isolated sign-ins - #1198
Conversation
…lated sign-ins Since #1191 moved page.close() after an extra session request, three CI smoke runs hung in global setup for the full 30-minute job timeout, right after saving the default user's state. page.close() is the one call there with no timeout, and it now ran while the post-login /upload page was loading (compiled cold on CI). Close it straight after the credentials callback again, as before #1191, and check the session over the context's request API. Each isolated sign-in now fails after 60s, naming the user, instead of holding the job. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Review: small, focused e2e hardening. No blocking issues. Bugs / correctness
apiAuth.ts
Tests
Style
|
|
Claude finished @frankbria's task in 8m 51s —— View job Third-party precision review — complete
Verdict: no concrete defects in the diff. Suspects examined and cleared:
One watch item (not a finding — could not be confirmed here): No files modified, no commits pushed, per the review guardrails. |
Third-party review (review chain)Review: sign-in hang fix (early
|
Third Party Review — glm-5.2✅ Third Party Review: no defects found. Concrete-defect scope only, diff at 19f8ae9 (
Model: glm-5.2 |
Reviewer failover
|
Problem
Three CI runs since #1191 (
42562536594,42563372336on main,42568470680) hung in Playwright global setup until the 30-minute E2E job timeout cancelled them. Each stalled right after💾 Saved auth state, in the isolated users'signInAsloop, with no error printed. Five runs between #1191's merge and the first hang passed, so it is intermittent. Runner image is identical (ubuntu-26.0420261028.624) for hung and passing runs.Cause (best evidence; not reproduced locally)
Every call in
signInAshas a timer (20–30s) exceptpage.close(), and a timed-out call would have printed "Authentication setup failed", which never appears. #1191 movedpage.close()to after an extra/api/auth/sessionrequest, so it now runs while the post-login redirect to/uploadis loading. On a CI runner that route compiles cold. Before #1191 the page closed right after the credentials callback, and that ordering has a long green record. Four local runs pinned to two cores (taskset -c 0,1) did not hang: all 15 sign-in steps finished in under a second.Fix
signInAscloses the page straight after the callback again, then confirms the session's email overcontext.request, which doesn't need the page. The [P3.63] [testing] WebKit: the admin tenant's session fails admin-guard and plan-limit smoke #1178 hydration wait and identity check are kept.global-setup.tsraces each isolated sign-in against a 60s timer, so a future stall fails the run naming the user instead of holding the job for 30 minutes.Verification
@smokeon chromium-smoke + webkit-full: 92 passed, 1 skipped (the [P3.63] [testing] WebKit: the admin tenant's session fails admin-guard and plan-limit smoke #1178 WebKit specs still pass).🤖 Generated with Claude Code