Skip to content

Enable fetch WPT subtests that now pass - #8743

Merged
littledivy merged 1 commit into
mainfrom
littledivy/2026-11-20-wpt-stale-fetch
Nov 21, 2026
Merged

littledivy merged 1 commit into
mainfrom
littledivy/2026-11-20-wpt-stale-fetch

Conversation

@littledivy

@littledivy littledivy commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Two fetch/api expectations disable tests that pass today in both stream implementations. Two subtests in abort/general.any.js were disabled as flaky in 2025. basic/response-null-body.any.js was disabled because its response was thought to break later tests. All 11 of its subtests pass, and nothing else in the run fails.

In this patch they run again in api-test.ts and api-test-ts.ts. The third flaky abort/general subtest, Underlying connection is closed when aborting after receiving response, stays disabled. It was disabled for flaking only on macOS (f1b3bdc), and it isn't part of this change.

//src/wpt:fetch/api@, //src/wpt:fetch/api@all-autogates, //src/wpt:fetch/api-ts@ and //src/wpt:fetch/api-ts@all-autogates each passed 100 of 100 runs with --runs_per_test=100 on Linux x86-64. On macOS arm64, a local --runs_per_test=100 run of the same four targets passed every run that got past startup: 189 runs, all of which passed abort/general and response-null-body. The other runs never reached the tests, because the wptserve sidecar ran out of POSIX semaphores starting up in parallel. These targets don't run on Windows. Only test expectations change.

@littledivy
littledivy requested review from a team as code owners November 20, 2026 15:19

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Superseded by the review of 845b4f9d.

This review, of 3f2ccb7d

💬 Approved with comments — This only changes test expectations. One WARNING: two abort subtests that flaked before are re-enabled based on Linux runs alone, while CI also runs them on macOS, Windows and ARM.

Findings: 1 warning (1 is an inline comment on the diff)

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.

🔧 Fix with your agent

Paste the following into your coding agent to investigate and fix these issues.

Fix the following code review issues found in pull request #8743.

Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
  for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

## WARNING (1)

### [Code Quality] Two 'Underlying connection closed' abort subtests that flaked before are re-enabled based on Linux runs alone, while CI also runs on macOS, Windows and ARM; the new macOS-only comment is unsupported.
- **File:** src/wpt/fetch/api-test.ts:18

📋 Code Quality: ⚠️ 1 warning

Two abort subtests that flaked before are re-enabled based on Linux runs alone, while CI also runs on macOS, Windows and ARM.

Recommendation: 📝 Minor Comments

  • [WARNING] Two 'Underlying connection closed' abort subtests that flaked before are re-enabled based on Linux runs alone, while CI also runs on macOS, Windows and ARM; the new macOS-only comment is unsupported. (src/wpt/fetch/api-test.ts:18)
View full review
  • [WARNING] src/wpt/fetch/api-test.ts:18 (also src/wpt/fetch/api-test-ts.ts:21): two subtests come back while a third from the same group stays disabled, and the reasons given don't separate them.
    • Re-enabled: Stream errors once aborted, after reading. Underlying connection closed. and Stream errors once aborted. Underlying connection closed..
    • Their old comments said only "Flaky since …" and named no platform.
    • The evidence for re-enabling them is 100 of 100 runs on Linux.
    • .github/workflows/test.yml:38-53 also runs the test job on macOS, Windows and linux-arm. The pull request's own reason for keeping the third subtest disabled ("a Linux run says nothing about macOS") applies to these two as well.
    • If they still flake there, the required test checks fail at random on unrelated pull requests.
    • Fix: confirm they pass on the other CI runners, or keep them disabled.
    • The new wording Flaky on macOS since 2026-08-07 presents macOS-only flakiness as fact, but nothing in the repository supports it. Cite the source or keep the neutral wording.
  • Enabling basic/response-null-body.any.js with {} follows the convention of the other entries in the file.

✅ All other checks passed

📝 Documentation: ✅ LGTM

No documentation issues.


Reviewed commit: 3f2ccb7d

Comment thread src/wpt/fetch/api-test.ts Resolved
@littledivy
littledivy enabled auto-merge November 20, 2026 17:41
Two fetch/api expectations disable tests that pass today in both stream
implementations. Two subtests in abort/general.any.js were disabled as flaky
in 2025, and basic/response-null-body.any.js was disabled because its
response was thought to break later tests. All 11 of its subtests pass, and
nothing else in the run fails.

In this patch they run again in api-test.ts and api-test-ts.ts. The third
flaky abort/general subtest stays disabled: it was disabled for flaking only
on macOS, and a Linux run says nothing about that.
@littledivy
littledivy force-pushed the littledivy/2026-11-20-wpt-stale-fetch branch from 3f2ccb7 to 845b4f9 Compare November 21, 2026 01:47

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 Approved with comments — This only changes test expectations. One WARNING: two abort subtests that flaked before are re-enabled based on Linux runs alone, while CI also runs them on macOS, Windows and ARM.

Findings: 1 warning

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.

🔧 Fix with your agent

Paste the following into your coding agent to investigate and fix these issues.

Fix the following code review issues found in pull request #8743.

Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
  for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

## WARNING (1)

### [Code Quality] Two 'Underlying connection closed' abort subtests that flaked before are re-enabled based on Linux runs alone, while CI also runs on macOS, Windows and ARM; the new macOS-only comment is unsupported.
- **File:** src/wpt/fetch/api-test.ts:18

📋 Code Quality: ⚠️ 1 warning

Two abort subtests that flaked before are re-enabled based on Linux runs alone, while CI also runs on macOS, Windows and ARM.

Recommendation: 📝 Minor Comments

  • [WARNING] Two 'Underlying connection closed' abort subtests that flaked before are re-enabled based on Linux runs alone, while CI also runs on macOS, Windows and ARM; the new macOS-only comment is unsupported. (src/wpt/fetch/api-test.ts:18)
View full review
  • [WARNING] src/wpt/fetch/api-test.ts:18 (also src/wpt/fetch/api-test-ts.ts:21): two subtests come back while a third from the same group stays disabled, and the reasons given don't separate them.
    • Re-enabled: Stream errors once aborted, after reading. Underlying connection closed. and Stream errors once aborted. Underlying connection closed..
    • Their old comments said only "Flaky since …" and named no platform.
    • The evidence for re-enabling them is 100 of 100 runs on Linux.
    • .github/workflows/test.yml:38-53 also runs the test job on macOS, Windows and linux-arm. The pull request's own reason for keeping the third subtest disabled ("a Linux run says nothing about macOS") applies to these two as well.
    • If they still flake there, the required test checks fail at random on unrelated pull requests.
    • Fix: confirm they pass on the other CI runners, or keep them disabled.
    • The new wording Flaky on macOS since 2026-08-07 presents macOS-only flakiness as fact, but nothing in the repository supports it. Cite the source or keep the neutral wording.
  • Enabling basic/response-null-body.any.js with {} follows the convention of the other entries in the file.

✅ All other checks passed

📝 Documentation: ✅ LGTM

No documentation issues.


Reviewed commit: 845b4f9d — same changes as 3f2ccb7d, so this is that commit's review (no new review was run; line numbers are as of 3f2ccb7d)

@littledivy
littledivy merged commit 93e7ba5 into main Nov 21, 2026
23 checks passed
@littledivy
littledivy deleted the littledivy/2026-11-20-wpt-stale-fetch branch November 21, 2026 02: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