Skip to content

Add cache, htmlrewriter, and formdata streams suites - #7178

Open
jasnell wants to merge 1 commit into
jasnell/streams-test-consolidation-7from
jasnell/streams-test-consolidation-8
Open

Add cache, htmlrewriter, and formdata streams suites#7178
jasnell wants to merge 1 commit into
jasnell/streams-test-consolidation-7from
jasnell/streams-test-consolidation-8

Conversation

@jasnell

@jasnell jasnell commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

More streams test consolidations

@jasnell
jasnell requested review from a team as code owners August 28, 2026 22:47
Comment on lines +10 to +13
wd_test(
src = "cache-cpp.wd-test",
data = cache_suite_srcs,
)

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 moved regression previously ran with only nodejs_compat. This C++ cell forces the standard TransformStream constructor, so the test no longer covers workers before transformstream_enable_standard_constructor became enabled. Add an unflagged legacy config/module that runs concurrentClonePuts, then register it here with its all-compat-flags variant disabled.

Suggested change
wd_test(
src = "cache-cpp.wd-test",
data = cache_suite_srcs,
)
wd_test(
src = "cache-cpp.wd-test",
data = cache_suite_srcs,
)
# Retains the cache clone-put regression for workers using the legacy
# TransformStream constructor.
wd_test(
src = "cache-cpp-legacy.wd-test",
data = cache_suite_srcs,
generate_all_compat_flags_variant = False,
)

.transform(new Response(rs))
.text();
strictEqual(elements, COUNT);
strictEqual(result.length, doc.length);

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.

This only compares output length, so a corruption that preserves length passes despite the test and its comment claiming byte-exact output.

Suggested change
strictEqual(result.length, doc.length);
strictEqual(result, doc);

@ask-bonk

ask-bonk Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

I'm Bonk, and I've done a quick review of your PR.

Consolidates cache, FormData, and HTMLRewriter stream tests into new dual-implementation suites.

  1. Medium: Legacy TransformStream cache regression coverage was removed.
  2. Low: HTMLRewriter large-output test only validates length, not content.

Posted 2 inline suggestion comments.

Here's a joke for you: Why did the stream get promoted? It always went with the flow.

github run

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