SERVER-125021: Attempt Backing URL in 90% of Bazel Invocations Before Hitting Remote Asset API (#52328)
GitOrigin-RevId: 564e715155028dc5c6229f1fa5b36bfb32288082
This commit is contained in:
parent
b883600ee1
commit
85652e3b3f
@ -1 +1 @@
|
|||||||
BAZELISK_BASE_URL=https://mdb-build-public.s3.amazonaws.com/bazel_binary_waterfall_builds/06d753863dde251110daef739d2c3e419782b881
|
BAZELISK_BASE_URL=https://mdb-build-public.s3.amazonaws.com/bazel_binary_waterfall_builds/90b8a7b661043fc7241aecddd17d39e75c8efd23
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
7.5.0-mongo_06d753863d
|
7.5.0-mongo_90b8a7b661
|
||||||
4
MODULE.bazel.lock
generated
4
MODULE.bazel.lock
generated
@ -537,7 +537,7 @@
|
|||||||
},
|
},
|
||||||
"@@aspect_rules_js~//npm:extensions.bzl%pnpm": {
|
"@@aspect_rules_js~//npm:extensions.bzl%pnpm": {
|
||||||
"general": {
|
"general": {
|
||||||
"bzlTransitiveDigest": "FM0lxNWZPFw5ktWotCCf2WsD2AHJDANeh2GFH57DP3U=",
|
"bzlTransitiveDigest": "ZiETCAm3yu6gU5QC0R5OrRO0ZS2lrnh7hm9Bd17t1As=",
|
||||||
"usagesDigest": "nreWOSoW3keGlKdHpT5drUTOjHwIzGpp1haLECAZ4dM=",
|
"usagesDigest": "nreWOSoW3keGlKdHpT5drUTOjHwIzGpp1haLECAZ4dM=",
|
||||||
"recordedFileInputs": {},
|
"recordedFileInputs": {},
|
||||||
"recordedDirentsInputs": {},
|
"recordedDirentsInputs": {},
|
||||||
@ -2002,7 +2002,7 @@
|
|||||||
},
|
},
|
||||||
"@@rules_rust~//crate_universe/private:internal_extensions.bzl%cu_nr": {
|
"@@rules_rust~//crate_universe/private:internal_extensions.bzl%cu_nr": {
|
||||||
"general": {
|
"general": {
|
||||||
"bzlTransitiveDigest": "HTx857xqjW5LFsaeJYKJhecWUKP9B57NYPrM1DCnnas=",
|
"bzlTransitiveDigest": "L9rxpG84287VYpuRM8hACDZ7jT04aXbaoJAQWk6Gf+Q=",
|
||||||
"usagesDigest": "jdsFFevZIrOcSfuuZxyovS/wXbhPLIa/eBqyNOiTP98=",
|
"usagesDigest": "jdsFFevZIrOcSfuuZxyovS/wXbhPLIa/eBqyNOiTP98=",
|
||||||
"recordedFileInputs": {},
|
"recordedFileInputs": {},
|
||||||
"recordedDirentsInputs": {},
|
"recordedDirentsInputs": {},
|
||||||
|
|||||||
10
tools/bazel
10
tools/bazel
@ -9,6 +9,16 @@
|
|||||||
REPO_ROOT=$(dirname $(dirname $(realpath "$0")))
|
REPO_ROOT=$(dirname $(dirname $(realpath "$0")))
|
||||||
bazel_real="$BAZEL_REAL"
|
bazel_real="$BAZEL_REAL"
|
||||||
|
|
||||||
|
# 90% of the time, prefer downloading from the direct URL before trying the
|
||||||
|
# Remote Asset API (experimental_remote_downloader). This lets us benefit
|
||||||
|
# off of the added redundancy of the remote downloader while reducing traffic
|
||||||
|
# that's transmitted through the (expensive) ELB.
|
||||||
|
if [ -n "${CI:-}" ] && [ -z "${REVERSE_REMOTE_API_ATTEMPT_ORDER+x}" ]; then
|
||||||
|
if [ $(( RANDOM % 10 )) -ne 0 ]; then
|
||||||
|
export REVERSE_REMOTE_API_ATTEMPT_ORDER=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# If disk space becomes an issue, this block can be used to clean up configs
|
# If disk space becomes an issue, this block can be used to clean up configs
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user