Repository navigation
Re-enable the disabled fetch WPT files - #8546
Conversation
There was a problem hiding this comment.
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.
45044d7 to
d331595
Compare
There was a problem hiding this comment.
✅ 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
|
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. |
|
@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)" |
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", anderror-after-responseandheader-value-combininghit "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-combiningfetchesxhr/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, andfetch()rejects a truncated header block, so the six cases are expected failures.error-after-response:read()rejects on the bad chunk, but withError("Network connection lost.")rather than a TypeError. Theclosedcase 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 uncaughtwaitUntil()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.