Skip to content

Next large chunk of streams consolidation tests and fixes - #7176

Open
jasnell wants to merge 28 commits into
mainfrom
jasnell/streams-test-consolidation-6
Open

Next large chunk of streams consolidation tests and fixes#7176
jasnell wants to merge 28 commits into
mainfrom
jasnell/streams-test-consolidation-6

Conversation

@jasnell

@jasnell jasnell commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

This is the largest chunk, covering transforms, readable, byob, and related. Any remaining chunks after this should be much much smaller.

@jasnell
jasnell requested review from a team as code owners August 28, 2026 21:59
@ask-bonk

ask-bonk Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

@jasnell Bonk workflow was cancelled.

View workflow run · To retry, trigger Bonk again.

@jasnell
jasnell force-pushed the jasnell/streams-test-consolidation-6 branch from aab0f79 to f10bfab Compare August 31, 2026 21:22
@jasnell
jasnell force-pushed the jasnell/streams-test-consolidation-6 branch from f10bfab to 98fbcaa Compare August 31, 2026 22:33
@jasnell
jasnell force-pushed the jasnell/streams-test-consolidation-6 branch from 98fbcaa to 7e9ef77 Compare August 31, 2026 23:36
@jasnell
jasnell force-pushed the jasnell/streams-test-consolidation-6 branch from 7e9ef77 to 0ac24d9 Compare September 1, 2026 00:21
@codecov-commenter

codecov-commenter commented Sep 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 9.55056% with 161 lines in your changes missing coverage. Please review.
✅ Project coverage is 37.19%. Comparing base (bd0943d) to head (ac36c64).

Files with missing lines Patch % Lines
src/workerd/api/tests/globals-iteration-test.js 0.00% 161 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7176      +/-   ##
==========================================
+ Coverage   36.33%   37.19%   +0.85%     
==========================================
  Files         811      800      -11     
  Lines      258167   250695    -7472     
  Branches    19918    19918              
==========================================
- Hits        93813    93236     -577     
+ Misses     153052   146139    -6913     
- Partials    11302    11320      +18     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jasnell
jasnell force-pushed the jasnell/streams-test-consolidation-6 branch from 0ac24d9 to d95893b Compare September 1, 2026 23:34
@jasnell
jasnell force-pushed the jasnell/streams-test-consolidation-6 branch from d95893b to 863a100 Compare September 1, 2026 23:52
Base automatically changed from jasnell/streams-test-consolidation-5 to main September 2, 2026 00:12
@jasnell
jasnell force-pushed the jasnell/streams-test-consolidation-6 branch from 863a100 to ac36c64 Compare September 2, 2026 00:12

@guybedford guybedford left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed the migration end to end: traced every export const from the deleted test files into the new suites, ran all 190 //src/tests/streams/... targets locally against both implementations (plus the touched api/tests targets), and confirmed the iocontext regression guard is real — reverting the transform.c++ change reproduces the segfault in iocontext-cpp@. LGTM.

One minor coverage gap noted inline.

};

// Test that new ReadableStream creates the right kind of controller
export const newReadableStreamControllerType = {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The controller-type assertions from this test (c instanceof ReadableStreamDefaultController / ReadableByteStreamController, byobRequest instanceof ReadableStreamBYOBRequest) and the same-pull caching identity byobRequest === c.byobRequest don't appear to have made it into the new suites — everything else here traced to a semantic equivalent. Worth folding into readable/api-surface.js and readable-byte/controller.js as a follow-up.

@jasnell

jasnell commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator Author

I'll likely hold off on merging this one until #7213 lands... it has a better fix for the TransformStream issues.

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