Use remote downloader during fetch

This commit is contained in:
Mustafa Gezen 2022-10-30 06:55:36 +01:00
parent 9f0644e272
commit d6d5f1c191
Signed by untrusted user who does not match committer: mustafa
GPG Key ID: DCDF010D946438C1
2 changed files with 6 additions and 3 deletions

View File

@ -16,8 +16,9 @@ build:toplevel --config=inmemory
build:toplevel --remote_download_outputs=toplevel
build:remote --config=toplevel
build:remote --remote_cache=grpc://buildcache.default.svc.cluster.local:9092
build:remote --experimental_remote_downloader=grpc://buildcache.default.svc.cluster.local:9092
build:remote --remote_cache=grpc://buildcache.default.svc.cluster.local:9092 --experimental_remote_downloader=grpc://buildcache.default.svc.cluster.local:9092
query:remote --remote_cache=grpc://buildcache.default.svc.cluster.local:9092 --experimental_remote_downloader=grpc://buildcache.default.svc.cluster.local:9092
fetch:remote --remote_cache=grpc://buildcache.default.svc.cluster.local:9092 --experimental_remote_downloader=grpc://buildcache.default.svc.cluster.local:9092
build:remote --noremote_upload_local_results
build:remote --remote_timeout=3600
build:remote --bes_results_url=https://bz.build.resf.org/invocation/

View File

@ -4,13 +4,15 @@ export SILO_KEY=rocky86-peridot-prow-1
export REMOTE_DEF=cache-silo-key=$SILO_KEY
CI=${CI:-}
QUERY_FLAGS=""
FLAGS="--show_progress_rate_limit=5 --color=yes --ui_actions_shown=30 --terminal_columns=140 --show_timestamps --verbose_failures --announce_rc --experimental_repository_cache_hardlinks --disk_cache= --sandbox_tmpfs_path=/tmp --experimental_guard_against_concurrent_changes"
if [[ -n ${CI} ]]; then
FLAGS="--config=ci $FLAGS"
QUERY_FLAGS="--config=ci"
fi
BAZEL_B="bazel $SOPTIONS build $FLAGS --remote_default_exec_properties=$REMOTE_DEF"
BAZEL_R="bazel $SOPTIONS run $FLAGS --remote_default_exec_properties=$REMOTE_DEF"
BAZEL_T="bazel $SOPTIONS test $FLAGS --remote_default_exec_properties=$REMOTE_DEF --test_arg=-test.v --flaky_test_attempts=3 --build_tests_only --test_output=errors"
BAZEL_QR="bazel $SOPTIONS query --keep_going --noshow_progress"
BAZEL_QR="bazel $SOPTIONS query $QUERY_FLAGS --keep_going --noshow_progress"