Skip to content

chore: sync workerd upstream 8035f89db59c (conflicts) - #16

Open
github-actions[bot] wants to merge 374 commits into
vrtfrom
sync/upstream-20261130
Open

github-actions[bot] wants to merge 374 commits into
vrtfrom
sync/upstream-20261130

Conversation

@github-actions

Copy link
Copy Markdown

Automated merge of cloudflare/workerd@8035f89db59cc678e73b83fb547b8294e4cc204d into vrt conflicts.

Conflicted files:

.gitattributes
.github/actions/setup-runner/action.yml
.github/workflows/test.yml
src/workerd/server/factory/worker-factory.c++

The head branch holds upstream's tree, so GitHub shows the real conflict. Resolve it
here with the "Resolve conflicts" editor or locally:

git fetch origin vrt sync/upstream-20261130
git switch -c resolve/8035f89db59c origin/vrt
git merge sync/upstream-20261130       # resolve, then commit
git push origin HEAD:sync/upstream-20261130

Prefer keeping our patch files (vrt-*) and taking upstream for everything else,
then re-check the hooks listed in FORK.md. No build runs until the conflict is gone.

When you resolve it, also write 8035f89db59cc678e73b83fb547b8294e4cc204d into .vrt/upstream and commit
it: release manifests use that file to record the upstream commit and tag.

jasnell and others added 30 commits November 24, 2026 19:04
The REPL's line editor kept the lines typed in a session for Up and
Down to recall, and lost them at exit. On a terminal, the console now
loads the latest 1000 lines of ~/.workerd_repl_history when it starts,
and appends each line to the file as it is submitted: a Ctrl+C while
an input runs ends the process at once, so the history can't wait to
be written at exit. WORKERD_REPL_HISTORY names another file, or, set
to the empty string, turns saving off. The file is created readable
by its owner only, since typed lines can hold secrets. A file that
can't be read or written gets one warning, and the session goes on
without saving. Loading rewrites a file that holds more than 1000
lines, in place, so that a history file that is a symbolic link stays
one.

The editor's in-memory history keeps the latest 1000 entries too.

history-test covers choosing, appending to, loading and trimming the
file, and its permissions; editor-test covers the editor's limit.
docs/repl.md, `.help` and `workerd repl --help` describe the file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An input that mentions `await` has three candidates: the input as a
script, then two async wrappings. The REPL ran the first that
compiled, and in a script `await` outside an async function is a
name: `await (f())`, `await [x]` and `await - 1` compiled as uses of
a function or variable named `await` and failed with "await is not
defined", as did `if (c) { await (x) }`.

Trying the wrappings first would be wrong the other way: an input
whose awaits are all inside async functions, such as a declaration
of one, compiles wrapped too, and its declarations would stay local
to the wrapping. So the REPL now passes over a candidate that isn't
awaited if it uses `await` as a name. It tells by compiling the
script in a class static block, where `await` is neither a name nor
an operator except inside the functions the block holds. A passed
over candidate still runs if no later one compiles, as for an input
that declares a variable named `await`.

repl-environment-test covers both kinds of input.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In an input that awaits at top level, the REPL makes a top-level
`const`, `let` or `var` declaration global by blanking its keyword,
which it did whenever the first name had an initializer. In
`let a = await f(), b;` that left `b` to be read as an expression,
which threw "b is not defined" after `a` had been assigned. The
scanner now reports top-level commas too, and a declaration is
rewritten only if each name after one is followed by `=`. A
declaration is taken to end at the next top-level `;`; one that a
line break ends may be judged with the code after it, and is then
kept, which loses nothing but its globalness.

docs/repl.md listed every single-name declaration as made global. It
now says which are: those at the input's top level that give each
name a value. Destructuring declarations, names without a value,
declarations in a block, and function and class declarations stay
local to the input.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/repl.md said that Enter continues an input while a string or a
comment is open. Only a bracket, a template literal and a block
comment continue it, and a string only after a line that ends in a
backslash; a string left open at the end of another line is a syntax
error, as in JavaScript.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A loaded config's server fails to close when its run failed, or
when shutting it down does. ReplEnvironment::drain() closed the
servers one after another and stopped at the first that failed:
the rest stayed open, the session's request wasn't drained, and
dropping the session then destroyed open servers, which
~ReplConfigServer asserts against. drain() now closes every server
and drains the request, and then rejects with the first failure.

When a config loaded with errors, ReplConfigServer::start() closed
the server before throwing the errors, and a failure to close was
thrown in their place. It's now listed after them.

Neither failure can be provoked from repl-environment-test, which
has no way to make a server fail to close.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
As Node's REPL does, `_` is the last input's result and `_error` the
last exception, the value an awaited input's promise settled to or
rejected with included. Assigning one keeps the assigned value from
then on, with a warning the first time, so that an input such as
`_ = await import('lodash')` isn't undone by the next.

The two are accessors that a startup script defines on the global
scope; the function it returns, which ReplEnvironment calls with
each outcome, is out of user code's reach.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`InProcessServer::start()` runs the server as `workerd serve` does,
and `run()` ends once its listeners have. A config with no sockets,
cron triggers or debug port has none, so the run ended as soon as it
had started and dropped the server, and a REPL that loaded such a
config got "Network connection lost." from its services. The host
reaches an embedded server through its own channels, so a run given
`started` now also holds a listener that ends only with the drain.

`workerd serve` still exits at once when it has nothing to serve.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r-image

Publish a workerd container image with each release

This publishes `docker.io/cloudflare/workerd`, a minimal workerd image,
with every npm release. An app's image is then `FROM` it plus a `COPY`
of its Wrangler project, which is all a Kubernetes deployment needs.

* The image is distroless `cc-debian13:nonroot`, pinned by digest, with
  only `/usr/local/bin/workerd` and an empty `/data`. It runs as
  65532:65532, has no shell or package manager, and works on a
  read-only root filesystem.
* It serves the project in `/app` on port 8080, so Kubernetes `args:`
  only add flags. `docker/README.md` shows how to override the command
  for a capnp config or `workerd test`. The project must set
  `"no_bundle": true`, since the image has no esbuild.
* For that, `workerd serve` (and every command that takes a config)
  now also accepts a project directory, and reads its `wrangler.json`,
  or else its `wrangler.jsonc`, as `workerd deploy` already does. A
  directory was never a valid Cap'n Proto config, so no command line
  changes meaning.
* It is one manifest for `linux/amd64` and `linux/arm64`, built from
  the same release binaries that go to npm.
* `release.yml` publishes it from main, after the platform packages and
  `workerd` are on npm. The tags are `<version>`, plus `latest` or
  `beta` as on npm.
* The image is pushed by digest only, with SBOM and provenance
  attestations, and signed keyless with cosign. The README has the
  `cosign verify` command.
* An amd64 and an arm64 runner then pull that digest and run
  `docker/test.sh` on it. It checks the image's user, `--version`,
  serving a `wrangler.json` and a `wrangler.jsonc` project from a
  read-only root, and a Durable Object's state kept on a volume with
  `--data-dir=/data` appended, as the README shows. Only then do the
  tags move to the digest; one that fails stays untagged.
* The actions in the jobs that hold Docker Hub credentials are pinned
  by commit.
* Every PR builds the amd64 image from `test-linux`'s binary and runs
  `docker/test.sh`. The weekly dependency update refreshes the base
  image digest.

The image jobs run only on main, and only once the repository
variable `DOCKER_HUB_USERNAME` is set, with the secret
`DOCKER_HUB_ACCESS_TOKEN`.

| Kind           | Added | Removed | Where                                       |
| -------------- | ----: | ------: | ------------------------------------------- |
| Implementation |   202 |       9 | Dockerfile, publish jobs, deps-updater, CLI |
| Tests          |   256 |       1 | test.sh, PR job, per-arch test, CLI tests   |
| Documentation  |   160 |       2 | docker/README.md, README.md, AGENTS.md      |

Comments in code files are counted with that file.
`workerd repl --experimental config.capnp [const-name]` loads the
config into the global `s` before the first prompt, as `serve` takes
its config. The console runs the load as an input of its own, shown
at the prompt as if typed, so its result, or the error from a config
that fails to load, prints like any other input's, and the REPL
carries on either way.

tests/repl runs the `workerd` binary with input piped in, to cover
what only the command line and the console do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With `--experimental`, which the REPL requires, its JavaScript gets
the `service_binding_extra_handlers` flag unless the user's flags
name it already, so a `Fetcher` from `s.service()` runs the Worker's
`scheduled()` and `queue()` handlers. The host channel behind it
already delivers both events. Without the flag, `scheduled` is just
an RPC call to the handler, which returns nothing.

The flag is experimental because `queue()`'s `serializedBody` hands
bytes to the V8 deserializer. The REPL's user runs whatever code they
like anyway.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Autogates and V8 flags are set once per process, so the REPL ignores
a loaded config's `autogates` and `v8Flags`, and until now its process
ran with none. `--autogate=<name>` enables a gate by the kebab-case
name `WORKERD_AUTOGATES` derives, and `--v8-flag=<flag>` passes a flag
to V8; both repeat. The settings apply to the REPL's JavaScript and to
every config it loads.

A config's `autogates` silently skip a name that is no gate. On the
command line that is more likely a typo, so the REPL refuses it and
lists the gates. V8 already refuses a flag it does not know.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`await s.reload()` loads the config again and starts a new server on
it; once that is serving, it takes the old one's place behind the
handle, and the old one is revoked and closed. A reload that fails
leaves the old server running and rejects with the problems.
`workerd.loadConfig(path, { watch: true })` reloads whenever a file
the last load read changes, and reports each outcome on stderr; since
every attempt watches the files it read, a config that failed to load
reloads once it is fixed. Reloads run one at a time, and closing waits
for one under way.

The config loader becomes an interface with a `newWatch()`, so that
the C++ tests can fire watches of their own. The CLI's is the
`Watcher` of `serve --watch`, which gains a constructor that does not
watch the executable and a wait that prints nothing.

The handle shows `watching`, so loading a config now prints it over
several lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`s.durableObject(service, className, key)` is a stub for one of the
config's Durable Objects, as a binding to the class reaches it: `key`
is a name, `{ name }`, or `{ id }` for a durable class's id as
`idFromString()` takes it. `workerd.evict(stub, { webSockets })`
evicts the object behind a stub as `cloudflare:unsafe`'s evict()
does, so trying out what a constructor or hibernation does needs no
test harness.

Host channels now forward evictForTest() to the channel they wrap,
guarded by the revocation like every other call, and the debug port's
namespace lookup is shared with the REPL's.

Running an alarm before it is due is left out: the actor waits for
the alarm's scheduled time before running it, and its storage cancels
a run for any other time, so only the object itself can bring an
alarm forward.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While an input runs, the terminal is out of raw mode, so Ctrl+C is
SIGINT, which ended the REPL. On Unix the console now installs a
SIGINT handler for as long as an input runs. The handler writes a
byte to a socket; a thread reading it asks the session to abandon the
input, and the session drops the evaluation, which stops awaiting the
input's promise. The REPL says so and prompts for the next input.

JavaScript that runs without yielding keeps the session from
abandoning anything, so a second SIGINT restores the default
disposition and raises the signal, ending the process as before.
Outside an input the disposition is the default one, so a SIGINT
while reading piped input still ends the REPL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The console's raw mode now also turns on bracketed paste mode, which
it turns off with raw mode, and the editor reads pasted text as text
rather than as keys: a pasted tab is inserted rather than completing,
other control characters and escape sequences are dropped, and each
line break, whether CR, LF or CRLF, ends a line as Enter does. A paste
can span lines, so the editor keeps the state between them, and a CR
at the end of a read waits for a possible LF.

A paste is what made it plain that a line ended from queued input was
never drawn, prompt included: the editor draws once the queue is
empty, and Enter returned first. Enter and Ctrl+C now draw the line
before ending it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The REPL lets go of a server once closing has begun, pruning it from
its list when the next config loads, and nothing that waited for the
close held the server. If its JavaScript handles were collected
meanwhile, the server was destroyed while it closed, which its
destructor asserts against. What waits for the close now holds a
reference to the server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`await workerd.environment({ compatibilityDate, compatibilityFlags })`
starts another environment like the REPL's, in an isolate of its own,
since the API a Worker sees is fixed when its isolate is made. Its
handle's `eval(input)` evaluates the input there as the console would
evaluate a line typed at it, compiled by the console's own rules
(input.rs, called back as `repl_candidates`), and resolves to what the
REPL would print for it. Comparing behavior across dates or flags then
takes one environment per setting:

  old = await workerd.environment({ compatibilityDate: '2022-01-01' })
  await old.eval('typeof navigator')  // "'undefined'"

An environment is started and evaluates on the event loop, outside
the REPL's isolate lock. The REPL's environment holds the ones it
starts and closes them as it drains. Closing one cancels the
evaluations in progress before taking it apart, and what waits for
the close holds it until the close is done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
drain() closed the servers and environments it had when each step
began, awaiting each close in a loop over the list. A loadConfig() or
environment() that wasn't awaited could finish meanwhile: it replaced
the list the loop was iterating over, or added its server after the
list was cleared, and nothing closed that server, so its destructor's
assertion fired. Canceling such a load is no better, since a server
dropped while it runs takes its factory down without draining it.

The environment now counts the loads and environment starts under
way. Once drain() begins, it refuses new ones, waits for those under
way to finish, and then takes the lists and closes what they hold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The help said a declaration of a single name becomes a global. A
declaration of several names becomes globals too when it gives each
of them a value, and one that leaves a name without a value or sits
in a block stays local, as docs/repl.md says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A KJ_ASSERT that fails while the destructor runs during unwinding
throws a second exception and terminates the process, so clang-tidy's
custom-dtor-throw-during-unwind check rejects it. KJ_DTOR_ASSERT only
logs the failure then.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The REPL's SIGINT handler ran on whichever thread the kernel picked,
usually the main thread, which runs JavaScript. ThreadSanitizer defers
a handler until the interrupted thread next calls into the C library,
which JavaScript spinning in compiled code never does, so under TSan a
second Ctrl+C never ended an input running without yielding, and
repl-test timed out.

The REPL now blocks SIGINT before it starts any thread, so every
thread blocks it, and a thread of its own takes each one with
sigwait(). The relay socket and the async-signal-safe handler are
gone. Ending the process still sets the default disposition before
raising SIGINT, since KJ installs a crash handler for SIGINT in debug
builds. A SIGINT while no input runs now reaches that thread too, and
ends the process as before. A process that starts with SIGINT ignored
leaves it alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows, repl-environment-test crashed with "Access violation - no
RTTI data!" when workerd.environment() was given an unknown
compatibility flag. The ReplEnvironment constructor threw, and
newEnvironment()'s KJ_CATCH threw the JSG error in its place. While
that unwound, the coroutine destroyed its `kj::Own<ReplEnvironment>
environment`, which should have been null, since the assignment
never completed. It held a garbage pointer, and KJ's dynamic_cast to
dispose of it faulted.

`environment` was declared after the coroutine's last suspend point.
Tracing that took its address, which moves it into the coroutine
frame, made the crash go away, and taking the tracing out brought it
back; Linux never crashed. That points to clang-cl's code for the
Windows unwind funclets, not to the REPL.

Construct the environment, and turn the constructor's error into the
JSG error, in startEnvironment(), which is not a coroutine.
newEnvironment() then initializes `environment` from its result, so
no `kj::Own` is declared before a KJ_TRY. If startEnvironment()
throws, `environment` never exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A REPL started with SIGINT ignored, as a shell without job control
starts a background job (`bash -c 'workerd repl ... &'`), was meant
to go on ignoring it. take_interrupts() saw the ignored disposition
and left SIGINT alone, but the process context set up afterwards
installs KJ's crash handler for SIGINT in debug builds, in place of
SIG_IGN. The next SIGINT then printed "*** Received signal #2" and
ended the REPL.

take_interrupts() now records that SIGINT was ignored, and
keep_ignoring(), called once the process context is set up, ignores
it again. A test starts the REPL with SIGINT ignored, signals it, and
checks that it goes on evaluating input.

docs/repl.md says what a SIGINT does while no input runs, and in a
REPL that started with it ignored. The comment in lib.rs that lists
the modules allowing `unsafe` now includes repl/interrupt.rs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What a reloaded server handed out fails with "Get a new Fetcher from
its service() or socket()", which a Durable Object stub from
durableObject() fails with too. The error now says "Get a new one from
its service(), socket() or durableObject()", and the reload test
checks the whole sentence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
s.service('nope') and s.durableObject('nope', ...) failed with
`Worker "nope" not found`: they resolve through the debug port's
lookups, whose message predates the REPL and server-test checks. The
service need not be a Worker, and s.socket('nope') says "The config
has no socket named", so the in-process server now checks that the
service exists first and says "The config has no service named
"nope"." The debug port's message is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The REPL exited with status 0 whatever its inputs did, so a script
piping input into it could not tell that an input threw without
reading the output.

It now exits with status 1 if an input failed: it threw, the promise
it awaited rejected, or it is a command the REPL doesn't know. It
still prints each failure and runs the inputs after it, and an input
Ctrl+C stops awaiting hasn't failed. A config named on the command
line that does not load is such an input, so repl-test expects status
1 for one now.

Whether an input threw is a fact the evaluation reports, not one read
off the text: ReplEnvironment::evaluate() resolves to an Evaluation,
its text and whether it threw, and the bridge carries that as a
ReplEvaluation. A result that renders as "Uncaught {}", an instance
of a class named Uncaught, is a result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An input still unfinished when the REPL's input ended, such as one
with a bracket left open, was dropped without a word, and so were the
lines piped in after it, which it swallowed. A misjudged `/`, which
the console takes to divide after `)`, can open a bracket that way.
And nothing but Ctrl+C on a terminal abandoned an unfinished input:
commands were taken only at the start of one, and a SIGINT while no
input runs ends the REPL.

When the input ends, the REPL now says which construct the unfinished
input leaves open and on which of its lines that starts:

  Error: The input ended inside the `(` opened on its line 1, so it
  did not run.

and counts the input as failed. The scanner keeps the line each
bracket, substitution, literal and comment opens on, and reports the
innermost one open (Scanner::unclosed()). This covers the interactive
console too, where Ctrl+D on an empty line ends the input.

`.break` on a line of its own abandons an unfinished input, as in
Node's REPL. It is the one command taken inside an unfinished input,
even inside a template literal; at the start of an input it does
nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A script piping input into the REPL had no way to stop awaiting an
input that never settles except SIGINT, and a SIGINT that arrives
just after the input settles, while no input runs, ends the REPL.

With --input-timeout=<seconds> (such as 30 or 0.5), the session stops
awaiting an input once it has taken that long, as Ctrl+C does, says

  Error: Timed out after 100ms: no longer awaiting the input, whose
  promise may still settle.

and counts the input as failed. The timer is tokio's, on the session's
loop, so like Ctrl+C it can't stop JavaScript that runs without
awaiting.

docs/repl.md's options table is laid out as prettier lays it out for
the new row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Roshan931 and others added 28 commits November 27, 2026 15:47
…#8364)

Signed-off-by: Robert Markovski <5818108+Roshan931@users.noreply.github.com>
…starttls-close

Close the connection when an upgraded socket closes, on TS streams
…hang-detection

Let hang detection see TS-streams deadlocks with in-isolate JS
--nobuild_runfile_links was set only for the ci config. Make it the
default, so local and remote-execution builds also skip writing a
runfiles symlink tree for every target they build. `bazel test` and
`bazel run` still create the tree for each target they run locally,
and remotely executed tests don't need one at all.

Writing the trees is slow on macOS and on slow disks, and with
--remote_download_minimal the symlinks point at outputs that were
never downloaded, so the trees cost time and are of no use.

A binary started straight from bazel-bin after `bazel build` now finds
no runfiles tree. The workerd binary and plain C++ tests don't read
runfiles, so this affects only targets that do, such as wd-tests. The
lldb-wpt-test recipe, which debugs a wd-test from its runfiles tree,
now builds that target with --build_runfile_links.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Send getHttpService() for pipelining only in RpcWorkerInterface
…file-links

Build runfiles trees only for targets bazel runs
…yodide-test

Drop the Pyodide test that resolved a real host name
…-25-wpt-suite-content-disp

Run the fetch/content-disposition WPT
gen-compile-cache is built for the target platform, since only the
target's V8 accepts the caches it writes. In a cross-compiling build
the execution platform Bazel picks for it may not be able to run it,
and the only way to change that was to run it locally.

The compile cache rule now takes an optional toolchain of a new type,
compile_cache_executor_toolchain_type. None is registered by default,
so nothing changes unless a build registers one, whose
exec_compatible_with then picks the execution platform the tool runs
on, such as one with the target's CPU.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oudflare#8642)

zlib.inflateRawSync(data, { maxOutputLength: n }) threw "Memory limit
exceeded" for output of n bytes whenever n was above 40960, unless n
happened to land on the output buffer's growth steps: 50000-, 100000-
and 200000-byte entries all failed, while 81920 worked. adm-zip passes
an entry's exact size this way, so it fails on most entries over 40 KiB.
Any maxOutputLength that leaves less than 40 KiB of room after a full
buffer has the same problem, for every sync and callback zlib, brotli
and zstd function.
Node.js 24.21 added the static MIMEType.parse(string): it parses like
the constructor but returns null instead of throwing when the input is
not a valid MIME type. The argument goes through ToString even when it
is missing, so MIMEType.parse() with no argument returns null, while a
Symbol still throws. The parsed record is adopted directly rather than
parsed a second time.

Compatibility: this adds a static method to node:util's MIMEType at
every compatibility date, without a flag, which we accept. The only
observable change is that code feature-detecting MIMEType.parse now
takes the native branch.

Fixes cloudflare#7663
…lare#8892)

"a peer's request a DO's late handoff releases is answered moved"
asserts that node 0 logs answering moved to a peer's request that
waited for its handoff. That only happens if the request reaches node
0 before its in-flight deadline, 2 s into the 4 s stop. A request that
arrives later finds the object already handed off and is answered
moved without waiting, so nothing is logged. This failed once on a
macOS CI runner where node 0 stalled during the drain.

A missing log line is now reported with a diagnostic that says how far
into the stop the test sent the request, rather than failing the test.
The outcome is still asserted: the peer's request gets a 200 from node
1 with the expected count, the held request a 500, and node 0 exits
cleanly. Those assertions alone catch node 0 relaying the waiting
request instead of answering moved, since the relay is cut off at the
connections deadline and the peer gets a 500.
…he-target-arch

Let builds choose where gen-compile-cache runs
Let callers reject redirects without contacting the redirect target.
With fetch_redirect_error enabled, fetch rejects with TypeError on any
redirect status, even if the response has no Location header. Without
the flag, Request continues to reject the mode during construction.
Preserve the original validation error when the mode is disabled and
test that requests received over RPC honor the receiving Worker’s flag.
When the flag is off, tell callers how to opt in rather than saying
that error mode will never be implemented. Keep rejecting the mode
with a TypeError until the flag is enabled.
…ect-error

Support redirect: "error" behind a Fetch compatibility flag
The test armed a 40 ms idle timeout once the response headers arrived
and failed if it fired before the body completed. On a busy macOS CI
runner, reading the rest of the 3-byte response took longer than
that: the timer fired, destroyed the request, and the test failed
with an uncaught "aborted" in 87 ms.

Use the 250 ms timeout that timeoutIsIdleNotDeadline already uses,
and wait 300 ms after completion, longer than the timeout, so a timer
the completion failed to disarm would still fire within the test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-timeout-disarm-flake

Give timeoutDisarmedByCompletion room on a loaded machine
@github-actions github-actions Bot added sync Upstream workerd sync sync-conflict Upstream sync needs manual conflict resolution labels Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sync Upstream workerd sync sync-conflict Upstream sync needs manual conflict resolution

Projects

None yet

Development

Successfully merging this pull request may close these issues.