Repository navigation
build: tolerate slow third-party downloads - #26671
Closed
Ariznawlll wants to merge 2 commits into
Closed
Ariznawlll wants to merge 2 commits into
Ariznawlll wants to merge 2 commits into
Conversation
This branch was previously 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.
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #26664
What this PR does / why we need it:
Cold Docker builds in the Guangzhou DinD runner repeatedly failed while downloading the pinned 21.9 MiB ONNX Runtime archive. The download made steady progress, but the downloader's 120-second per-attempt hard limit aborted it before completion. A successful control run on the same route needed about 14 minutes and 35 seconds.
This change:
Existing HTTPS-only enforcement, connection timeout, bounded retries, download-size limit, SHA-256 verification, atomic publication, cache handling, legacy curl fallback, and concurrent-download behavior remain covered by the downloader test suite.
Validation:
sh -n thirdparties/download thirdparties/download_testgit diff --check c58cd292d3e6e039a8882654d3b20ad345171e87..HEADmake -C thirdparties test-download