Repository navigation
fix(server): a slow server update download no longer fails at a 10-minute cap - #19649
juliusmarminge merged 4 commits into
Conversation
Codex Review SummaryThis 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. |
|
Warning Review limit reachedOnly developers with an assigned seat can use this organization's usage-based review budget, and seats here are assigned manually. Ask an admin to assign a seat, or change the review continuation mode in Billing. Next included review available in 21 minutes. View limit details
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
…wnload-stall-timeout
|
Taking over this one as maintainer for batch desktop-app-06. I’ll preserve your commits, merge current main, keep slow transfers alive with bounded stalls, and verify cancellation/lock recovery with focused tests and independent reviews. I’ll keep the scope to the timeout portion of the reported update issue. This batch will not merge it. |
…wnload-stall-timeout
…nute cap (pingdotgg#19649) Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit a3635a1)
…nute cap (pingdotgg#19649) Co-authored-by: Julius Marminge <julius0216@outlook.com> Fork adaptation: Upstream's new text in `apps/server/src/cloud/pinnedRuntime.ts` takes the fork's naming (`t3` to `styal`), as the fork's existing text there does. Upstream's new stall tests expect that wording and look for leftover versions in the fork's `runtime/styal-executable/versions` directory. (cherry picked from commit a3635a1) Upstream-PR: 19649 Fork-Feature: fork-distribution-identity
A pinned runtime download currently fails after ten minutes even when it is still receiving bytes. Limit the wait for response headers and each next body chunk to one minute instead. Slow transfers can finish; stalled transfers fail, cancel their response stream, clean staging files, and release the install lock.
This applies with or without a progress callback. Checksum verification remains required, and archive extraction keeps its existing ten-minute timeout.
Addresses the timeout portion of #18113. This does not add resumable downloads or the other progress features from that issue. Maintainer takeover of #19649, with credit to @Marve10s for the original per-chunk stall timeout and cleanup/recovery tests. Contributor commits are preserved; current main was merged without rebasing.
Verification on headless Linux:
pinnedRuntime.test.ts12 → 15 passing cases. Replaced the two original regressions with two tables: over 13 minutes continuous transfers with/without progress, response stalls, and body stalls with/without progress. The three stall cases verify one-minute cancellation, staging cleanup, no extraction, and successful retry after lock release. Existing checksum tests remain. All five new cases fail against main. Virtual Effect time checks slow transfers beyond the production ten-minute cap and the production one-minute stall window without real-time sleeps.FetchHttpClient, filesystem writes, SHA-256 checks, and real tar extraction. A load hook scales durations in memory (ten minutes → four seconds, one minute → 400 ms); source files are unchanged. Both main slow-transfer attempts fail at about four seconds. This head finishes at about six seconds with and without progress reporting. A body stall cancels the stream and a header stall times out; both release the lock for a successful subsequent install.This is a server download change; screenshots do not establish timeout or lock recovery behavior. Native Electron, Windows, macOS, iOS, and Android were not verified on this Linux VM. Human approval remains required.
Maintainer work: GPT-6-Astra tests and GPT-6.1-Sol implementation via Codex; independent Claude Opus 5.5 and GPT-6-Sol reviews through T3 Code.