Repository navigation
Enable UDP ingress on compatibility date 2026-12-16 - #8827
Conversation
4b3dd5d to
ba9dad0
Compare
There was a problem hiding this comment.
Superseded by the review of
cc81c59d.
This review, of ba9dad0f
✅ Approved — No issues found: the compatibility flag is consistently applied to all three gated surfaces and its enable/disable behavior is tested.
Not opened by the correctness review: 2 changed files it was meant to read
types/generated-snapshot/index.d.tstypes/generated-snapshot/index.ts
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🚀 Release: ✅ LGTM
The new flag uses the next ordinal (@210) and has both enable and disable flag names and an enable date.
🔒 Security: ✅ LGTM
The new flag is off by default before its enable date, and server-side UDP dispatch is still refused unless the flag is set.
📖 AGENTS.md: ✅ LGTM
The AGENTS.md update matches the new flag.
📋 Code Quality: ✅ LGTM
The gate replacement is consistent across global-scope, sockets and connectUdp, and the tests cover the flag on both sides of its enable date.
⚡ Performance: ✅ LGTM
This only changes a flag check. No hot-path code is added.
📝 Documentation: ✅ LGTM
The flag comment in compatibility-date.capnp accurately describes what the flag controls.
Reviewed commit: ba9dad0f
There was a problem hiding this comment.
Superseded by the review of
220faef7.
This review, of cc81c59d
💬 Approved with comments — The gate swap is consistent across all three UDP surfaces. One WARNING: since cc81c59, a sockets-test.c++ assertion contradicts the experimental fallback in isUdpIngressEnabled(), so that unit test will fail.
Findings: 1 warning (1 is an inline comment on the diff)
Not opened by the correctness review: 2 changed files it was meant to read
types/generated-snapshot/index.d.tstypes/generated-snapshot/index.ts
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
🔧 Fix with your agent
Paste the following into your coding agent to investigate and fix these issues.
Fix the following code review issues found in pull request #8827.
Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order
## WARNING (1)
### [Code Quality] `sockets-test.c++:148` expects `Socket.protocol` to be absent with only the experimental flag set, but `isUdpIngressEnabled()` now returns true for that flag, so this test fails.
- **File:** src/workerd/api/sockets-test.c++:148
📋 Code Quality: ⚠️ 1 warning
Gate is consistent across all three surfaces. One test assertion is stale after the experimental fallback was added.
Recommendation: 📝 Minor Comments
- [WARNING]
sockets-test.c++:148expectsSocket.protocolto be absent with only the experimental flag set, butisUdpIngressEnabled()now returns true for that flag, so this test fails. (src/workerd/api/sockets-test.c++:148)
View full review
All three UDP surfaces go through the shared isUdpIngressEnabled() helper (features.h:67, getUdpIngress() || getWorkerdExperimental()):
connectUdp(global-scope.c++:357)- the
Datagramglobal (global-scope.h:1136) Socket.protocol(sockets.h:374)
The global-scope-test.js assertion accepts either flag, which matches the helper.
The last assertion in the Socket protocol requires udp_ingress unit test in sockets-test.c++ no longer matches: it expects protocol to be absent when only workerd_experimental is set. Since cc81c59 ("Don't remove the experimental flag check yet"), that combination exposes protocol, so the test fails.
✅ All other checks passed
🚀 Release: ✅ LGTM
The new flag uses ordinal @210 and has enable and disable flag names and an enable date.
🔒 Security: ✅ LGTM
The UDP ingress surfaces are only available when udp_ingress or the experimental flag is set. udp_ingress is off by default before its enable date, 2026-11-26.
📖 AGENTS.md: ✅ LGTM
The src/workerd/server/AGENTS.md update matches the new flag.
⚡ Performance: ✅ LGTM
This only changes a flag check, which runs once per call or per type registration. No hot-path cost is added.
📝 Documentation: ✅ LGTM
The flag comment in compatibility-date.capnp accurately describes what the flag controls.
Reviewed commit: cc81c59d
cc81c59 to
220faef
Compare
There was a problem hiding this comment.
Superseded by the review of
3d04eba7.
This review, of 220faef7
✅ Approved — The flag gating is consistent across all three UDP surfaces, and the earlier unit-test mismatch in sockets-test.c++ is fixed. No open findings remain.
Not opened by the correctness review: 1 changed file it was meant to read
types/generated-snapshot/index.d.ts
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🚀 Release: ✅ LGTM
The new flag uses a fresh ordinal, has both enable and disable flag names, and sets an enable date.
🔒 Security: ✅ LGTM
udp_ingress stays off by default until its enable date, 2026-11-26. Before that date, the experimental flag is still the only way to turn on the UDP surfaces, as it is today. connectUdp still enforces the check at runtime.
📖 AGENTS.md: ✅ LGTM
The update to src/workerd/server/AGENTS.md matches the new flag.
📋 Code Quality: ✅ LGTM
The rewritten udp_ingress exposes Socket.protocol test checks that protocol is absent with no UDP flag and present once udp_ingress is set. This matches isUdpIngressEnabled() in features.h.
The datagram-drop and idle-timeout cases now run in the consolidated udp-connect test against both the C++ and TypeScript streams configs. Nothing else refers to the removed test targets.
⚡ Performance: ✅ LGTM
The only change is which flag gets checked. That check runs once per call or per type registration, so it adds no hot-path cost.
📝 Documentation: ✅ LGTM
The comment on the flag in compatibility-date.capnp correctly describes what it controls.
Reviewed commit: 220faef7
26df8fb to
3d04eba
Compare
There was a problem hiding this comment.
Superseded by the review of
2bde806e.
This review, of 3d04eba7
✅ Approved — No findings. The flag gating is consistent across all UDP surfaces, the test covers the new enable date (2026-12-09), and the generated types match the C++ changes. The title and description still say 2026-11-26 and should be updated.
Not opened by the correctness review: 1 changed file it was meant to read
types/generated-snapshot/index.d.ts
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🚀 Release: ✅ LGTM
The flag uses a fresh ordinal (@210), has both enable and disable names, and sets its enable date to 2026-12-09.
🔒 Security: ✅ LGTM
isUdpIngressEnabled() gates all three UDP surfaces. Before the enable date, a Worker gets them only by setting udp_ingress or the experimental flag. The runtime check in connectUdp still fails closed.
📖 AGENTS.md: ✅ LGTM
The update to src/workerd/server/AGENTS.md matches the new flag.
📋 Code Quality: ✅ LGTM
The new compatibility-date test checks the enable-date boundary (2026-12-08 / 2026-12-09) and both udp_ingress and no_udp_ingress. The consolidated UDP integration tests run under both streams configs.
⚡ Performance: ✅ LGTM
The flag check runs once per connectUdp call or once per type registration, so it adds no hot-path cost.
📝 Documentation: ✅ LGTM
The comment on the flag correctly describes the surfaces it controls.
Reviewed commit: 3d04eba7
3d04eba to
2bde806
Compare
There was a problem hiding this comment.
Superseded by the review of
25c1263c.
This review, of 2bde806e
✅ Approved — No findings. The flag gating is consistent across all UDP surfaces, the test covers the new enable date (2026-12-09), and the generated types match the C++ changes. The title and description still say 2026-11-26 and should be updated.
Not opened by the correctness review: 1 changed file it was meant to read
types/generated-snapshot/index.d.ts
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🚀 Release: ✅ LGTM
The flag uses a fresh ordinal (@210), has both enable and disable names, and sets its enable date to 2026-12-09.
🔒 Security: ✅ LGTM
isUdpIngressEnabled() gates all three UDP surfaces. Before the enable date, a Worker gets them only by setting udp_ingress or the experimental flag. The runtime check in connectUdp still fails closed.
📖 AGENTS.md: ✅ LGTM
The update to src/workerd/server/AGENTS.md matches the new flag.
📋 Code Quality: ✅ LGTM
The new compatibility-date test checks the enable-date boundary (2026-12-08 / 2026-12-09) and both udp_ingress and no_udp_ingress. The consolidated UDP integration tests run under both streams configs.
⚡ Performance: ✅ LGTM
The flag check runs once per connectUdp call or once per type registration, so it adds no hot-path cost.
📝 Documentation: ✅ LGTM
The comment on the flag correctly describes the surfaces it controls.
Reviewed commit: 2bde806e — same changes as 3d04eba7, so this is that commit's review (no new review was run; line numbers are as of 3d04eba7)
2bde806 to
25c1263
Compare
There was a problem hiding this comment.
Superseded by the review of
93bdfbc6.
This review, of 25c1263c
✅ Approved — No findings. The flag gating is consistent across all UDP surfaces, the test covers the new enable date (2026-12-09), and the generated types match the C++ changes. The title and description still say 2026-11-26 and should be updated.
Not opened by the correctness review: 1 changed file it was meant to read
types/generated-snapshot/index.d.ts
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🚀 Release: ✅ LGTM
The flag uses a fresh ordinal (@210), has both enable and disable names, and sets its enable date to 2026-12-09.
🔒 Security: ✅ LGTM
isUdpIngressEnabled() gates all three UDP surfaces. Before the enable date, a Worker gets them only by setting udp_ingress or the experimental flag. The runtime check in connectUdp still fails closed.
📖 AGENTS.md: ✅ LGTM
The update to src/workerd/server/AGENTS.md matches the new flag.
📋 Code Quality: ✅ LGTM
The new compatibility-date test checks the enable-date boundary (2026-12-08 / 2026-12-09) and both udp_ingress and no_udp_ingress. The consolidated UDP integration tests run under both streams configs.
⚡ Performance: ✅ LGTM
The flag check runs once per connectUdp call or once per type registration, so it adds no hot-path cost.
📝 Documentation: ✅ LGTM
The comment on the flag correctly describes the surfaces it controls.
Reviewed commit: 25c1263c — same changes as 3d04eba7, so this is that commit's review (no new review was run; line numbers are as of 3d04eba7)
There was a problem hiding this comment.
Superseded by the review of
2f6f96d7.
This review, of 93bdfbc6
✅ Approved — No findings. The udp_ingress flag (enable date 2026-12-16) gates all three UDP surfaces the same way, the compatibility-date test checks the new boundary, and the generated types match the C++ changes.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🚀 Release: ✅ LGTM
The flag uses a fresh ordinal (@210), has both an enable and a disable name, and its enable date of 2026-12-16 follows the later buffer requested in the discussion. The pull request title now matches that date.
🔒 Security: ✅ LGTM
isUdpIngressEnabled() gates the global Datagram constructor, Socket.prototype.protocol and UDP connect() dispatch. When the flag is off, the runtime check in connectUdp still refuses the connection.
The experimental flag still turns UDP ingress on as an alternative. That gives Workers no access they did not already have before this change.
📖 AGENTS.md: ✅ LGTM
The change to src/workerd/server/AGENTS.md matches the new flag.
📋 Code Quality: ✅ LGTM
Since the last review, the enable date moved to 2026-12-16 in compatibility-date.capnp, and compatibility-date-test.c++ now checks the 2026-12-15 / 2026-12-16 boundary to match.
- The test also covers
udp_ingressandno_udp_ingress. - The merged UDP integration tests run the same cases under both the
configandtsStreamsconfigs. - The new
disabledworker uses an old compatibility date without the flag, so it covers the path where UDP ingress is off.
⚡ Performance: ✅ LGTM
The flag check runs once per connectUdp call or once per type registration, so it adds no hot-path cost.
📝 Documentation: ✅ LGTM
The comment on the flag correctly lists the surfaces it controls.
Reviewed commit: 93bdfbc6
Gate UDP connect() dispatch, the Datagram constructor, and Socket.prototype.protocol on udp_ingress while retaining the experimental fallback. Run the consolidated UDP integration cases with both streams implementations.
93bdfbc to
2f6f96d
Compare
There was a problem hiding this comment.
✅ Approved — No findings. The flag gates all three UDP surfaces the same way, the tests cover the date boundary and the flag-off path, and the merged UDP integration tests run under both streams implementations.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🚀 Release: ✅ LGTM
The flag uses a fresh ordinal (@210) and has both an enable and a disable name. Its enable date of 2026-12-16 follows the buffer requested in the discussion.
🔒 Security: ✅ LGTM
With the flag off, connectUdp still refuses the connection. Turning UDP ingress on through the experimental flag gives Workers no access they did not already have.
📖 AGENTS.md: ✅ LGTM
The change to src/workerd/server/AGENTS.md matches the merged test layout and the new flag.
📋 Code Quality: ✅ LGTM
udp-connect/BUILD.bazelnow defines two test targets, one for C++ streams and one for TypeScript streams. TheTS_STREAMSenvironment variable selects the matching driver config.- The datagram-drop cases now live in the merged
udp-connectdriver. compatibility-date-test.c++checks the 2026-12-15 / 2026-12-16 boundary and covers bothudp_ingressandno_udp_ingress.- The
disabledworker covers the path where UDP ingress is off.
⚡ Performance: ✅ LGTM
The flag check runs once per connectUdp call or once per type registration, so it adds no hot-path cost.
📝 Documentation: ✅ LGTM
The comment on the flag correctly lists the surfaces it controls.
Reviewed commit: 2f6f96d7
Replace the experimental gate with the
udp_ingresscompatibility flag for UDPconnect()dispatch, the globalDatagramconstructor, andSocket.prototype.protocol.Consolidate the UDP integration tests so the C++ and TypeScript streams implementations run the same cases, including datagram drops and flow replacement after an idle timeout.