Repository navigation
fix(cli)!: undici 8 and Node 22.19, so downloads survive slow readers and dropped proxy tunnels - #9088
Open
miguel-heygen wants to merge 3 commits into
Open
fix(cli)!: undici 8 and Node 22.19, so downloads survive slow readers and dropped proxy tunnels#9088miguel-heygen wants to merge 3 commits into
miguel-heygen wants to merge 3 commits into
Conversation
…tead of retrying nonstop Re-lands the change that the Node floor hold took out, unchanged: undici 8.13.0 in the CLI and the engine, and Node.js 22.19 as the minimum.
…dy the server closes
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Contributor
Edit accuracy: accurate 275 (base branch 273), smooth 75 of thoseThe gate passes. Newly passing (2)
Not banked yet, reported and not gated (bank a full-grid run's baseline.json) (2)
Quarantined, measured but not gated (0) |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Breaking change
The minimum Node.js goes from 22 to 22.19. On an older Node,
hyperframesandhyperframes-localize-fontsstop before loading anything else, printHyperFrames requires Node.js >= 22.19 (current: …). Switch Node versions and retry.and exit 1, withnode_version_unsupportedunder--json. npm only warns onengines.This re-lands #8311 unchanged, which #8391 held back so that a 0.9.x patch would not raise the Node floor. It is not for the merge queue until the release it ships in is chosen.
What changes for people
assert(!this.paused)in undici's HTTP/1.1 client). undici fixed this in 8.6.0 (fix(h1): complete paused parser on socket end instead of crashing nodejs/undici#5474). Its backport to 7.x ([Backport v7.x] fix(h1): complete paused parser on socket end instead of crashing nodejs/undici#5553) has been open since July, and 7.30.2, the last 7.x, does not have it.How
git revertof revert(cli): hold the proxy fix and its Node floor for v0.10.0 #8391, on top of fix(engine): asset downloads stay on HTTP/1.1 under undici 8, as they do on undici 7 #9084. Every file fix(cli)!: a proxy that drops the connection fails a request once instead of retrying nonstop #8311 changed is back to its state in fix(cli)!: a proxy that drops the connection fails a request once instead of retrying nonstop #8311, with three conflicts resolved against main:README.mdwas restructured since. The Node requirement line and the Node badge now say 22.19.urlDownloader.restrictedNetwork.test.tskeeps main's dropped-tunnel case, which is stricter than fix(cli)!: a proxy that drops the connection fails a request once instead of retrying nonstop #8311's (exactly 2 tunnels, not at most 4), plus the HTTP/1.1 case from fix(engine): asset downloads stay on HTTP/1.1 under undici 8, as they do on undici 7 #9084.scripts/check-no-main-deletions.mjsdrops the entry that let revert(cli): hold the proxy fix and its Node floor for v0.10.0 #8391 delete fix(cli)!: a proxy that drops the connection fails a request once instead of retrying nonstop #8311's three files, as that entry asked.skills-manifest.jsonis rehashed for the CLI skill's Node line.packages/engine/src/utils/urlDownloader.slowReader.test.ts: a server sends a 1 MB body and closes the connection. The body is read through the undici the downloader imports, writing each chunk to disk before reading the next.Tests
urlDownloader.slowReader.test.ts"the undici downloads use saves, chunk by chunk, a body that ends when the server hangs up" (main's undici 7.30.1: the process asserts!this.pausedand the file fails).bun install --frozen-lockfileaccepts the lockfile unchanged and resolves undici 8.13.0 for the engine. On the engine's undici 7.30.1 (main), the slow-reader test fails with that assertion; here it passes 3 runs in a row.urlDownloader.restrictedNetwork.test.ts23 of 23 on undici 8.13.0, including the dropped-tunnel case (exactly 2 tunnels) and the HTTP/1.1 case.runtimeVersion.test.ts6 of 6,registry/envProxy.process.test.ts1 of 1,registry/remote.test.tsandregistry/transport.test.ts51 of 51.tsc --noEmitis clean for the engine and the CLI.check-core-skillspasses after the rehash.Order
This branch sits on #9084, so until #9084 merges its diff here includes that one commit.