Skip to content

Re-enable the disabled fetch WPT files - #8546

Merged
littledivy merged 1 commit into
mainfrom
littledivy/2026-11-17-wpt-fetch-disabled
Nov 18, 2026
Merged

littledivy merged 1 commit into
mainfrom
littledivy/2026-11-17-wpt-fetch-disabled

Conversation

@littledivy

Copy link
Copy Markdown
Member

Three fetch/api WPT files were disabled outright in the first fetch triage, with reasons that no longer match what they do: request-upload "appears to corrupt the state of workerd", and error-after-response and header-value-combining hit "stream disconnected prematurely and a dropped promise".

In this patch all three run again, in both the C++ and TypeScript streams configurations, with the reason for each remaining failure:

  • header-value-combining fetches xhr/resources/*.asis, which the wptserve sidecar wasn't serving, so every case got a 404. They are now served. Each .asis response ends its header block at EOF without the terminating blank line, and fetch() rejects a truncated header block, so the six cases are expected failures.
  • error-after-response: read() rejects on the bad chunk, but with Error("Network connection lost.") rather than a TypeError. The closed case is disabled. The body is only read on demand, so with no read pending the bad chunk is never seen and the request is cancelled as hung.
  • request-upload: 13 of 19 cases pass. The five that enqueue a non-byte chunk are 🐛 Bug Report — fetch() can complete a chunked upload after its body stream errors #7983. fetch() resolves anyway, and the body's TypeError escapes as an uncaught waitUntil() error that fails the whole test event, which was the "corruption". They stay disabled. workerd allows streaming uploads over HTTP/1.1, so that case is an expected failure.

There is no runtime change.

@littledivy
littledivy requested review from a team as code owners November 17, 2026 17:12

@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 d3315959.

This review, of 45044d78

✅ Approved — No issues found. This is a test-config-only change: it re-enables three fetch WPT files, and each remaining failure or disabled case is named and explained.

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


✅ All checks passed

📋 Code Quality: ✅ LGTM

The new .asis fixtures are exported in build/BUILD.wpt and served by both fetch wpt_test targets. The expectations in api-test.ts and api-test-ts.ts match each other.


📝 Documentation: ✅ LGTM

The updated test comments explain the current reason for each expected failure or disabled case, and they don't refer to earlier versions.


Reviewed commit: 45044d78

Three fetch/api WPT files were disabled outright in the first fetch triage, with reasons that no longer match what they do: request-upload "appears to corrupt the state of workerd", and error-after-response and header-value-combining hit "stream disconnected prematurely and a dropped promise".

In this patch all three run again, in both the C++ and TypeScript streams configurations, with the reason for each remaining failure:

- header-value-combining fetches `xhr/resources/*.asis`, which the wptserve sidecar wasn't serving, so every case got a 404. They are now served. Each .asis response ends its header block at EOF without the terminating blank line, and fetch() rejects a truncated header block, so the six cases are expected failures.
- error-after-response: read() rejects on the bad chunk, but with `Error("Network connection lost.")` rather than a TypeError. The closed case is disabled. The body is only read on demand, so with no read pending the bad chunk is never seen and the request is cancelled as hung.
- request-upload: 13 of 19 cases pass. The five that enqueue a non-byte chunk are #7983. fetch() resolves anyway, and the body's TypeError escapes as an uncaught waitUntil() error that fails the whole test event, which was the "corruption". They stay disabled. workerd allows streaming uploads over HTTP/1.1, so that case is an expected failure.

There is no runtime change.
@littledivy
littledivy force-pushed the littledivy/2026-11-17-wpt-fetch-disabled branch from 45044d7 to d331595 Compare November 17, 2026 17:21

@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 — No issues found. This pull request only changes test configuration: it re-enables three fetch WPT files, and the updated expectations explain each remaining failure or disabled case and match between the C++ and TypeScript streams configurations.

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


✅ All checks passed

📋 Code Quality: ✅ LGTM

The revised disabledTests / expectedFailures lists in api-test.ts and api-test-ts.ts match each other. The new .asis fixtures are exported in build/BUILD.wpt and served to both fetch wpt_test targets.


📝 Documentation: ✅ LGTM

The test comments explain the current reason for each expected failure or disabled case. They describe how the code behaves now and don't refer back to earlier versions.


Reviewed commit: d3315959

@npaun

npaun commented Nov 17, 2026

Copy link
Copy Markdown
Member

Have you repeatedly re-run the newly enabled tests locally (e.g. --runs_per_test=100) or something? Some fetch api tests can be alarmingly brittle even if they seem fine. But these ones might no longer be worrisome, in which case I can stamp this PR.

@littledivy

Copy link
Copy Markdown
Member Author

@npaun Yes, mr. clanker says, "I did --runs_per_test=100 --nocache_test_results on fetch/api@, fetch/api-ts@, fetch/api@all-autogates and fetch/api-ts@all-autogates: 400/400 passed (avg about 16s per run, max 24s)"

@littledivy
littledivy merged commit 1874702 into main Nov 18, 2026
62 of 66 checks passed
@littledivy
littledivy deleted the littledivy/2026-11-17-wpt-fetch-disabled branch November 18, 2026 03:54
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.

3 participants