Skip to content

Skip the SSO E2E tests when Tsinghua's site drops out mid-test - #1805

Merged
robertying merged 1 commit into
mainfrom
claude/project-thread-krswj4
Nov 22, 2026
Merged

robertying merged 1 commit into
mainfrom
claude/project-thread-krswj4

Conversation

@robertying

Copy link
Copy Markdown
Owner

Requested by Rui · project thread

Summary

The @network tests in electron/e2e/sso.e2e.ts check that id.tsinghua.edu.cn answers before each test and skip when it doesn't. The site can still stop answering a few seconds later, while the web view loads it: the web view then shows Chromium's error page, its hostname reads chromewebdata, and the test failed after 30 s instead of skipping (main's Windows E2E on 6c33309; its retry was skipped by the check).

The tests now record the web view's main frame did-fail-load events (a capturing listener on the document, since they don't bubble) and, while waiting for the login page, skip when its load failed with a network error: a time out (-7), a changed network (-21), a connection or host name error (-100 to -199) or an empty answer (-324). Any other failure, such as a load the app blocked or a certificate error, still fails the test.

Testing

  • Reproduced the CI failure locally by forcing the tests past the reachability check where the site can't be reached: both tests failed with Received: "chromewebdata". With the change they skip in about 2 s with "https://id.tsinghua.edu.cn/ stopped answering: ERR_TUNNEL_CONNECTION_FAILED (-111)"; the cancel test still passes.
  • tsc -p electron, oxlint and oxfmt pass.

Generated by Claude Code

The @network SSO tests checked that id.tsinghua.edu.cn answered before each test, but the site can stop answering a few seconds later, so the web view showed Chromium's error page (chromewebdata) and the test failed instead of skipping. They now record the web view's main frame load failures and skip when its load of the login page fails with a network error (time out, connection or host name error), as the check before the test does. Other failures, such as a load the app blocked or a certificate error, still fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@robertying
robertying merged commit 5808dcc into main Nov 22, 2026
9 checks passed
@robertying
robertying deleted the claude/project-thread-krswj4 branch November 22, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants