-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
64 lines (50 loc) · 2.78 KB
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
build:debug --sandbox_debug=true --show_progress --worker_verbose --verbose_failures --test_output=streamed --subcommands
build:debug --//:setup_debug_flag
# To ensure a hermetic environment for Java
build --java_runtime_version=remotejdk_11
# From https://github.com/bazelbuild/bazel/issues/4867#issuecomment-830402410
build:quiet --ui_event_filters=-info --noshow_progress
query:quiet --ui_event_filters=-info --noshow_progress
# Disable the bazel symlinks
common --experimental_convenience_symlinks=ignore
common --workspace_status_command=tools/bazel/workspace_status.sh
# Print warning messages about test suite being configured as too small/big
test --test_verbose_timeout_warnings
# Output test logs to the console when there are errors
test --test_output=errors
# Secrets necessary also while testing
test --test_env=ONEPASSWORD_SERVICE_ACCOUNT_TOKEN_PROD
test --test_env=ONEPASSWORD_SERVICE_ACCOUNT_TOKEN_DEV
common --enable_bzlmod=true
# Enable builds without the bytes https://github.com/bazelbuild/bazel/issues/6862
build:buildbuddy --remote_download_minimal
# From https://www.buildbuddy.io/docs/cloud
# Use BuildBuddy
build:buildbuddy --bes_results_url=https://app.buildbuddy.io/invocation/
build:buildbuddy --bes_backend=grpcs://remote.buildbuddy.io
build:buildbuddy --remote_cache=grpcs://remote.buildbuddy.io
build:buildbuddy --remote_timeout=3600
# Suggestions from BuildBuddy
build:buildbuddy --experimental_remote_build_event_upload=minimal
build:buildbuddy --experimental_remote_cache_compression
build:buildbuddy --experimental_stream_log_file_uploads
common --nolegacy_important_outputs
# For BuildBuddy Remote Build Execution
build:buildbuddy_rbe --remote_executor=grpcs://remote.buildbuddy.io
build:buildbuddy_rbe --host_platform=@buildbuddy_toolchain//:platform
build:buildbuddy_rbe --platforms=@buildbuddy_toolchain//:platform
build:buildbuddy_rbe --extra_execution_platforms=@buildbuddy_toolchain//:platform
build:buildbuddy_rbe --crosstool_top=@buildbuddy_toolchain//:toolchain
build:buildbuddy_rbe --extra_toolchains=@buildbuddy_toolchain//:cc_toolchain
build:buildbuddy_rbe --javabase=@buildbuddy_toolchain//:javabase_jdk8
build:buildbuddy_rbe --host_javabase=@buildbuddy_toolchain//:javabase_jdk8
build:buildbuddy_rbe --java_toolchain=@buildbuddy_toolchain//:toolchain_jdk8
build:buildbuddy_rbe --host_java_toolchain=@buildbuddy_toolchain//:toolchain_jdk8
build:buildbuddy_rbe --define=EXECUTOR=remote
build:buildbuddy_rbe --jobs=50
# To make the remote build work from macbook M1 (https://buildbuddy.slack.com/archives/CUHBFVATU/p1651609573695259?thread_ts=1651609249.864879&cid=CUHBFVATU)
build:buildbuddy_rbe --host_cpu=k8
build:buildbuddy_rbe --cpu=k8
# The CI has some specific configuration which we only want to load in the CI
try-import %workspace%/ci.bazelrc
try-import %workspace%/local.bazelrc