Repository navigation
Installer downloads: report progress on whole 1 MiB chunks again - #15789
Merged
danielhanchen merged 1 commit intoOct 28, 2026
Merged
Conversation
#15763 read real HTTP responses with read1 so the stall window can fire, which also made progress update on every receive: the first line became 0.3% and later ones 5.2% instead of 5.0%, failing tests/python/test_windows_setup_download_progress.py. read1 now stops at the next 1 MiB boundary and progress is reported there, so the lines match the whole-chunk reads again while the stall check still runs per receive.
Member
Author
|
@codex review |
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. |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
danielhanchen
deleted the
installer-download-progress-on-1mib-boundaries
branch
October 28, 2026 14:45
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.
Summary
#15763 broke
tests/python/test_windows_setup_download_progress.pyon main (seen on the #15693 staging run; reproduces locally whereverpwshis installed):To let the new stall window fire on a trickling connection, #15763 reads real HTTP responses with
read1, which returns what one receive brings. It also moved the progress update onto every receive, so the first percent line now appears at 0.3% and the milestones print at whatever receive crosses them (5.2%) instead of at the whole 1 MiB reads the installers used before. The progress text the Windows setup scripts relay changed shape, which is what this test pins.Change
prebuilt_core.copy_response_body:read1path each read asks only for the bytes up to the next 1 MiB boundary, and progress is reported when the boundary is reached, so the updates land exactly where whole-chunk reads put them;readbodies (file:// mirrors, test doubles) read whole chunks and report each one, as before Installer downloads: retry a body cut short or trickling instead of hashing it #15763.Testing
test_windows_real_download_reports_progress_while_activecases, which now pass. The 21tests/studio/install/test_dependency_pass_skips.pyfailures and thetests/utils/aime_eval.pycollection error are on both sides on this host.test_progress_on_a_real_response_lands_on_whole_chunks: a real local server streams 4 MiB in 48 KiB writes and progress must be updated at exactly 1, 2, 3 and 4 MiB. It runs withoutpwsh, so Linux CI covers the shape too.