Repository navigation
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #8140 +/- ##
==========================================
- Coverage 70.43% 70.38% -0.06%
==========================================
Files 908 911 +3
Lines 234829 235470 +641
Branches 34011 34089 +78
==========================================
+ Hits 165398 165728 +330
- Misses 49238 49518 +280
- Partials 20193 20224 +31 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
75de367 to
0d93337
Compare
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
This pull request was not reviewed automatically because its author does not have write access to this repository. A maintainer with write access can start a review by commenting |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f50782170b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
f507821 to
6edd9a6
Compare
| #ifdef V8_COMPRESS_POINTERS | ||
| isolate->external_pointer_table().SetUpFromReadOnlyArtifacts( | ||
| isolate->heap()->read_only_external_pointer_space(), artifacts); | ||
| diff --git a/src/heap/read-only-spaces.cc b/src/heap/read-only-spaces.cc |
There was a problem hiding this comment.
Context for the V8 review: the isolated guard commit d31a683 fixes a release-tool build failure from -Wunused-function. Both callers are inside DEBUG guards, so the helper's definition now has the same guard. This does not change the checksum calculation or snapshot format. Leaving this thread open for V8-owner review.
c43ab4d to
a2923dc
Compare
|
Overall this is looking good but let's get v8 team review of the patches. Will do a final review after they weigh in. |
3bbc94b to
f6eec07
Compare
a5a727e to
ad12698
Compare
fb911ec to
17c5473
Compare
Expose connect(address, { protocol: "udp" }) behind the experimental
outbound_udp_sockets compatibility flag. Use binary value streams
with one chunk per datagram and preserve packet boundaries. Keep TCP
behavior unchanged when protocol is omitted.
Support standalone and RPC transports, visible typed-array bytes,
output gates, bounded writes, teardown and transport error propagation.
A rejected sink write follows ordinary WritableStream error semantics.
Include API and type documentation and UDP integration coverage for
both stream implementations, using the dated UDP ingress flag.
Preserve existing CI workloads and assertions while synchronizing
asynchronous fixture cleanup and reserving CPU for runtime threads.
Serialize Miniflare SDK tests to avoid its port-probe race. Keep the
WPT empty streaming-upload fixture from reusing a connection whose
request body the sidecar does not consume. Retain other keep-alive
coverage. Suppress host core-dump services in the REPL signal fixture
without changing its deadline or terminal-restoration assertions.
Avoid retaining a duplicate disk cache when fork CI falls back from
bazelflare to local execution without saving that cache. This keeps
the full coverage workload within the runner disk budget.
17c5473 to
ed69796
Compare
User stories affected or enabled by this change
Workers and Durable Objects can send arbitrary outbound UDP datagrams to a fixed destination, including applications that never receive a reply:
This is experimental and does not enable outbound UDP in Cloudflare deployments. Embedders supply their own routing and rollout policy.
APIs/interfaces created, changed, or removed
connect(address, { protocol: 'udp' }), gated by the experimentaloutbound_udp_socketscompatibility flag. Omittingprotocolkeeps TCP behavior. On older compatibility dates, this opt-in also enables the JavaScript stream constructors needed by the value streams.ArrayBufferView(TypedArrayorDataView), and reads returnUint8Array. One chunk is one datagram, including an empty view. Slices send only their visible raw bytes, without element or byte-order conversion. With this flag, ingress UDP uses the same shapes.protocol,opened,closedandclose(). UDP rejects TCP-only options and TLS upgrades.DatagramChanneland anopenUdpcustom event/RPC path.Architecture choices and reasoning
Reuse the ingress socket shape and existing stream abstractions so callers do not need a new Datagram wrapper. Preserve packet boundaries instead of adapting UDP to a byte stream. Copy payloads while the isolate is accessible, honor Durable Object output gates on every send, and propagate transport errors across RPC. Socket teardown waits for an already-pending writable close. Releasing the reverse RPC capability without EOF fails pending receives with a session-disconnected error; orderly EOF still completes normally.
The standalone implementation uses an ephemeral native UDP socket and applies the configured network address restrictions before sending. This does not introduce multicast, broadcast, per-packet destinations, hibernation or delivery acknowledgments.
Validation covers standalone and RPC UDP, both stream implementations, ingress peer addresses, payload boundaries, output gates, teardown and transport failures. The rebased fixtures use the dated UDP ingress flag and the consolidated ingress test targets. Native Linux validation passed all 21 selected regression targets five runs each, including downstream sandbox integration. Production clang-tidy and formatting checks pass. Hosted CI passes, including the full platform matrix, type snapshots and coverage.
CI fixture fixes preserve workloads and behavioral assertions through completion barriers, CPU reservations and deterministic cleanup. The REPL signal fixture suppresses host core-dump services while retaining its ten-second deadline and terminal-restoration assertions. Current main supplies the Bazel version and repository-cache fix. Fork jobs that fall back to local execution disable the disk cache when that workflow never persists it, avoiding a duplicate copy of coverage outputs.
See
docs/outbound-udp.mdfor semantics, errors and reproduction commands. Current results are in the workerd checks.