xref: /aosp_15_r20/tools/asuite/atest/bazel/resources/bazelrc (revision c2e18aaa1096c836b086f94603d04f4eb9cf37f5)
1# Enable building targets in //external:__subpackages__.
2common --experimental_sibling_repository_layout
3common --experimental_disable_external_package
4
5# Show the full set of flags for observability and debuggability.
6common --announce_rc
7
8# Do not enable BzlMod as the migration to bzlmod has not been done yet
9common --noenable_bzlmod
10
11# Enforce consistent action environment variables to improve remote cache hit
12# rate.
13build --incompatible_strict_action_env
14
15# Use the JDK defined by local_java_runtime in //prebuilts/jdk/jdk<VERSION>
16build --java_runtime_version=jdk21
17
18# Depending on how many machines are in the remote execution instance, setting
19# this higher can make builds faster by allowing more jobs to run in parallel.
20# Setting it too high can result in jobs that timeout, however, while waiting
21# for a remote machine to execute them.
22build:remote --jobs=200
23
24# Enable the remote cache so that action results can be shared across machines,
25# developers, and workspaces.
26build:remote --remote_cache=grpcs://remotebuildexecution.googleapis.com
27
28# Enable remote execution so that actions are performed on the remote systems.
29build:remote --remote_executor=grpcs://remotebuildexecution.googleapis.com
30
31# Set a higher timeout value, just in case.
32build:remote --remote_timeout=3600
33
34# Enable authentication. This will pick up application default credentials by
35# default. You can use --auth_credentials=some_file.json to use a service
36# account credential instead.
37build:remote --google_default_credentials=true
38