mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
[Fix] Random connection exceptions in MacOS_C_API_Packaging_CPU stage (#20322)
### Description
Add download_deps to reduce downloading from 3rd party websites.
### Motivation and Context
Fix frequent random exception like
```
CMake Error at abseil_cpp-subbuild/abseil_cpp-populate-prefix/src/abseil_cpp-populate-stamp/download-abseil_cpp-populate.cmake:162 (message):
Each download failed!
error: downloading 'https://github.com/abseil/abseil-cpp/archive/refs/tags/20240116.0.zip' failed
status_code: 35
status_string: "SSL connect error"
log:
--- LOG BEGIN ---
Trying 20.29.134.23:443...
Connected to github.com (20.29.134.23) port 443
ALPN: curl offers h2,http/1.1
(304) (OUT), TLS handshake, Client hello (1):
[315 bytes data]
CAfile: /etc/ssl/cert.pem
CApath: none
Recv failure: Operation timed out
LibreSSL/3.3.6: error:02FFF03C:system library:func(4095):Operation timed
out
Closing connection
```
https://dev.azure.com/aiinfra/Lotus/_build/results?buildId=443278&view=logs&j=006a7a04-d43b-5fe1-df02-ecafb79c4d6e&t=110edd38-9f3b-50cf-b328-8ed0f915e5c1
---------
Co-authored-by: Yi Zhang <your@email.com>
This commit is contained in:
parent
fe1c3a45c1
commit
caf692e626
1 changed files with 9 additions and 0 deletions
|
|
@ -64,6 +64,15 @@ jobs:
|
|||
parameters:
|
||||
xcodeVersion: 14.2
|
||||
|
||||
- template: download-deps.yml
|
||||
|
||||
- task: PythonScript@0
|
||||
displayName: 'Update deps.txt'
|
||||
inputs:
|
||||
scriptPath: $(Build.SourcesDirectory)/tools/ci_build/replace_urls_in_deps.py
|
||||
arguments: --new_dir $(Build.BinariesDirectory)/deps
|
||||
workingDirectory: $(Build.BinariesDirectory)
|
||||
|
||||
- template: mac-build-step-with-cache.yml
|
||||
parameters:
|
||||
WithCache: ${{ parameters.WithCache }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue