Skip to content

fix(e2e): broaden xiaoyuzhou skip logic for overseas CI runners#316

Merged
jackwener merged 2 commits intomainfrom
fix/e2e-xiaoyuzhou-skip
Mar 23, 2026
Merged

fix(e2e): broaden xiaoyuzhou skip logic for overseas CI runners#316
jackwener merged 2 commits intomainfrom
fix/e2e-xiaoyuzhou-skip

Conversation

@jackwener
Copy link
Copy Markdown
Owner

Fixes E2E CI failure on main.

The isExpectedChineseSiteRestriction function only matched FETCH_ERROR with HTTP 403/429/451/503. On overseas CI runners, xiaoyuzhou may also return PARSE_ERROR (mangled HTML) or NOT_FOUND (geo-redirected pages), causing false test failures.

Now matches all CliError codes from the xiaoyuzhou adapter + fetch failed for DNS/network issues.

Squash merge left a duplicate import line causing TS2300 and oxc parse
errors in CI. Also clean up stale blank lines in discovery.ts and
execution.ts.
The isExpectedChineseSiteRestriction function only matched FETCH_ERROR
with specific HTTP status codes. On overseas CI runners, xiaoyuzhou may
also return PARSE_ERROR (mangled HTML) or NOT_FOUND (geo-redirected
pages), causing false test failures. Now matches all CliError codes
from the adapter.
@jackwener jackwener merged commit a170873 into main Mar 23, 2026
11 checks passed
@jackwener jackwener deleted the fix/e2e-xiaoyuzhou-skip branch March 23, 2026 16:47
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.

1 participant