diff --git a/.bazelversion b/.bazelversion index 1445f05..51049b0 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -9.3.2 +9.3.3 diff --git a/preset.bazelrc b/preset.bazelrc index 551496c..d16ab21 100644 --- a/preset.bazelrc +++ b/preset.bazelrc @@ -6,19 +6,19 @@ # beginning of each Bazel invocation. This is very useful on CI to be able to inspect which flags # are being applied on each run based on the order of overrides. common:ci --announce_rc -# Docs: https://registry.build/flag/bazel@9.3.2?filter=announce_rc +# Docs: https://registry.build/flag/bazel@9.3.3?filter=announce_rc # Avoid creating a runfiles tree for binaries or tests until it is needed. # See https://github.com/bazelbuild/bazel/issues/6627 # This may break local workflows that `build` a binary target, then run the resulting program outside of `bazel run`. # In those cases, the script will need to call `bazel build --build_runfile_links //my/binary:target` and then execute the resulting program. common --nobuild_runfile_links -# Docs: https://registry.build/flag/bazel@9.3.2?filter=build_runfile_links +# Docs: https://registry.build/flag/bazel@9.3.3?filter=build_runfile_links # Always run tests even if they have cached results. # This ensures tests are executed fresh each time, useful for debugging and ensuring test reliability. common:debug --nocache_test_results -# Docs: https://registry.build/flag/bazel@9.3.2?filter=cache_test_results +# Docs: https://registry.build/flag/bazel@9.3.3?filter=cache_test_results # Don’t encourage a rules author to update their deps if not needed. # These bazel_dep calls should indicate the minimum version constraint of the ruleset. @@ -27,33 +27,33 @@ common:debug --nocache_test_results # Context: # https://bazelbuild.slack.com/archives/C014RARENH0/p1691158021917459?thread_ts=1691156601.420349&cid=C014RARENH0 common:ruleset --check_direct_dependencies="off" -# Docs: https://registry.build/flag/bazel@9.3.2?filter=check_direct_dependencies +# Docs: https://registry.build/flag/bazel@9.3.3?filter=check_direct_dependencies # On CI, use colors to highlight output on the screen. Set to `no` if your CI does not display colors. common:ci --color="yes" -# Docs: https://registry.build/flag/bazel@9.3.2?filter=color +# Docs: https://registry.build/flag/bazel@9.3.3?filter=color # On CI, use cursor controls in screen output. common:ci --curses="yes" -# Docs: https://registry.build/flag/bazel@9.3.2?filter=curses +# Docs: https://registry.build/flag/bazel@9.3.3?filter=curses # Bazel picks up host-OS-specific config lines from bazelrc files. For example, if the host OS is # Linux and you run bazel build, Bazel picks up lines starting with build:linux. Supported OS # identifiers are `linux`, `macos`, `windows`, `freebsd`, and `openbsd`. Enabling this flag is # equivalent to using `--config=linux` on Linux, `--config=windows` on Windows, etc. common --enable_platform_specific_config -# Docs: https://registry.build/flag/bazel@9.3.2?filter=enable_platform_specific_config +# Docs: https://registry.build/flag/bazel@9.3.3?filter=enable_platform_specific_config # Speed up all builds by not checking if external repository files have been modified. # For reference: https://github.com/bazelbuild/bazel/blob/1af61b21df99edc2fc66939cdf14449c2661f873/src/main/java/com/google/devtools/build/lib/bazel/repository/RepositoryOptions.java#L244 common --noexperimental_check_external_repository_files -# Docs: https://registry.build/flag/bazel@9.3.2?filter=experimental_check_external_repository_files +# Docs: https://registry.build/flag/bazel@9.3.3?filter=experimental_check_external_repository_files # Always download coverage files for tests from the remote cache. By default, coverage files are not # downloaded on test result cache hits when --remote_download_minimal is enabled, making it impossible # to generate a full coverage report. common --experimental_fetch_all_coverage_outputs -# Docs: https://registry.build/flag/bazel@9.3.2?filter=experimental_fetch_all_coverage_outputs +# Docs: https://registry.build/flag/bazel@9.3.3?filter=experimental_fetch_all_coverage_outputs # Set this flag to enable re-tries of failed tests on CI. # When any test target fails, try one or more times. This applies regardless of whether the "flaky" @@ -68,18 +68,18 @@ common --experimental_fetch_all_coverage_outputs # # Note that when passing after the first attempt, Bazel will give a special "FLAKY" status rather than "PASSED". test:ci --flaky_test_attempts=2 -# Docs: https://registry.build/flag/bazel@9.3.2?filter=flaky_test_attempts +# Docs: https://registry.build/flag/bazel@9.3.3?filter=flaky_test_attempts # Fixes builds hanging on CI that get the TCP connection closed without sending RST packets. common:ci --grpc_keepalive_time="30s" -# Docs: https://registry.build/flag/bazel@9.3.2?filter=grpc_keepalive_time +# Docs: https://registry.build/flag/bazel@9.3.3?filter=grpc_keepalive_time # Output a heap dump if an OOM is thrown during a Bazel invocation # (including OOMs due to `--experimental_oom_more_eagerly_threshold`). # The dump will be written to `/.heapdump.hprof`. # You should configure CI to upload this artifact for later inspection. common --heap_dump_on_oom -# Docs: https://registry.build/flag/bazel@9.3.2?filter=heap_dump_on_oom +# Docs: https://registry.build/flag/bazel@9.3.3?filter=heap_dump_on_oom # By default, Bazel automatically creates __init__.py files for py_binary and py_test targets. # From https://github.com/bazelbuild/bazel/issues/10076: @@ -87,27 +87,27 @@ common --heap_dump_on_oom # > Python programmers are already used to creating __init__.py files in their source trees, # > so doing it behind their backs introduces confusion and changes the semantics of imports common --incompatible_default_to_explicit_init_py -# Docs: https://registry.build/flag/bazel@9.3.2?filter=incompatible_default_to_explicit_init_py +# Docs: https://registry.build/flag/bazel@9.3.3?filter=incompatible_default_to_explicit_init_py # Fail if Starlark files are not UTF-8 encoded. # Introduced in Bazel 8.1, see https://github.com/bazelbuild/bazel/pull/24944 # Recommended to enable since Bazel 8.5, see https://github.com/bazel-contrib/bazelrc-preset.bzl/issues/95 common --incompatible_enforce_starlark_utf8="error" -# Docs: https://registry.build/flag/bazel@9.3.2?filter=incompatible_enforce_starlark_utf8 +# Docs: https://registry.build/flag/bazel@9.3.3?filter=incompatible_enforce_starlark_utf8 # Accept multiple --modify_execution_info flags, rather than the last flag overwriting earlier ones. common --incompatible_modify_execution_info_additive -# Docs: https://registry.build/flag/bazel@9.3.2?filter=incompatible_modify_execution_info_additive +# Docs: https://registry.build/flag/bazel@9.3.3?filter=incompatible_modify_execution_info_additive # Fail the build if the MODULE.bazel.lock file is out of date. # Using this mode in ci prevents the lockfile from being out of date. common:ci --lockfile_mode="error" -# Docs: https://registry.build/flag/bazel@9.3.2?filter=lockfile_mode +# Docs: https://registry.build/flag/bazel@9.3.3?filter=lockfile_mode # Add the CloudFlare mirror of BCR-referenced downloads. # Improves reliability of Bazel when CDNs are flaky, for example issues with ftp.gnu.org in 2025. common --module_mirrors="https://bcr.cloudflaremirrors.com" -# Docs: https://registry.build/flag/bazel@9.3.2?filter=module_mirrors +# Docs: https://registry.build/flag/bazel@9.3.3?filter=module_mirrors # On CI, don't download remote outputs to the local machine. # Most CI pipelines don't need to access the files and they can remain at rest on the remote cache. @@ -120,45 +120,45 @@ common --module_mirrors="https://bcr.cloudflaremirrors.com" # - Perform a second bazel command with specific targets and override this flag with the `toplevel` value. # - To copy executable targets, you can use `bazel run --run_under=cp //some:binary_target `. common:ci --remote_download_outputs="minimal" -# Docs: https://registry.build/flag/bazel@9.3.2?filter=remote_download_outputs +# Docs: https://registry.build/flag/bazel@9.3.3?filter=remote_download_outputs # On CI, fall back to standalone local execution strategy if remote execution fails. # Otherwise, when a grpc remote cache connection fails, it would fail the build. common:ci --remote_local_fallback -# Docs: https://registry.build/flag/bazel@9.3.2?filter=remote_local_fallback +# Docs: https://registry.build/flag/bazel@9.3.3?filter=remote_local_fallback # On CI, extend the maximum amount of time to wait for remote execution and cache calls. common:ci --remote_timeout=3600 -# Docs: https://registry.build/flag/bazel@9.3.2?filter=remote_timeout +# Docs: https://registry.build/flag/bazel@9.3.3?filter=remote_timeout # Do not upload locally executed action results to the remote cache. # This should be the default for local builds so local builds cannot poison the remote cache. # # Note that this flag is flipped to True under --config=ci, see below. common --noremote_upload_local_results -# Docs: https://registry.build/flag/bazel@9.3.2?filter=remote_upload_local_results +# Docs: https://registry.build/flag/bazel@9.3.3?filter=remote_upload_local_results # On CI, upload locally executed action results to the remote cache. common:ci --remote_upload_local_results -# Docs: https://registry.build/flag/bazel@9.3.2?filter=remote_upload_local_results +# Docs: https://registry.build/flag/bazel@9.3.3?filter=remote_upload_local_results # Repository rules, such as rules_jvm_external: put Bazel's JDK on the path. # Avoids non-hermeticity from dependency on a JAVA_HOME pointing at a system JDK # see https://github.com/bazelbuild/rules_jvm_external/issues/445 common --repo_env="JAVA_HOME=../bazel_tools/jdk" -# Docs: https://registry.build/flag/bazel@9.3.2?filter=repo_env +# Docs: https://registry.build/flag/bazel@9.3.3?filter=repo_env # Indicate that third party rulesets should not collect telemetry. # It's up to the ruleset to honor this setting. # see https://donottrack.sh common --repo_env="DO_NOT_TRACK=1" -# Docs: https://registry.build/flag/bazel@9.3.2?filter=repo_env +# Docs: https://registry.build/flag/bazel@9.3.3?filter=repo_env # Reuse sandbox directories between invocations. # Directories used by sandboxed non-worker execution may be reused to avoid unnecessary setup costs. # Saves time on sandbox creation and deletion when many of the same kind of action is spawned during the build. common --reuse_sandbox_directories -# Docs: https://registry.build/flag/bazel@9.3.2?filter=reuse_sandbox_directories +# Docs: https://registry.build/flag/bazel@9.3.3?filter=reuse_sandbox_directories # Don't allow network access for build actions in the sandbox by default. # Avoids accidental non-hermeticity in actions/tests which depend on remote services. @@ -166,52 +166,52 @@ common --reuse_sandbox_directories # Note that the sandbox cannot print a message to the console if it denies network access, # so failures under this flag appear as application errors in the networking layer. common --nosandbox_default_allow_network -# Docs: https://registry.build/flag/bazel@9.3.2?filter=sandbox_default_allow_network +# Docs: https://registry.build/flag/bazel@9.3.3?filter=sandbox_default_allow_network # Only show progress every 60 seconds on CI. # We want to find a compromise between printing often enough to show that the build isn't stuck, # but not so often that we produce a long log file that requires a lot of scrolling. common:ci --show_progress_rate_limit=60 -# Docs: https://registry.build/flag/bazel@9.3.2?filter=show_progress_rate_limit +# Docs: https://registry.build/flag/bazel@9.3.3?filter=show_progress_rate_limit # The printed files are convenient strings for copy+pasting to the shell, to execute them. # This option requires an integer argument, which is the threshold number of targets above which result information is not printed. # Show the output files created by builds that requested more than one target. # This helps users locate the build outputs in more cases. common --show_result=20 -# Docs: https://registry.build/flag/bazel@9.3.2?filter=show_result +# Docs: https://registry.build/flag/bazel@9.3.3?filter=show_result # On CI, add a timestamp to each message generated by Bazel specifying the time at which the message was displayed. # This makes it easier to reason about what were the slowest steps on CI. common:ci --show_timestamps -# Docs: https://registry.build/flag/bazel@9.3.2?filter=show_timestamps +# Docs: https://registry.build/flag/bazel@9.3.3?filter=show_timestamps # The terminal width in columns. Configure this to override the default value based on what your CI system renders. common:ci --terminal_columns=143 -# Docs: https://registry.build/flag/bazel@9.3.2?filter=terminal_columns +# Docs: https://registry.build/flag/bazel@9.3.3?filter=terminal_columns # Output test errors to stderr so users don't have to `cat` or open test failure log files when test fail. # This makes the log noisier in exchange for reducing the time-to-feedback on test failures for users. common --test_output="errors" -# Docs: https://registry.build/flag/bazel@9.3.2?filter=test_output +# Docs: https://registry.build/flag/bazel@9.3.3?filter=test_output # Stream stdout/stderr output from each test in real-time. # This provides immediate feedback during test execution, useful for debugging test failures. common:debug --test_output="streamed" -# Docs: https://registry.build/flag/bazel@9.3.2?filter=test_output +# Docs: https://registry.build/flag/bazel@9.3.3?filter=test_output # Run one test at a time in exclusive mode. # This prevents test interference and provides clearer output when debugging test issues. common:debug --test_strategy="exclusive" -# Docs: https://registry.build/flag/bazel@9.3.2?filter=test_strategy +# Docs: https://registry.build/flag/bazel@9.3.3?filter=test_strategy # The default test_summary ("short") prints a result for every test target that was executed. # In a large repo this amounts to hundreds of lines of additional log output when testing a broad wildcard pattern like //... # This value means to print information only about unsuccessful tests that were run. test:ci --test_summary="terse" -# Docs: https://registry.build/flag/bazel@9.3.2?filter=test_summary +# Docs: https://registry.build/flag/bazel@9.3.3?filter=test_summary # Prevent long running tests from timing out. # Set to a high value to allow tests to complete even if they take longer than expected. common:debug --test_timeout=9999 -# Docs: https://registry.build/flag/bazel@9.3.2?filter=test_timeout +# Docs: https://registry.build/flag/bazel@9.3.3?filter=test_timeout