|
1 |
| -common --announce_rc |
2 |
| -common --color=yes |
3 |
| -# TODO: remove this when we move to Bazel 8. This is the default in Bazel 8. |
4 |
| -common --experimental_remote_cache_eviction_retries=5 |
5 |
| - |
6 |
| -# TODO: enable path mapping when we move to Bazel 8. There is a bug in 7. See: |
7 |
| -# https://github.com/bazelbuild/bazel/issues/23990 |
8 |
| -# In the meantime, if you need to test path mapping you should disable multiplex |
9 |
| -# workers with the following build option: |
10 |
| -#build --noworker_multiplex |
11 |
| -#common --experimental_output_paths=strip |
12 |
| -#common --modify_execution_info=CppCompile=+supports-path-mapping |
13 |
| - |
14 |
| -build --experimental_strict_action_env |
15 |
| -build --javacopt="-source 21 -target 21" |
| 1 | +# Java options |
16 | 2 | build --java_language_version="21"
|
17 | 3 | build --java_runtime_version="remotejdk_21"
|
| 4 | +build --javacopt="-source 21 -target 21" |
18 | 5 | build --tool_java_language_version="21"
|
19 | 6 | build --tool_java_runtime_version="remotejdk_21"
|
20 | 7 |
|
| 8 | +# Other options |
| 9 | +build --experimental_use_hermetic_linux_sandbox |
| 10 | +build --experimental_worker_sandbox_hardening |
| 11 | +build --experimental_worker_cancellation |
21 | 12 | build --strategy=worker,sandboxed,local
|
22 |
| - |
| 13 | +build --verbose_failures |
23 | 14 | build --worker_max_instances=4
|
24 | 15 | build --worker_sandboxing
|
| 16 | + |
25 | 17 | # Disable multiplex sandboxing because there is a bug that causes files which
|
26 | 18 | # should be in the sandbox to not be. Not sure if this is a Bazel bug or a rule
|
27 | 19 | # set bug. Something we need to deal with either way.
|
28 | 20 | # Once we enable path mapping, we should also be able to get rid of the outgoing
|
29 | 21 | # transition that we're currently relying on to prevent an explosion in the number
|
30 | 22 | # of builds.
|
31 | 23 | #build --experimental_worker_multiplex_sandboxing
|
32 |
| -build --experimental_worker_cancellation |
33 |
| -build --verbose_failures |
34 | 24 |
|
35 |
| -# This is disabled as it was causing some issues with some javac targets when used |
36 |
| -# with path mapping. If that is resolved, then we can turn it back on. |
37 |
| -#build --experimental_worker_sandbox_hardening |
38 |
| -build --experimental_use_hermetic_linux_sandbox |
| 25 | +# TODO: enable path mapping when we move to Bazel 8. There is a bug in 7. See: |
| 26 | +# https://github.com/bazelbuild/bazel/issues/23990 |
| 27 | +# In the meantime, if you need to test path mapping you should disable multiplex |
| 28 | +# workers with the following build option: |
| 29 | +#build --noworker_multiplex |
| 30 | +#common --experimental_output_paths=strip |
| 31 | +#common --modify_execution_info=CppCompile=+supports-path-mapping |
39 | 32 |
|
40 |
| -test --test_output=all |
41 | 33 |
|
| 34 | +common --announce_rc |
| 35 | +common --color=yes |
42 | 36 | common:rules --disk_cache=.bazel_cache
|
43 | 37 | common:tests --disk_cache=../.bazel_cache
|
44 | 38 | common:tests --@rules_scala_annex//rules/scala:scala-toolchain=test_zinc_2_13
|
| 39 | + |
| 40 | +# These are backwards incompatible options; we should check to see if their values have been flipped |
| 41 | +# when upgrading to new major Bazel version. |
| 42 | +common --incompatible_auto_exec_groups |
| 43 | +common --incompatible_autoload_externally=sh_binary # sh_binary is used by rules_jvm_external |
| 44 | +common --incompatible_config_setting_private_default_visibility |
| 45 | +common --incompatible_disable_native_repo_rules |
| 46 | +common --incompatible_disable_starlark_host_transitions |
| 47 | +common --incompatible_disable_target_provider_fields |
| 48 | +common --incompatible_strict_action_env |
| 49 | + |
| 50 | +# Unfortunately, this can't be enabled just yet because with it enabled, we get the following error: |
| 51 | +# ERROR: Traceback (most recent call last): |
| 52 | +# File "/home/jpeterson/.cache/bazel/*/external/rules_java+/java/common/rules/java_runtime.bzl", line 197, column 48, in <toplevel> |
| 53 | +# "hermetic_static_libs": attr.label_list( |
| 54 | +# Error in label_list: Illegal argument: element in 'providers' is of unexpected type. Either all elements should be providers, or all elements should be lists of providers, but got an element of type com.google.devtools.build.lib.starlarkbuildapi.core.ContextAndFlagGuardedValue$1. |
| 55 | +# |
| 56 | +#common --incompatible_stop_exporting_language_modules |
| 57 | + |
| 58 | +# This is disabled because rules_python (and possibly other rulesets we depend on) rely on |
| 59 | +# deprecated `Label` APIs: |
| 60 | +# https://github.com/bazelbuild/rules_python/blob/main/python/private/pythons_hub.bzl#L82 |
| 61 | +#common --noincompatible_enable_deprecated_label_apis |
| 62 | + |
| 63 | +test --test_output=all |
0 commit comments