forked from DataDog/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bazelrc
More file actions
45 lines (37 loc) · 3.15 KB
/
.bazelrc
File metadata and controls
45 lines (37 loc) · 3.15 KB
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
# Do not edit this file without a review from @DataDog/agent-build
# Startup options ------------------------------------------------------------------------------------------------------
startup --max_idle_secs=28800 # Keep the server alive for at most 8 hours of inactivity
# Common options -------------------------------------------------------------------------------------------------------
common --@rules_python//python/config_settings:bootstrap_impl=script # https://github.com/bazel-contrib/rules_python/blob/main/BZLMOD_SUPPORT.md
common --enable_platform_specific_config # Supported OS identifiers are linux, macos, windows, freebsd, and openbsd
common --experimental_ui_max_stdouterr_bytes=1073741819 # why?
common --http_timeout_scaling=3.0 # At least one attempt reaches 30s (3,6,12,24,30,30,30,30) instead of only 10s (1,2,4,8,10,10,10,10)
common --incompatible_strict_action_env # Do not leak local environment variables into the build context
common --verbose_failures
# Linux config ---------------------------------------------------------------------------------------------------------
common:linux --strategy=sandboxed
# macOS config ---------------------------------------------------------------------------------------------------------
common:macos --features=-macos_default_link_flags # https://github.com/bazelbuild/bazel/issues/23312
common:macos --macos_minimum_os=11.0 # Keep in sync with https://docs.datadoghq.com/agent/supported_platforms/?tab=macos
common:macos --strategy=sandboxed
# Windows config -------------------------------------------------------------------------------------------------------
common:windows --strategy=standalone # Valid values are: [dynamic_worker, standalone, dynamic, remote, worker, local]
# For whatever reason if convenience symlinks are present, the build fails on Windows.
common:windows --noexperimental_convenience_symlinks
# shell_executable doesn't affect action keys. It can be both an advantage and a disadvantage.
# For instance, if we need to have some special behavior in bash we can add it, however, in some cases
# it may lead to cache poisoning.
common:windows --shell_executable=C:/tools/msys64/usr/bin/bash.exe
# Remote cache config --------------------------------------------------------------------------------------------------
# datadog-agent virtually isolates caching instance from its parent (which is remote-caching).
# If entry isn't found in datadog-agent, it will be searched in remote-caching.
common:cache --remote_cache=grpc://bazel-buildbarn-frontend.ddbuild.io:443
common:cache --remote_instance_name=remote-caching/datadog-agent
common:cache --remote_local_fallback # best-effort on transient connection errors (no such host)
common:cache --remote_retries=1
common:cache --remote_timeout=60
# CI config ------------------------------------------------------------------------------------------------------------
common:ci --config=cache
common:ci --test_output=errors # Print test setup errors to the job output instead of only capturing them in test.log
# Local development options --------------------------------------------------------------------------------------------
try-import %workspace%/user.bazelrc