This is an automated email from the ASF dual-hosted git repository.

chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory.git


The following commit(s) were added to refs/heads/main by this push:
     new 056b94ca3 feat(ci): add bazel downloads retry (#3492)
056b94ca3 is described below

commit 056b94ca325e0d6c333a486524e64dc58ef38d24
Author: Peiyang He <[email protected]>
AuthorDate: Wed Mar 18 05:27:07 2026 -0400

    feat(ci): add bazel downloads retry (#3492)
    
    ## Why?
    
    Bazel downloads should retry in case of network issues.
    
    ## What does this PR do?
    
    Actually, Bazel 8.2.1 (the version Fory currently uses) **already**
    supports downloads retrying **by default**. Check
    `--experimental_repository_downloader_retries`,
    `--http_connector_attempts` and `--http_timeout_scaling` in the
    [doc](https://bazel.build/versions/8.2.0/reference/command-line-reference).
    
    I just manually doubled these values in .bazelrc
    
    ## Related issues
    
    Closes https://github.com/apache/fory/issues/3491.
    
    
    
    ## AI Contribution Checklist
    
    No.
    
    ## Does this PR introduce any user-facing change?
    
    No.
    
    ## Benchmark
    
    No.
---
 .bazelrc | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/.bazelrc b/.bazelrc
index 9bd3233fd..89a0c3084 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -18,6 +18,13 @@
 # Must be first. Enables build:windows, build:linux, build:macos, 
build:freebsd, build:openbsd
 build --enable_platform_specific_config
 
+# The maximum number of attempts to retry a download error. The default value 
is 5
+common --experimental_repository_downloader_retries=10
+# The maximum number of attempts for http downloads. The default value is 8.
+common --http_connector_attempts=16
+# Scale all timeouts related to http downloads by the given factor. The 
default value is 1.0.
+common --http_timeout_scaling=2.0
+
 ###############################################################################
 # On       Windows, provide: BAZEL_SH, and BAZEL_LLVM (if using clang-cl)
 # On all platforms, provide: PYTHON3_BIN_PATH=python
@@ -54,5 +61,4 @@ build:x86_64 --copt=-mbmi
 build:x86_64 --copt=-mbmi2
 
 # ARM64-specific optimizations (if any needed in the future)
-build:arm64 --copt=-march=armv8-a
-
+build:arm64 --copt=-march=armv8-a
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to