bazelbuild/bazel
62.4
Adequate · 13 November 2026
600.9k
lines of production code
Java
primary language
5
measurements over time
What this system is
Features
Add BLAKE3 and GITSHA1 hash functions to Bazel's VFS
Bazel now supports BLAKE3 and GITSHA1 as digest hash functions in the virtual file system. This change introduces the necessary Java implementations (including JNI providers and hashers) and registers these algorithms, allowing users to utilize these specific hashing methods for file content identification and caching.
src/main/java/com/google/devtools/build/lib/vfs/bazel · high confidence
Add BUILD file and source for the Bazel JUnit4 Test Runner
This change introduces the build configuration (BUILD) and the main entry point (BazelTestRunner.java) for the Java JUnit test runner tool. It defines the 'Runner' binary and 'test\_runner' library, establishing the dependency on JUnit and internal runner modules. The BazelTestRunner class implements the logic to execute JUnit test suites, handling command-line arguments, signal trapping for graceful shutdown, and specific exit codes for success, test failure, and out-of-memory errors.
_src/java\tools/junitrunner/java/com/google/testing/junit/runner · high confidence
Add Bazel target to build macOS DMG installer
Users can now build a macOS DMG installer for Bazel using the Bazel build system. This change adds a new \bazel-dmg\ genrule in \scripts/packages/dmg/BUILD\ that invokes a new shell script (\create\_bazel\_dmg.sh\) to package the Bazel binary, a custom icon, and a background image into a disk image. The build is restricted to macOS hosts via \target\_compatible\_with\.
scripts/packages/dmg · high confidence
Add Go example for accessing runfiles
A new Go example has been added to the examples directory to demonstrate how to use the runfiles library. The example includes a BUILD file defining a go\_binary target and a Go source file that initializes the runfiles client, locates a data file via rlocation, and reads its content, providing a reference implementation for Go projects using Bazel.
examples/go · high confidence
Add JUnit test runner model and Ant XML result writer
This change introduces the core data model for the Bazel JUnit test runner in the \model\ package, including classes for test nodes, test results, and time intervals, along with an \AntXmlResultWriter\ that generates JUnit-compatible XML output. The writer produces XML compliant with the JUnit XSD schema, handling test suite properties, system output/error, and test case statuses (including skipped, suppressed, and filtered tests), while ensuring timestamps are formatted in ISO8601 for locale independence.
_src/java\tools/junitrunner/java/com/google/testing/junit/runner/model · high confidence
Add JUnit4 test runner implementation and build configuration
This change introduces the core implementation for the Bazel JUnit4 test runner, including the main entry point (JUnit4Runner), configuration parsing (JUnit4Config, JUnit4Options), and dependency injection modules (JUnit4RunnerModule, JUnit4InstanceModules). It also adds the necessary BUILD file to compile the runner and its dependencies, enabling users to execute JUnit4 tests through Bazel with support for sharding, filtering, and XML output.
_src/java\tools/junitrunner/java/com/google/testing/junit/runner/junit4 · high confidence
Add JaCoCo instrumentation processor for Java coverage
Introduces the new \JacocoInstrumentationProcessor\ class, which instruments compiled Java classes using the JaCoCo library. This processor creates a unique metadata directory for each built JAR to store uninstrumented class copies, performs the instrumentation, and adds the resulting files to the output JAR, while also cleaning up temporary directories after processing.
_src/java\tools/buildjar/java/com/google/devtools/build/buildjar/instrumentation · high confidence
Add ProGuard 6.2.2 source code and example projects
This change adds the full source code for ProGuard version 6.2.2 to the third-party directory, including core components like configuration parsing, class path management, and optimization checks. It also includes sample Android applications (HelloWorldActivity) in both standard and plugin configurations to demonstrate ProGuard usage.
_third\_party/java/proguard/proguard6.2.2, third\_party/java/proguard/proguard6.2.2/examples/android, third\party/java/proguard/proguard6.2.2/examples/android-plugin · high confidence
Add RPM packaging support for Fedora
Users can now build Bazel as an RPM package for Fedora systems. This change introduces a Bazel build rule (\pkg\_rpm\) and a corresponding \.spec\ file that package the Bazel binary, its configuration, and shell completion scripts (bash and zsh) into a standard RPM distribution.
scripts/packages/fedora · high confidence
Add Starlark CPU profiler module and service
This change introduces the Starlark CPU profiler infrastructure by adding a new \starlarkprofiler\ package. It defines a \CpuProfilerService\ interface and a \CpuProfilerServiceImpl\ that provides native CPU profiling support on Linux and macOS, along with a \CpuProfilerModule\ that wires this service into the Blaze runtime by installing the native support into the Starlark evaluation environment.
src/main/java/com/google/devtools/build/lib/starlarkprofiler · high confidence
Add Starlark json module for encoding and decoding JSON
Introduces a new \json\ module for Starlark scripts, providing \encode\ and \decode\ functions to convert between Starlark values and JSON strings. The \encode\ function supports converting dicts (with lexicographically sorted keys), lists, structs, strings, integers, floats, and booleans, while \decode\ parses JSON strings back into Starlark structures, allowing for a default return value on failure and handling duplicate keys by overriding them.
src/main/java/net/starlark/java/lib/json · high confidence
Add Starlark memory allocation tracking
Introduces a new memory profiler in the \com.google.devtools.build.lib.profiler.memory\ package that tracks Java object allocations during Bazel builds. The \AllocationTrackerModule\ enables this feature when the \RULE\_MEMORY\_TRACKER=1\ system property is set, requiring the \java-allocation-instrumenter\ Java agent. The \AllocationTracker\ records allocation samples (including Starlark call stacks, rule, and aspect context) using Caffeine for caching and exposes the data via the \AllocationTrackerService\ for consumption by dump commands.
src/main/java/com/google/devtools/build/lib/profiler/memory · high confidence
Add Windows C++ DEF parser and vendor Chicory WebAssembly runtime
Bazel now includes a native Windows C++ DEF parser (third\_party/def\_parser) to generate .def files from object files, enabling proper symbol export handling on Windows. Additionally, the WebAssembly runtime Chicory has been added to third\_party, providing support for executing WebAssembly modules in repository rules.
_third\party · high confidence
Add automatic output filtering for build commands
Users can now use the new --auto\_output\_filter flag (with values none, all, packages, or subpackages) to automatically control which build output is displayed. When --output\_filter is not explicitly set, this option generates a filter based on the targets specified on the command line: 'packages' shows output for rules in the same package as the requested targets, while 'subpackages' extends this to include subpackages. This feature is implemented via the new OutputFilteringModule and AutoOutputFilter classes, which integrate with the build event system to apply the appropriate regex-based filtering during the build process.
src/main/java/com/google/devtools/build/lib/outputfilter · high confidence
Add cgroup v1 and v2 controller implementations
This change introduces the Java classes and build rules for the cgroup controller abstraction layer, including the \Controller\ interface and its v1 (Legacy) and v2 (Unified) implementations for CPU and memory resources. Users benefit from proper support for modern cgroup v2 systems, where memory limits now automatically disable swap usage to prevent unexpected resource consumption, and CPU limits are correctly applied via the \cpu.max\ file format.
src/main/java/com/google/devtools/build/lib/sandbox/cgroups/controller · high confidence
Add configurable failure circuit breaker for remote execution
Users can now opt-in to a failure circuit breaker for remote build execution, which stops sending requests to an unreachable remote cache or execution server when failure rates exceed a configured threshold. This feature introduces new configuration options in RemoteOptions to define the failure rate threshold, sliding window interval, minimum call/fail counts, and recovery delay, allowing for more resilient handling of remote service outages compared to the previous default behavior of allowing all calls.
src/main/java/com/google/devtools/build/lib/remote/circuitbreaker · high confidence
Add experimental workspace rules logging
Users can now enable verbose logging of workspace rule events by setting the \--experimental\_workspace\_rules\_log\_file\ option. When configured, Bazel writes delimited \WorkspaceEvent\ protocol buffers to the specified file, capturing details for repository operations such as downloads, extractions, file creation, and WebAssembly execution. This feature aids in debugging non-hermetic events and understanding the sequence of actions performed during repository rule resolution.
src/main/java/com/google/devtools/build/lib/bazel/debug · high confidence
Add native Python example demonstrating Bazel rules
Added an example in examples/py\_native that demonstrates the use of native Bazel Python rules (py\_binary, py\_library, py\_test). The example includes a library, a binary, and tests, specifically showcasing the imports attribute to manage PYTHONPATH for module resolution.
_examples/py\native · high confidence
Add shell example demonstrating runfiles access
The examples/shell directory now includes a complete example showing how to build and test shell scripts using Bazel. It provides sh\_binary, sh\_library, and sh\_test targets that demonstrate how to initialize and use the runfiles library to locate and read data files at runtime, including accessing files from the current repository and external dependencies.
examples/shell · high confidence
Add test sharding support to the JUnit runner
The JUnit test runner now supports sharding tests across multiple workers to improve parallel execution speed. This change introduces a sharding module containing two strategies: round-robin (the default) and hash-based sharding. Users can enable sharding by setting the TEST\_TOTAL\_SHARDS and TEST\_SHARD\_INDEX environment variables, and can select the strategy via the -Dtest.sharding.strategy JVM flag or by providing a custom implementation of the ShardingFilterFactory interface.
_src/java\tools/junitrunner/java/com/google/testing/junit/runner/sharding · high confidence
Add text-based critical path profiler output
The profiler now supports generating textual reports of the build's critical path. A new CriticalPathText class formats and prints the total and optimal critical path durations along with individual trace event details (time, percentage, and description) to a PrintStream, utilizing a shared TextPrinter utility for consistent formatting and percentage display.
src/main/java/com/google/devtools/build/lib/profiler/output · high confidence
Add zstd compression support for remote cache streams
Introduces new Java classes in the remote zstd package to enable zstd compression and decompression for gRPC cache operations. The implementation includes ZstdCompressingInputStream for on-the-fly compression using ZstdOutputStreamNoFinalizer and ZstdDecompressingOutputStream for decompression using ZstdInputStreamNoFinalizer, with specific attention to resource management and buffer sizing to avoid unnecessary allocations.
src/main/java/com/google/devtools/build/lib/remote/zstd · high confidence
Added Starlark spelling checker for typo detection and suggestions
Users can now receive spelling suggestions in error messages when a requested target does not exist. This change introduces the \SpellChecker\ class, which uses Levenshtein distance to detect typos and suggest corrections, and integrates it into the error reporting flow to improve usability when misspelling identifiers.
src/main/java/net/starlark/java/spelling · high confidence
Bzlmod: New module resolution, lockfile, and tidy infrastructure
This change introduces the core Skyframe functions and values for Bazel module resolution, including the post-selection dependency graph (BazelDepGraphValue), the module resolution result (BazelModuleResolutionValue), and the lockfile handling (BazelLockFileModule, BazelLockFileValue). It adds the \bazel mod tidy\ command implementation (BazelModTidyFunction) to evaluate module extensions and update the lockfile, and introduces \BazelFetchAllFunction\ to gather and fetch all repositories. The lockfile version is bumped to 28, and new data structures like AbridgedModule and AttributeValues are added to support serialization and resolution.
src/main/java/com/google/devtools/build/lib/bazel/bzlmod · high confidence
Docgen now supports generating documentation from .bzl files via Stardoc protos
The documentation generator in src/main/java/com/google/devtools/build/docgen has been updated to accept Stardoc proto files generated from .bzl entry points as input. This allows the Build Encyclopedia and Starlark API documentation to be extracted directly from Starlark rule definitions, supplementing or replacing the previous reliance on Java source code annotations. The new logic in StarlarkDocumentationCollector and ProtoFileBuildEncyclopediaProcessor processes these protos to populate rule, provider, and function documentation, with proto-derived docs taking precedence over Java-based ones.
src/main/java/com/google/devtools/build/docgen · high confidence
Error Prone plugin now records and reports compilation timings
The Error Prone static analysis plugin in JavaBuilder now tracks and reports performance metrics for the analysis process. When the \-XepRecordTimings\ flag is enabled, the plugin records the time spent initializing Error Prone and the duration of individual bug-pattern checks, exposing these statistics to the build system for performance monitoring.
_src/java\tools/buildjar/java/com/google/devtools/build/buildjar/javac/plugins/errorprone · high confidence
Expanded archive format support and improved extraction reliability
Bazel now supports decompressing additional archive formats including .ar, .7z, .bz2, .xz, .zst, and .br files, allowing users to fetch and extract a wider variety of third-party dependencies. The extraction logic has been hardened to enforce user-readable file permissions on all extracted files, fix handling of symbolic and hard links when using strip\_components, and correctly process zstd archives with larger windows. Additionally, the native patch implementation now robustly handles patches with missing newlines at the end of files and supports multi-file patches without separators.
src/main/java/com/google/devtools/build/lib/bazel/repository/decompressor · high confidence
Expose Bazel-specific Python builtins to Starlark
Users can now access Bazel-specific Python helper functionality within Starlark rules via the new \BazelPyBuiltins\ class. This change introduces a dedicated Java implementation that extends the standard \PyBuiltins\, specifically exposing the \GET\_INIT\_PY\FILES\ supplier to manage \\\init\\_.py\ file generation during runfile merging. This allows Python rules to leverage Bazel-specific logic for handling empty files in a standardized way.
src/main/java/com/google/devtools/build/lib/bazel/rules/python · high confidence
Initial Chocolatey package support for Bazel on Windows
Added the core Chocolatey package files (VERIFICATION.txt, chocolateybeforemodify.ps1, and chocolateyinstall.ps1) to enable installing Bazel via Chocolatey on Windows. The installation script downloads the Bazel zip from GitHub releases, verifies the SHA256 checksum, and installs the binary. A pre-modification script is included to automatically stop any running Bazel processes before upgrades to ensure a clean update.
scripts/packages/chocolatey/tools · high confidence
Initial Chocolatey package support for Windows
This change introduces the first Chocolatey package for Bazel on Windows, enabling users to install the tool via the \choco\ package manager. The package includes a build script (\build.ps1\) that supports local, release, and release-candidate modes, automatically handling TLS 1.2 requirements and checksum verification. It declares dependencies on the Visual C++ Redistributable (vcredist140) and Chocolatey core extensions, while removing the previous strict MSYS2 dependency in favor of a default msys64 root. The package also includes a test script (\test.ps1\) to verify installation and basic command functionality.
scripts/packages/chocolatey · high confidence
Initial introduction of native Python rules and version handling
Bazel now includes native Python rules (py\_binary, py\_library, py\_test) located in the rules/python package. This change introduces the PythonVersion enum to manage Python 2 and 3 compatibility, establishing srcs\_version defaults (PY2AND3) and target version attributes (PY2, PY3) to control how Python source files are analyzed and compiled. It also adds a helper class (PyCommon) to support extra action registration for Python targets, enabling better integration with Bazel's analysis and execution infrastructure.
src/main/java/com/google/devtools/build/lib/rules/python · high confidence
Initial release of Bazel zsh shell completion
Users can now enable tab-completion for Bazel commands and options in the Zsh shell. The change introduces the \\_bazel\ completion script and a \BUILD\ file to package it, allowing users to install the script into their \$fpath\ (e.g., \\~/.zsh/completion/\) to get completions for subcommands, flags, build targets, and packages. The script includes support for caching completion data to improve performance and handles specific argument types like labels and paths.
_scripts/zsh\completion · high confidence
Initial release of the Build Event Protocol (BEP) proto definitions
This change introduces the initial version of the Build Event Protocol (BEP) by adding the \build\_event\_stream.proto\ file and its associated \BUILD\ configuration. It defines the core message types and identifiers used to stream build information, including events for build start, command line parsing, workspace configuration, target configuration, and pattern expansion. The proto also establishes the event hierarchy and parent-child relationships that tools use to reconstruct the build graph and monitor build progress.
src/main/java/com/google/devtools/build/lib/buildeventstream/proto · high confidence
Introduce Action Rewinding statistics tracking
Added a new protocol buffer definition and associated build targets to track action rewinding events. This change introduces the \ActionRewindEvent\ message, which captures details about actions that detected lost inputs and initiated a rewind, including the action type, rule label, sample of lost input paths and digests, total lost input count, and the number of invalidated Skyframe nodes. This enables better observability into build stability and dependency issues by recording specific metrics when the build system needs to re-evaluate parts of the graph due to missing inputs.
src/main/java/com/google/devtools/build/lib/skyframe/proto · high confidence
Introduce AppleStarlarkCommon to expose Apple rule internals to Starlark
A new \AppleStarlarkCommon\ class has been added to the \rules/objc\ package to implement the \AppleCommonApi\ interface, providing Starlark rules with access to Apple-specific implementation details such as platform structures and version parsing. This change supports the ongoing migration of Apple and Objective-C rule logic to Starlark by exposing necessary configuration and toolchain information through the \apple\_common\ namespace, while simultaneously removing several legacy Java support classes (e.g., \ArtifactListAttribute\, \CompiledResourceFile\) that are no longer needed.
src/main/java/com/google/devtools/build/lib/rules/objc · high confidence
Introduce BUILD-style output format for cquery
cquery now supports a new --output=build mode that formats results as BUILD file rules, similar to the legacy query command. This allows users to inspect configured targets in a familiar, declarative syntax, including resolved attribute values and configuration details, bridging the gap between the high-level query engine and the detailed analysis graph.
src/main/java/com/google/devtools/build/lib/query2/cquery · high confidence
Introduce BulkDeleter and DelegateFileSystem interfaces for output management
The VFS module now exposes a \BulkDeleter\ interface to allow efficient bulk deletion of output paths relative to the exec root, and a \DelegateFileSystem\ abstract class to simplify building file system implementations that wrap an underlying file system without path transformation. These additions provide cleaner abstractions for output tree management and file system delegation within the build system.
src/main/java/com/google/devtools/build/lib/vfs · high confidence
Introduce ByteStreamBuildEventArtifactUploader for remote BEP uploads
Bazel now supports uploading Build Event Protocol (BEP) artifacts directly to the remote cache via the ByteStream API. This new \ByteStreamBuildEventArtifactUploader\ and its factory allow BEP-referenced files to be stored in the remote CAS, enabling remote builds to access build logs and other artifacts without requiring local file access. This change is part of the broader effort to support 'Build without Bytes' (BwoB) and remote build event reporting.
src/main/java/com/google/devtools/build/lib/remote · high confidence
Introduce CompactHashMap to reduce memory allocation and garbage collection pressure
Bazel now includes a forked implementation of Guava's CompactHashMap, available as a new build target in src/main/java/com/google/devtools/build/lib/collect/compacthashmap. This specialized map implementation is designed to significantly reduce runtime memory allocation and garbage collection overhead by using primitive arrays for internal storage instead of object nodes. While it trades slightly higher CPU constant factors for these memory savings, it provides a drop-in replacement for java.util.HashMap in scenarios where minimizing garbage generation is critical, such as in hot paths within the build graph.
src/main/java/com/google/devtools/build/lib/collect/compacthashmap · high confidence
Introduce GenClass tool to extract annotation-processor-generated classes
A new \GenClass\ tool is added to the \buildjar\ Java tools suite to post-process Java compilation outputs. It reads a compilation manifest and an input class jar, then produces an output jar containing only the class files generated by annotation processors. The tool handles inner classes correctly by matching class name prefixes and assumes that any class not explicitly identified as user-written is generated. This allows build systems to separate generated code from hand-written code for downstream processing.
_src/java\tools/buildjar/java/com/google/devtools/build/buildjar/genclass · high confidence
Introduce ImportDepsChecker tool for validating Java dependency completeness
Adds a new \ImportDepsChecker\ tool in \src/java\_tools/import\_deps\_checker\ that analyzes input JARs to detect missing or incomplete class dependencies on the classpath. The tool distinguishes between missing classes, incomplete classes (where ancestors are missing), and missing members (fields/methods), and can report indirect dependencies. It supports multiple output modes: printing detailed error/warning messages to stderr, writing results to an output file, or emitting a \jdeps\ protocol buffer. The checker allows configuring whether missing members are treated as errors or warnings, and exits with code 199 when dependency issues are found in error mode.
_src/java\_tools/import\_deps\checker/java · high confidence
Introduce Linux Sandbox 2.0 with hermetic execution and cgroup support
Bazel now includes a new sandboxing implementation (Sandbox 2.0) for Linux, replacing the legacy namespace-sandbox. This new \linux-sandbox\ tool provides improved hermeticity by default, ensuring that spawned processes cannot access non-declared inputs or affect the host system. It introduces support for cgroups to enforce memory limits, allows creating network namespaces with or without loopback, and enables running as root inside the sandbox for compatibility with setuid programs. The sandbox also features better error handling, such as distinguishing missing shebang interpreters from missing binaries, and supports persistent processes for workers.
src/main/tools · high confidence
Introduce PROJECT.scl schema for project-level build configuration
Users can now define project-level build settings via a new \PROJECT.scl\ schema, which specifies buildable units (target patterns, flags, and default status), an enforcement policy for command-line flag compliance (WARN, COMPATIBLE, or STRICT), and a list of always-allowed configs. This schema is defined in \project.proto\ and \buildable\_unit.proto\, with generated Starlark bindings in \project\_proto.scl\ to enable parsing and validation of these project configurations in Blaze.
src/main/protobuf/project · high confidence
Introduce Starlark Java annotation framework
This change adds the \net.starlark.java.annot\ package, providing the core annotations (\@StarlarkBuiltin\, \@StarlarkMethod\, \@Param\, \@ParamType\, \@StarlarkLibrary\) and build rules (\BUILD\) used to define and expose Java-implemented data types and methods to the Starlark interpreter. It establishes the metadata structure for parameter handling, documentation, and type representation, enabling the annotation processor to generate the necessary Starlark bindings.
src/main/java/net/starlark/java/annot · high confidence
Introduce Starlark build API core interfaces
This change adds the core Java interfaces for the Starlark build API, including \StructApi\ for immutable struct objects, \ProviderApi\ for provider symbols and instances, \TransitiveInfoCollectionApi\ for build targets, and \ContextGuardedValue\ to restrict access to predeclared values based on repository context. These interfaces define the types and behaviors exposed to Starlark scripts, establishing the foundation for the build API's type system and visibility controls.
src/main/java/com/google/devtools/build/lib/starlarkbuildapi/core · high confidence
Introduce Starlark debug server for debugging Starlark build scripts
Adds a new debug server component in the \starlarkdebug/server\ package that allows developers to attach a debugger to running Starlark build scripts. The implementation includes a network transport layer (\DebugServerTransport\) to communicate with debugger clients, a main server (\StarlarkDebugServer\) that manages the connection and debugging state, and a \ThreadHandler\ to control thread execution (pausing, resuming, and stepping). It also provides serialization helpers (\DebuggerSerialization\, \DebugEventHelper\) to convert Starlark objects into debug protocol messages, enabling features like inspecting variables, viewing call stacks, and setting breakpoints.
src/main/java/com/google/devtools/build/lib/starlarkdebug/server · high confidence
Introduce Starlark load visibility and config transition APIs
This change adds the \visibility()\ function to \.bzl\ files, allowing module authors to restrict which packages can load their symbols (controlled by the \--experimental\_bzl\_visibility\ flag). It also introduces the \config\ namespace in \native\ with helpers like \config.int\_setting()\ and \config.bool\_setting()\ to define custom build settings, and exposes \config.target()\ and \config.none()\ as no-op configuration transitions for Starlark rules.
src/main/java/com/google/devtools/build/lib/analysis/starlark · high confidence
Introduce StarlarkConfigurationField annotation for configuration fragments
Added the StarlarkConfigurationField annotation to define late-bound attribute defaults for Starlark-exposed configuration fragments. This allows Java methods in configuration fragments to expose specific fields to Starlark with defined names, default labels, and documentation, subject to constraints such as requiring a Label return type and no arguments. The change also includes a new BUILD file for the annotations module to manage visibility and dependencies.
src/main/java/com/google/devtools/build/lib/analysis/starlark/annotations · high confidence
Introduce StateMachine abstraction for logical concurrency in SkyKey computations
Bazel now provides a new \StateMachine\ framework in the \skyframe.state\ package to implement \SkyFunction\ logic with structured, logical concurrency. This allows complex dependency processing sequences (e.g., A1→A2→A3 and B1→B2→B3) to run concurrently, reducing critical path latency and restart overhead compared to manual batching. The package includes \Driver\ and \TaskTreeNode\ to manage execution, \Lookup\ classes for efficient dependency resolution, and \ValueOrExceptionProducer\ variants (supporting 1, 2, or 3 exception types) to bridge state machines to \SkyFunction\ results. An \EnvironmentForUtilities\ class and \StateMachineEvaluatorForTesting\ are also added to support post-evaluation queries and testing.
src/main/java/com/google/devtools/build/skyframe/state · high confidence
Introduce \`bazel mod\` command for module dependency inspection
Adds the \bazel mod\ command-line interface, replacing the legacy \modquery\ command, to inspect and visualize the Bazel module dependency graph. This new interface supports multiple output formats including human-readable text trees, JSON, Graphviz DOT, and streamed protobuf, and provides options to filter by module extensions, display extension usage details, and trace resolution reasons.
src/main/java/com/google/devtools/build/lib/bazel/bzlmod/modcommand · high confidence
Introduce action rewinding infrastructure for handling lost inputs
This change adds the core components for Bazel's action rewinding feature, which allows the build to recover when critical outputs are unexpectedly lost (e.g., due to remote cache eviction). The \rewinding\ package introduces \ActionRewindStrategy\ to manage the logic for detecting lost inputs and planning recovery, \RewindableGraphInconsistencyReceiver\ to tolerate specific Skyframe graph inconsistencies that occur during the rewind process, and \ActionRewoundEvent\ to notify users when an action is being rewound. It also includes \ActionRewindException\ for detailed error reporting and \LostImportantOutputHandlerModule\ to support testing scenarios where outputs are simulated as lost.
src/main/java/com/google/devtools/build/lib/skyframe/rewinding · high confidence
Introduce asynchronous sandbox cleanup and container-based sandboxing strategies
This change introduces a new \AsynchronousTreeDeleter\ that performs sandbox directory cleanup in the background, preventing build shutdown from blocking on file system operations. It also adds new sandboxing strategies that execute actions inside containers: a Docker-based strategy (\DockerSandboxedStrategy\) and a generic containerizing base (\AbstractContainerizingSandboxedSpawn\) which supports hardlinked inputs (\HardlinkedSandboxedSpawn\). These additions provide users with more isolated and hermetic execution environments, particularly for Docker and containerized workflows, while improving server responsiveness during cleanup.
src/main/java/com/google/devtools/build/lib/sandbox · high confidence
Introduce automatic CPU detection and configuration change events
Bazel now automatically detects the host CPU architecture when the --cpu flag is empty, mapping the current OS and CPU to the appropriate value (e.g., darwin\_x86\_64, linux\_x86\_64, windows\_x64). Additionally, a new AdditionalConfigurationChangeEvent has been added to allow modules to signal configuration changes that require discarding the analysis cache, improving cache invalidation for non-standard configuration-affecting options.
src/main/java/com/google/devtools/build/lib/analysis/config · high confidence
Introduce common query infrastructure and options for cquery and aquery
This change extracts shared query logic into the new \com.google.devtools.build.lib.query2.common\ package to support \cquery\ and \aquery\. It introduces \CommonQueryOptions\ to centralize flags like \--universe\_scope\, \--infer\_universe\_scope\, \--tool\_deps\ (renamed from \host\_deps\), and \--include\_aspects\. It also adds the \CqueryNode\ interface for traversing configured targets and aspects, the \UniverseScope\ abstraction for managing query scopes, and the \QueryTransitivePackagePreloader\ for efficiently preloading transitive package closures in Skyframe.
src/main/java/com/google/devtools/build/lib/query2/common · high confidence
Introduce connectivity status reporting for build services
This change adds a new \ConnectivityStatus\ enum and \ConnectivityStatusProvider\ interface to the \com.google.devtools.build.lib.network\ package, allowing services like the Build Event Service (BES) to expose their network reachability state. It also introduces a \NoOpConnectivityModule\ that provides a default 'OK' status, establishing the foundation for graceful failure handling when services are unreachable due to network issues.
src/main/java/com/google/devtools/build/lib/network · high confidence
Introduce credential helper subprocess invocation and caching
This change adds the core implementation for invoking external credential helpers as subprocesses to fetch credentials for repository fetching. It introduces a new \credentialhelper\ module containing the \CredentialHelper\ class, which spawns the helper process, sends a JSON request, and parses the JSON response (including headers and expiry times). A \CredentialModule\ provides a shared cache for these credentials, using a \WallTicker\ to correctly handle absolute expiry times from the helper, and clears the cache when the \--credential\_helper\_cache\_duration\ flag changes or on clean. Error handling is improved to propagate helper failure messages and ignore non-critical issues like writing to stdin for helpers that do not read it.
src/main/java/com/google/devtools/build/lib/authandtls/credentialhelper · high confidence
Introduce dedicated disk cache implementation with virtual threads and garbage collection
Bazel now includes a new, dedicated on-disk cache implementation for the remote execution action cache and content-addressable storage. This change introduces the \DiskCacheClient\ and \DiskCacheGarbageCollectorIdleTask\ components, which manage local storage under the output user root. The implementation uses virtual threads for I/O-bound operations to improve concurrency and efficiency. It supports separate directories for action results (AC) and content-addressable storage (CAS), handles temporary files in a dedicated subdirectory, and updates file modification times to enable least-recently-used garbage collection. The client also includes logic to check action result integrity by verifying referenced blobs are present, and handles concurrent access safely across different Bazel processes.
src/main/java/com/google/devtools/build/lib/remote/disk · high confidence
Introduce experimental Starlark debugger with configurable server options
Adds a new Starlark debugger module that allows users to attach a debugger to the Starlark interpreter during a build. This introduces several new experimental flags: --experimental\_skylark\_debug to enable the debug server, --experimental\_skylark\_debug\_server\_port (default 7300) to specify the listening port, --experimental\_skylark\_debug\_server\_address (default 127.0.0.1) to bind the server to a specific address, --experimental\_skylark\_debug\_verbose\_logging for detailed logs, and --experimental\_skylark\_debug\_reset\_analysis to reset the analysis phase before debugging.
src/main/java/com/google/devtools/build/lib/starlarkdebug/module · high confidence
Introduce gRPC connection pooling and load balancing
This change introduces a new connection management layer for remote execution, adding interfaces for connections, factories, and pools, along with a \DynamicConnectionPool\ implementation. The pool uses a round-robin algorithm to distribute RPCs across multiple underlying gRPC connections and supports limiting the maximum number of concurrent connections, enabling better load balancing and resource control for remote builds.
src/main/java/com/google/devtools/build/lib/remote/grpc · high confidence
Introduce gRPC-based Remote Downloader
Added a new \GrpcRemoteDownloader\ implementation that delegates external file downloads to the Bazel Remote Asset API via gRPC, replacing the previous HTTP-based approach for remote assets. This change includes the necessary BUILD configuration and dependencies to support the new downloader, allowing users to leverage remote caching for faster and more efficient dependency resolution when the remote downloader is enabled.
src/main/java/com/google/devtools/build/lib/remote/downloader · high confidence
Introduce internal unsafe string accessors and Unsafe provider
Added new internal utilities in the \unsafe\ package to bypass standard Java string APIs for performance-critical operations. \StringUnsafe\ provides direct access to JDK9+ string internals (Latin-1/UTF-16 coders and byte arrays) using \VarHandle\ instead of \sun.misc.Unsafe\, enabling faster ASCII checks and internal string byte extraction. \UnsafeProvider\ exposes \sun.misc.Unsafe\ for serialization needs, while a new \BUILD\ file defines the \unsafe-provider\ and \string\ libraries with appropriate visibility and module opens.
src/main/java/com/google/devtools/build/lib/unsafe · high confidence
Introduce local repository contents cache with garbage collection
Bazel now supports a local repository contents cache that stores fetched repository sources across different workspaces. This new feature, enabled via the \--experimental\_repository\_cache\ flag, introduces a \LocalRepoContentsCache\ that organizes cached repos by predeclared input hashes and uses a garbage collection mechanism to remove stale entries based on usage time. The cache implementation includes atomic file operations, hardlink support for efficient storage, and a dedicated GC lock to prevent conflicts during concurrent read-write access, while the existing \DownloadCache\ handles artifact downloads separately within the same cache directory structure.
src/main/java/com/google/devtools/build/lib/bazel/repository/cache · high confidence
Introduce native alias, label build settings, and toolchain type rules
This change adds native implementations for the \alias\, \label\_setting\, \label\_flag\, and \toolchain\_type\ rules, replacing previous Skylark or internal-only definitions. The new \alias\ rule creates a named reference to another target, allowing users to reuse target names or store \select()\ logic without duplicating build files; it maintains its own visibility and configuration while forwarding providers from the actual target. The \label\_setting\ and \label\_flag\ rules provide native support for label-typed build settings, enabling users to pass specific targets as flags or settings that resolve to the providers of the referenced targets. Additionally, the \toolchain\_type\ rule defines a new type of toolchain, serving as a simple target that represents a class of tools for different platforms, and supports a \no\_match\_error\ attribute to customize error messages when no matching toolchain is found. These rules are implemented in Java and integrated into the core rule definitions, improving performance and stability for these common build constructs.
src/main/java/com/google/devtools/build/lib/rules · high confidence
Introduce new Skyframe-based glob computation producers
This change adds a new set of state-machine-based producers in the \producers\ package (\GlobComputationProducer\, \FragmentProducer\, \PatternWithWildcardProducer\, \PatternWithoutWildcardProducer\, \DirectoryDirentProducer\, and \SymlinkProducer\) to handle glob pattern matching within Skyframe. These components replace or supplement the previous glob logic by breaking down glob evaluation into granular, parallelizable tasks that query \DirectoryListingValue\ and \FileValue\ nodes, improving the modularity and potential parallelism of glob operations in Bazel's build graph.
src/main/java/com/google/devtools/build/lib/packages/producers · high confidence
Introduce new action execution metadata and command-line abstractions
Bazel introduces new abstractions to separate action analysis from execution and improve command-line handling. The new \ActionExecutionMetadata\ interface isolates execution-phase data (such as execution platform and properties) from the existing \ActionAnalysisMetadata\, allowing the build system to handle execution requirements more cleanly. Additionally, a new \AbstractCommandLine\ class provides a base implementation for command lines that eagerly materialize strings, and \ActionCacheUtils\ offers utility methods for interacting with the action cache. These changes support more efficient command-line expansion and better separation of concerns during action execution. Also in this area: 7 commits (1 fix) modifying src/main/java/com/google/devtools/build/lib.
src/main/java/com/google/devtools/build/lib/actions · medium confidence · unverified
Introduce platform, toolchain, and constraint rules for cross-compilation
Bazel now provides native \platform\, \toolchain\, \constraint\_setting\, and \constraint\_value\ rules that allow you to define execution environments and the tools that target them. The \platform\ rule lets you group constraint values (such as CPU and OS) and set execution properties, while the \toolchain\ rule declares specific tool implementations and their compatibility with those platforms. You can now define custom constraint categories using \constraint\_setting\ and \constraint\_value\ to model hardware or software capabilities, enabling precise toolchain resolution for cross-compilation scenarios.
src/main/java/com/google/devtools/build/lib/rules/platform · high confidence
Introduce pluggable clock abstraction for Blaze
The build system now exposes a new \com.google.devtools.build.lib.clock\ package containing a \Clock\ interface and a \BlazeClock\ singleton. This allows the time source used by Blaze to be overridden at runtime (defaulting to \JavaClock\ which wraps \System.currentTimeMillis\/\nanoTime\), enabling more precise time conversions and easier testing or simulation of time-dependent behavior in build actions.
src/main/java/com/google/devtools/build/lib/clock · high confidence
Introduce precise aspect dependency resolution in queries
The query engine now includes a new \AspectResolver\ component that determines additional dependencies of a target based on its aspects. This introduces three resolution modes: \OFF\ (no aspect dependencies reported), \CONSERVATIVE\ (assumes all rule aspects are triggered without loading dependent packages), and \PRECISE\ (loads direct dependencies to report only aspects that can actually be triggered based on their types). This allows \blaze query\ to more accurately reflect aspect-driven dependencies, with the precise mode providing exact results at the cost of loading additional package information.
src/main/java/com/google/devtools/build/lib/query2/query/aspectresolvers · high confidence
Introduce remote analysis cache invalidation and file dependency tracking
This change adds the core infrastructure for the remote analysis cache (Skycache) within the serialization analysis package. It introduces the AnalysisCacheInvalidator to determine which cached SkyKeys must be invalidated by querying a remote service, and implements a new file dependency tracking system (FileDependencies, FileSystemDependencies) to detect local file changes that invalidate cached analysis results. Additionally, it provides the AbstractValueOrFutureMap for concurrent future management and the FileOpMatchMemoizingLookup to efficiently match file operations against versioned changes, enabling precise cache coherence for remote analysis builds.
src/main/java/com/google/devtools/build/lib/skyframe/serialization/analysis · high confidence
Introduce structured C++ logging and platform-specific utility libraries
The \src/main/cpp/util\ directory now contains a dedicated C++ utility library that includes a new structured logging framework (\logging\, \bazel\_log\_handler\) and platform-specific file and path handling (\file\_posix\, \file\_windows\, \path\). This change introduces a \BazelLogHandler\ that buffers log messages until the logging detail is determined, allowing the Bazel client to control output verbosity (quiet, user, debug) and include timestamps and source locations in debug logs. It also provides cross-platform abstractions for file operations (read/write, directory management, symlink handling) and path manipulation, with specific implementations for Windows (using \wchar\_t\ and Windows APIs) and POSIX systems. The \BUILD\ file defines visibility for these libraries, making them available to other parts of the Bazel codebase like \ijar\, \singlejar\, and the launcher.
src/main/cpp/util · high confidence
Introduce structured failure-cause classes for Build Event Stream
This change adds a new \causes\ package containing structured classes (\ActionFailed\, \AnalysisFailedCause\, \LabelCause\, \LoadingFailedCause\) that implement the \Cause\ interface. These classes encapsulate failure details using \DetailedExitCode\ and provide specific \BuildEventId\ generation for the Build Event Stream, enabling more precise reporting of why targets or actions failed during the build process.
src/main/java/com/google/devtools/build/lib/causes · high confidence
Introduce the cquery command for configurable target queries
Adds the \cquery\ command, which allows users to query the graph of configured targets (including build configurations and aspects) rather than just unconfigured labels. This new capability includes a \config()\ query function to filter results by specific configurations, parallelized traversal implementations for dependency queries, and support for multiple output formats including proto, JSON, and text.
src/main/java/com/google/devtools/build/lib/query2 · high confidence
Introduce v2 aquery proto output format with streaming support
The aquery command now supports a new v2 proto output format (enabled via --incompatible\_proto\_output\_v2) that provides more detailed action information and better performance for large graphs. This new format includes template expansion content and substitutions, execution platform details, effective environment variables for command actions, scheduling dependencies, and the ability to optionally include file write contents and pruned inputs. It also introduces a streamed\_proto output mode that writes length-delimited ActionGraphContainer messages, enabling efficient processing of large results without loading the entire graph into memory.
src/main/java/com/google/devtools/build/lib/skyframe/actiongraph · high confidence
Introduce virtual cgroup abstraction and cgroup info protocol
This change adds a new virtual cgroup implementation in the sandbox module, allowing Bazel to create and manage isolated cgroup scopes for build actions with configurable CPU and memory limits. It introduces a \CgroupsInfo\ protocol buffer to expose details about available cgroup controllers (including their version, path, and writability) to the rest of the build system, and provides a factory mechanism to instantiate these virtual cgroups while handling platform-specific constraints.
src/main/java/com/google/devtools/build/lib/sandbox/cgroups · high confidence
Introduces visibility annotations for Skybridge interface stability
New Java annotations have been added to the Skybridge module to explicitly mark classes as part of the stable Service Component/Lifecycle Component (SC/LC) interface or as exclusive to the Service Component. The \@SkybridgeInterface\ annotation identifies classes that form the stable public contract, while the \@ScOnly\ annotation restricts certain classes to the Service Component layer. These annotations are defined in new source files and registered in the module's BUILD file, providing a formal mechanism to enforce interface boundaries and visibility rules within the build system.
src/main/java/com/google/devtools/build/lib/skybridge · high confidence
Introduction of LongVersionGetter interface for file versioning
A new LongVersionGetter interface has been added to the versioning package to manage version numbers for files, symlinks, and directory listings. This interface defines methods to retrieve the modification version of paths, the change version of directory listings, and the version for nonexistent items, utilizing special constants like CURRENT\_VERSION and MINIMAL to handle edge cases such as current snapshots, external paths, and items that never existed. The implementation is packaged as a java\_library target named 'long\_version\_getter' with visibility restricted to the build\_lib.
src/main/java/com/google/devtools/build/lib/versioning · high confidence
JUnit runner adds shutdown hook and JSON thread dumps for debugging
The JUnit test runner now includes a shutdown hook that detects calls to System.exit, printing a stack trace to help users identify and fix improper exit calls. Additionally, on test timeouts, the runner can emit a JSON thread dump to the test outputs directory, providing structured diagnostic information including virtual threads for easier debugging of hangs or deadlocks.
_src/java\tools/junitrunner/java/com/google/testing/junit/runner/internal · high confidence
New @AutoCodec annotation processor for Skyframe serialization
Bazel introduces the @AutoCodec annotation and its accompanying compiler plugin in the skyframe serialization package. This feature allows developers to annotate classes to automatically generate serialization codecs at compile time, supporting features like constructor-based instantiation, field interning, and explicit class-allowance checks. The generated codecs integrate with Bazel's Skyframe build graph serialization, enabling efficient state transfer and memoization for build actions and configuration fragments.
src/main/java/com/google/devtools/build/lib/skyframe/serialization/autocodec · high confidence
New AndroidConfigurationApi exposes Android build settings to Starlark
A new \AndroidConfigurationApi\ interface has been added to the Starlark build API, exposing key Android configuration options such as APK signing methods (V1, V2, and nullable V4), Java 8 desugaring flags, resource shrinking and obfuscation settings, and persistent worker configurations for dex/desugar tools. This allows Starlark rules to query these build-time settings directly, supporting migration and configuration introspection, while the accompanying BUILD file establishes the package with appropriate visibility and dependencies for pure-Starlark concept usage.
src/main/java/com/google/devtools/build/lib/starlarkbuildapi/android · high confidence
New Bazel release and release-notes scripts
The scripts/release directory now contains a complete set of new tools for managing Bazel releases. The release.sh script automates the creation of release branches and tags, handling cherry-picks and pushing to GitHub via SSH, while relnotes.py and relnotes.sh generate structured release notes by parsing git history for RELNOTES tags, categorizing changes by GitHub team labels, and listing external contributors. Common utilities in common.sh support branch detection, version parsing, and text formatting across platforms, and the new BUILD file groups these scripts for Bazel-based testing and execution.
scripts/release · high confidence
New Bazel wrapper script and self-extracting installer infrastructure
The \scripts/packages\ area now includes a new \bazel.sh\ wrapper script that allows users to select Bazel versions via the \USE\_BAZEL\_VERSION\ environment variable or a \.bazelversion\ file, supporting both \.bazelversion\ files without trailing newlines and \MODULE.bazel\ workspace detection. Additionally, a new build infrastructure (\self\_extract\_binary.bzl\, \template\_bin.sh\, and associated BUILD rules) enables the creation of self-extracting installer scripts for Linux, macOS, FreeBSD, and OpenBSD, which bundle the Bazel binary, shell completions (Bash, Zsh, Fish), and support user-local or system-wide installation paths.
scripts/packages · high confidence
New Build Encyclopedia documentation templates
The Build Encyclopedia documentation generator now includes a new set of Velocity templates (be-nav.vm, be-toc.vm, common-definitions.vm, functions.vm, make-variables.vm, overview.vm, rules.vm, single-page.vm) to structure and render reference content. These templates define the sidebar navigation, table of contents, and page layouts for concepts like common definitions, make variables, and functions, as well as rule documentation organized by language-specific and language-agnostic families.
src/main/java/com/google/devtools/build/docgen/templates/be · high confidence
New Build Event Protocol file transports and options
The Build Event Service now supports writing build events to local files in three formats: text, binary (varint-delimited protobuf), and JSON. This is controlled by the new --build\_event\_text\_file, --build\_event\_binary\_file, and --build\_event\_json\_file flags, each of which automatically sets the upload mode to wait\_for\_upload\complete to ensure events are fully written before the build finishes. Users can also control whether paths are converted to URIs via the \\_path\_conversion flags and limit the size of file-set events with --build\_event\_max\_named\_set\_of\_file\_entries.
src/main/java/com/google/devtools/build/lib/buildeventstream/transports · high confidence
New Bzlmod management commands: fetch, mod, and vendor
Bazel introduces three new commands to manage external dependencies under Bzlmod. The \bazel fetch\ command allows users to download external repositories without building targets, supporting options to fetch all dependencies, specific repositories, or only configure repositories. The \bazel mod\ command provides a suite of subcommands (such as \tidy\, \graph\, \deps\, \show\_repo\, and \dump\_repo\_mapping\) to inspect, analyze, and maintain the Bzlmod dependency graph and lockfile. The \bazel vendor\ command downloads external repositories into a local directory for offline builds, with options to vendor specific repositories or lockfile dependencies.
src/main/java/com/google/devtools/build/lib/bazel/commands · high confidence
New C++ examples demonstrating libraries, tests, and runfiles
Added a new set of C++ examples in the examples/cpp directory that demonstrate building C++ binaries, libraries, and tests. The update includes source files for a hello-world binary, a hello-lib library, and a hello-fail test (which intentionally fails to demonstrate test failure behavior). Additionally, a new runfile example was added to show how to access runfiles at runtime using rules\_cc, along with the necessary BUILD rules and a filegroup to manage the example sources.
examples/cpp · high confidence
New CI and release automation scripts
The \scripts/ci\ directory now contains new shell scripts (\build.sh\, \ci.sh\, \build\_status\_command.sh\) and email templates (\rc\_email.txt\, \release\_email.txt\) that automate the Bazel build, test, and release processes. \ci.sh\ enables targeted testing by querying Bazel for affected targets based on git changes. \build.sh\ orchestrates the release workflow, including building artifacts, generating release notes, and publishing to GitHub and Google Cloud Storage (GCS) using the \gh\ CLI and \gcloud\ SDK. It also handles GPG signing of binaries and the creation of APT repositories, with secrets retrieved from Google Cloud Secret Manager.
scripts/ci · high confidence
New Java API interfaces for the C++ Starlark build API
This change introduces a new Java package (src/main/java/com/google/devtools/build/lib/starlarkbuildapi/cpp) containing the interface definitions for the C++ Starlark build API. It exposes core C++ providers and utilities to Starlark rules, including CcInfo, CompilationContext, LinkingContext, CcToolchainInfo, and the cc\_common module. This provides the necessary API surface for Starlark-based C++ rules to access compilation and linking information.
src/main/java/com/google/devtools/build/lib/starlarkbuildapi/cpp · high confidence
New JavaBuilder statistics collection for performance and classpath metrics
The JavaBuilder tool now collects detailed performance statistics during compilation, including total and per-check timing for Error Prone, total and per-processor timing for annotation processors (such as Dagger), and classpath efficiency metrics (transitive, reduced, and minimum classpath lengths). This data is stored in a new \BlazeJavacStatistics\ class, which uses Caffeine for caching and supports auxiliary data attachments via byte arrays to avoid classloading issues across compiler and annotation processor boundaries.
_src/java\tools/buildjar/java/com/google/devtools/build/buildjar/javac/statistics · high confidence
New MerkleTreeUploader interface for remote cache operations
The remote execution module now exposes a dedicated MerkleTreeUploader interface to handle uploading Merkle trees and their associated blobs to the remote cache. This interface defines methods for uploading in-memory blobs, local files (with exec path reporting for lost input detection), and deterministic writers, along with an ensureInputsPresent method to guarantee all tree inputs and metadata are cached. This change introduces a new build target and separates these cache interaction concerns from the broader action execution logic.
src/main/java/com/google/devtools/build/lib/remote/merkletree · high confidence
New Skyframe-based configuration and flag resolution package
A new \skyframe/config\ package has been introduced to centralize build configuration logic. It includes SkyFunctions (\BaselineOptionsFunction\, \BuildConfigurationFunction\, \BuildConfigurationKeyFunction\, \FlagSetFunction\, \ParsedFlagsFunction\, \PlatformMappingFunction\) and value classes (\BuildConfigurationKey\, \BuildConfigurationKeyValue\, \FlagSetValue\, \NativeAndStarlarkFlags\, \ParsedFlagsValue\, \PlatformMappingValue\) that handle baseline options, platform mapping, and the parsing and enforcement of \PROJECT.scl\ configurations. A new \BuildConfigurationKeyBaselineDiffCodec\ is also added to serialize configuration keys as diffs relative to a baseline, optimizing Skyframe cache storage.
src/main/java/com/google/devtools/build/lib/skyframe/config · high confidence
New Starlark API for platforms, constraints, and toolchains
This change introduces a new set of Starlark API interfaces in the platform package, exposing platform configuration, constraint settings and values, toolchain contexts, and toolchain types to Starlark build rules. Users can now access platform labels, constraint collections, and toolchain information via the new \platform\_common\ module and related provider interfaces, with most platform-specific features gated behind the \--experimental\_platforms\_api\ flag.
src/main/java/com/google/devtools/build/lib/starlarkbuildapi/platform · high confidence
New Starlark API interfaces for Apple configuration and platform details
This change introduces new Starlark API interfaces in the \apple\ package to expose Apple-specific build configuration and platform information to Starlark rules. \AppleConfigurationApi\ provides access to the current configuration's single-architecture CPU, platform, Xcode version flag, and minimum OS version flags for iOS, macOS, tvOS, and watchOS. \ApplePlatformApi\ allows rules to inspect platform details such as name, type, device vs. simulator status, and the platform name used in Info.plist files. \ObjcConfigurationApi\ exposes Objective-C specific settings including compilation mode options, device debug entitlements, flags for disallowing SDK framework attributes, default alwayslink behavior, and safe executable stripping options. \DottedVersionApi\ provides a standard interface for comparing dotted version strings. These interfaces form the Starlark-facing layer for Apple build configuration, replacing or supplementing previous fragment-based access patterns.
src/main/java/com/google/devtools/build/lib/starlarkbuildapi/apple · high confidence
New Starlark Config API for transitions, build settings, and toolchains
This change introduces the \starlarkbuildapi/config\ package, exposing a new set of Starlark APIs for build configuration. Users can now define and compose configuration transitions using \transition()\ and \transition.and\_then()\, create new build settings via the \config\ module (including \config.int\, \config.bool\, \config.string\, \config.string\_list\, and the new \config.string\_set\), and interact with toolchain requirements using \config\_common.toolchain\_type()\. The package also exposes \config.exec\ for defining execution transitions and \config\_feature\_flag\ providers for accessing flag values.
src/main/java/com/google/devtools/build/lib/starlarkbuildapi/config · high confidence
New Starlark annotation processor for compile-time validation
Added a new annotation processor (\StarlarkMethodProcessor\) that validates classes annotated with \@StarlarkBuiltin\, \@StarlarkLibrary\, and \@StarlarkMethod\. The processor enforces that \@StarlarkBuiltin\ classes implement \StarlarkValue\ and are not mixed with \@StarlarkLibrary\, ensures \@StarlarkMethod\ methods are public and non-static, and validates that method names are non-empty. This provides immediate feedback on configuration errors during compilation rather than at runtime.
src/main/java/net/starlark/java/annot/processor · high confidence
New Starlark build API interfaces for actions, files, and providers
The \starlarkbuildapi\ module now exposes a comprehensive set of Java interfaces that define the Starlark build API surface, including \ActionApi\ (exposing action metadata like mnemonic, inputs, outputs, argv, args, content, substitutions, and environment), \FileApi\ (providing file properties such as path, extension, and symlink status), \DefaultInfoApi\ (the standard provider for target files and executables), \CommandLineArgsApi\ (the \Args\ object for building command lines), and several provider interfaces like \FilesToRunProviderApi\ and \FileProviderApi\. These interfaces formalize the contract between the Bazel core and Starlark rules, enabling rule authors to inspect action details, manipulate file paths, and access target outputs through a structured, documented API.
src/main/java/com/google/devtools/build/lib/starlarkbuildapi · high confidence
New Starlark configuration field annotation processor
Added a new Java annotation processor (\StarlarkConfigurationFieldProcessor\) that validates methods annotated with \@StarlarkConfigurationField\. This processor enforces that such methods are public, take no arguments, return a \Label\, do not throw exceptions, and are defined within a configuration fragment class, ensuring these invariants hold at runtime for Starlark-exposed configuration data.
src/main/java/com/google/devtools/build/lib/analysis/starlark/annotations/processor · high confidence
New Starlark debugging protocol definitions
Added the Starlark debugging protocol buffer definitions (starlark\_debugging.proto) and the corresponding Bazel build rules to generate Java bindings. This change exposes the debugging interface publicly, enabling external tools like the IntelliJ plugin to communicate with the Bazel Starlark debugger for features such as setting breakpoints, evaluating expressions, and inspecting stack frames.
src/main/java/com/google/devtools/build/lib/starlarkdebug/proto · high confidence
New Starlark repository rule API and context objects
This change introduces the core Starlark API for defining and executing repository rules, including the \repository\_rule\ callable, the \repository\_ctx\ context object, and supporting structures like \repo\_metadata\, \exec\_result\, \repository\_os\, and \path\. Users can now define custom external repositories via Starlark, access their attributes and environment, execute commands, manage file paths, and report reproducibility metadata. The \repository\_ctx\ provides methods for downloading, extracting, patching, and watching files, while \repo\_metadata\ allows rules to declare whether their fetched contents are reproducible and cacheable.
src/main/java/com/google/devtools/build/lib/bazel/repository/starlark · high confidence
New StarlarkEncodable interface for structured text encoding
Users can now implement the new StarlarkEncodable interface to define custom structured text encoding for Starlark values. This interface provides an objectForEncoding method that returns values compatible with both JSON encoding and Proto text encoding, supporting scalars, maps, iterables, and Structures to ensure consistent serialization across different output formats.
src/main/java/net/starlark/java/lib · high confidence
New Windows DLL example with custom build rule
Added a new example in examples/windows/dll that demonstrates building and consuming a Windows DLL using a custom windows\_dll\_library Bazel rule. The example includes a shared library (hellolib) and two consumer binaries: one that links to the DLL via its import library at compile time, and another that loads the DLL dynamically at runtime using LoadLibrary and GetProcAddress.
examples/windows · high confidence
New Windows JNI library for file and process operations
Bazel now includes a new native Windows JNI library (windows\_jni.dll) that handles file system operations (symlinks, junctions, path resolution) and process management (WaitableProcess, stdin/stdout/stderr pipes) via Java Native Interface. This replaces previous Windows-specific implementations with a unified JNI approach, improving reliability for symlink creation, process launching, and error reporting on Windows.
src/main/native/windows · high confidence
New Windows-native file and process management via JNI
Bazel now includes a new Java package for Windows-specific operations backed by a native JNI library. This adds support for managing subprocesses (creation, stdin/stdout/stderr handling, timeouts, and termination), resolving Windows short (8.3) paths to long paths, and creating or detecting junctions and symlinks. These capabilities enable more robust file system interactions and process control on Windows, including handling of long paths and Unicode encoding.
src/main/java/com/google/devtools/build/lib/windows · high confidence
New action implementation classes and build targets in analysis/actions
This change introduces a new BUILD file that defines a set of Java library targets for the analysis actions package, alongside the implementation of several new action classes. Specifically, it adds BuildInfoFileWriteAction for translating workspace status files into language-consumable formats, LazyWriteNestedSetOfTupleAction and LazyWritePathsFileAction for efficiently writing file contents, LocalTemplateExpansionStrategy for performing template expansion locally, PathMappers for handling output path mapping logic, ShellCommand for memory-efficient shell command execution, SpawnActionTemplate for expanding into SpawnActions at execution time, StarlarkAction for Starlark-specific spawn actions, and StrippingPathMapper for stripping paths during execution. These additions provide new capabilities for build metadata generation, template handling, and path mapping within the Bazel analysis phase.
src/main/java/com/google/devtools/build/lib/analysis/actions · high confidence
New analysis testing and coverage infrastructure components
This location introduces core classes for Bazel's analysis testing and coverage systems. AnalysisFailure and AnalysisFailureInfo provide a structured way to capture and propagate analysis-phase errors for testing, while AnalysisTestActionBuilder and AnalysisTestResultInfo enable rules to signal test pass/fail status during analysis. For coverage, CoverageCommon and InstrumentedFilesCollector handle the collection of instrumented files and metadata, supported by actions like BaselineCoverageAction and InstrumentedFileManifestAction to generate empty coverage data and file lists respectively. CoverageConfiguration and CoverageReportActionFactory manage the configuration and creation of coverage report generation actions, and ExecutionInfo allows rules to specify special execution requirements for tests.
src/main/java/com/google/devtools/build/lib/analysis/test · high confidence
New bugreport package for crash handling and reporting
Bazel introduces a new \com.google.devtools.build.lib.bugreport\ package to centralize and improve crash handling. This change adds a \BugReport\ utility and a \BugReporter\ interface to manage logging, sending bug reports, and halting the JVM. It introduces a \Crash\ class to encapsulate throwables with detailed exit codes and a \CrashContext\ to control crash behavior (e.g., halting vs. keeping alive, sending bug reports). The package also includes test utilities like \TestType\ to prevent JVM halts during tests and ensure crash handling is robust and re-entrant.
src/main/java/com/google/devtools/build/lib/bugreport · high confidence
New buildtool components and options for result printing, symlinks, and queries
This change introduces several new classes and options within the buildtool package to refine build output and execution. A new \BuildRequestOptions\ class defines command-line flags including \--jobs\ (with a new max of 5000), \--experimental\_async\_execution\, and \--bust\_action\_caches\. The \BuildResultPrinter\ is updated to provide more detailed build summaries, including per-target output artifacts and improved handling of \--show\_result\ budgets. New utility classes like \ConfigSymlink\ and \OutputDirectoryLinksUtils\ manage convenience symlinks, while \CqueryProcessor\ and \PostAnalysisQueryProcessor\ handle configured target queries. Additionally, \CollectionObjectTraverser\ is added to support memory profiling by traversing common collection types.
src/main/java/com/google/devtools/build/lib/buildtool · high confidence
New concurrency utilities for task management and error handling
The concurrent package introduces several new abstractions to improve build stability and observability. A new ErrorClassifier and ErrorHandler allow tasks to classify exceptions by severity (e.g., critical vs. non-critical) and inject custom handling logic. The package also adds a KeyedLocker for managing mutexes, a CancellableTask for quiescent task cancellation, and a MultiExecutorQueueVisitor to route tasks across separate CPU-heavy and regular thread pools. Additionally, ForkJoinQuiescingExecutor and NamedForkJoinPool provide named, quiescence-aware execution, while AbstractShardedVisitor and various QuiescingFutures manage parallel work tracking and completion.
src/main/java/com/google/devtools/build/lib/concurrent · high confidence
New config\_feature\_flag rule for defining custom build configuration flags
Users can now define custom configuration flags using the new \config\_feature\_flag\ rule. This rule allows specifying allowed values and a default value, and exposes a \FeatureFlagInfo\ provider so other rules can read the flag's current value. The implementation includes transition factories that enable rules to set these flag values via attributes, as well as a tagged trimming transition to manually trim unused feature flags from transitive dependencies based on a \transitive\_configs\ attribute.
src/main/java/com/google/devtools/build/lib/rules/config · high confidence
New critical path analysis component for build metrics
Added a new \CriticalPathComputer\ module in \src/main/java/com/google/devtools/build/lib/metrics/criticalpath\ that computes the critical path in the action graph by subscribing to build events (such as \ActionStartedEvent\, \SpawnExecutedEvent\, and \ActionCompletionEvent\). This component tracks action dependencies and timing to identify the longest chain of dependent actions, providing aggregated statistics including the top 30 slowest components, largest memory consumers, and largest input size consumers. The module is exposed as a \java\_library\ target with dependencies on core action, skyframe, and concurrency libraries, enabling detailed performance profiling of build executions.
src/main/java/com/google/devtools/build/lib/metrics/criticalpath · high confidence
New critical path and phase summary statistics classes
Added CriticalPathStatistics and PhaseSummaryStatistics classes to the profiler statistics package. CriticalPathStatistics now aggregates cumulative durations for trace events categorized as critical path components, while PhaseSummaryStatistics provides a way to track and iterate over execution durations for all profile phases, including relative duration calculations.
src/main/java/com/google/devtools/build/lib/profiler/statistics · high confidence
New development and testing scripts for Bazel
This change introduces a suite of new scripts in the \scripts/\ directory to support Bazel development and testing. It adds \bazel-dev.sh\ to automatically rebuild and run a development version of Bazel, and \get\_workspace\_status.sh\ to provide Git revision and status information during builds. It also includes \generate\_bash\_completion.sh\ and \generate\_fish\_completion.py\ to produce shell completion scripts, along with the underlying completion logic in \bazel-complete-header.bash\ and \bazel-complete-template.bash\. Additionally, it provides \bazel-lockfile-merge.jq\ and its associated test for merging MODULE.bazel.lock files, an \ij.bazelproject\ file for IntelliJ IDEA configuration, and utility scripts like \url-for-sheriff.sh\ for issue tracking.
scripts · high confidence
New diagnostic and introspection commands: aquery, cquery, config, and dump
Bazel introduces four new commands to improve build introspection and debugging. The \aquery\ command analyzes targets and queries the action graph, while \cquery\ performs configurable queries that include configuration details and transition information. The \config\ command displays build configuration details and diffs, supporting both text and JSON output formats. Additionally, the \dump\ command provides deep diagnostics into the Skyframe graph, memory usage, and serialization state.
src/main/java/com/google/devtools/build/lib/runtime/commands · high confidence
New diagnostic and maintenance scripts for build analysis and dependency mirroring
Added \scripts/ctexplain/ctexplain.py\ and its supporting modules (\summary.py\, \ctexplain\_types.py\) to help users analyze how build flags and configuration transitions affect build graph size, with a default 'summary' analysis that reports configurations, targets, and repeated targets. Also added \tools/mirror\_external\_deps.py\ to find and upload external repository URLs missing from mirror.bazel.build by inspecting \bazel mod show\_repo\ output and lockfiles, and \scripts/docs/clr\_converter.py\ to convert command-line-reference HTML to MDX with ParamField components.
python · high confidence
New gRPC remote execution logging interceptor and handlers
Bazel now includes a new logging infrastructure in the remote execution module that captures details of gRPC calls (such as Execute, Read, Write, and Action Cache operations) to a file. This change introduces a LoggingInterceptor and specific handlers for various remote API methods, allowing users to trace and analyze remote build activity with timestamps and request/response metadata.
src/main/java/com/google/devtools/build/lib/remote/logging · high confidence
New high-performance string and type serialization codecs
The Skyframe serialization layer now includes specialized codecs for String, Charset, and Pattern objects. UnsafeStringCodec provides a high-performance serialization path for JDK9+ strings by directly handling their underlying byte arrays and encoding flags, while CharsetCodec and PatternCodec leverage this string codec to serialize their internal state. This change introduces these new leaf-level serialization components to the strings package.
src/main/java/com/google/devtools/build/lib/skyframe/serialization/strings · high confidence
New macOS system anomaly monitoring and file event handling
This change introduces new native JNI components in the Darwin directory to monitor system anomalies and handle file events on macOS. It adds support for tracking thermal pressure, CPU speed, disk space, memory pressure, and system load, as well as monitoring system suspension (sleep/wake). Additionally, it implements a new FSEvents-based file system watcher that supports excluded paths and improves error handling to prevent server crashes on registration failures.
src/main/native/darwin · high confidence
New metrics infrastructure for resource usage and garbage collection
The \metrics\ package now includes new components to collect and report detailed resource and memory data. A new \CgroupsInfoCollector\ gathers process memory usage from cgroups, while \GarbageCollectionMetricsUtils\ provides utilities to identify tenured space and full garbage collection events across various JVM implementations (including ZGC and Shenandoah). These additions support the broader effort to expose granular build metrics, such as peak post-GC heap size and worker resource consumption, via the Build Event Protocol.
src/main/java/com/google/devtools/build/lib/metrics · high confidence
New nested set serialization and caching infrastructure
The \src/main/java/com/google/devtools/build/lib/collect/nestedset\ package now includes a comprehensive set of classes to support serialization, caching, and memory optimization of NestedSets and Depsets. This includes \NestedSetStore\ for persisting fingerprint-to-contents mappings, \NestedSetCodecWithStore\ and \DeferredNestedSetCodec\ for synchronous and asynchronous serialization, \NestedSetInterner\ for deduplicating children arrays using Caffeine caches, and \DigestMap\/\DigestDeduper\ for efficient digest storage and deduplication. The \BUILD\ file defines the \nestedset\ library and its dependencies, while \NestedSetCodecTestUtils\ provides testing utilities for these new serialization components. Also in this area: 7 commits (1 fix) modifying src/main/java/com/google/devtools/build/lib.
src/main/java/com/google/devtools/build/lib/collect/nestedset · medium confidence · unverified
New package metrics module for tracking and exposing build performance data
A new \metrics\ subpackage has been introduced to track and expose detailed package loading performance. This includes new protocol buffers (\PackageLoadMetrics\) to record metrics such as load duration, number of targets, computation steps, transitive loads, package overhead, and glob filesystem operation costs. The module provides a \PackageMetricsModule\ that registers a \PackageLoadingListener\ to capture these metrics during analysis. Users can configure the number of top packages to log via the \--log\_top\_n\_packages\ option, enable recording for all packages with \--record\_metrics\_for\_all\_packages\, and optionally publish these metrics in the Build Event Protocol (BEP) using the \--experimental\_publish\_package\_metrics\_in\_bep\ flag.
src/main/java/com/google/devtools/build/lib/packages/metrics · high confidence
New platform modules for system resource and state monitoring
The \com.google.devtools.build.lib.platform\ package now includes new Blaze modules that monitor system state and resource conditions during builds. These include \SleepPreventionModule\ to prevent the computer from sleeping, \SystemSuspensionModule\ to detect sleep/wake and signal events, \SystemMemoryPressureModule\ to track memory pressure levels, \SystemThermalModule\ to monitor thermal load, \SystemCPUSpeedModule\ to report CPU speed changes, \SystemDiskSpaceModule\ to alert on low disk space, and \SystemLoadAdvisoryModule\ to report system load advisories. These modules register native JNI callbacks via \PlatformNativeDepsService\ and post events to the build reporter, providing users with visibility into system conditions that might impact build performance or stability.
src/main/java/com/google/devtools/build/lib/platform · high confidence
New protobuf schemas for remote output service and execution graph writer
Added \bazel\_output\_service.proto\ and \bazel\_output\_service\_rev2.proto\ to define the API for the Remote Output Service, which assists Bazel in constructing the local output tree by staging, finalizing, and tracking artifacts against a Content Addressable Storage. Also added \execution\_graph\_writer.proto\ to define statistics for the execution graph writer module. These new schemas are registered in \BUILD.tools\ alongside existing protos like \command\_server.proto\ and \failure\_details.proto\.
src/main/protobuf · high confidence
New protocol buffers for analysis cache metadata status and miss reasons
Added new Protocol Buffer definitions and build rules for \AnalysisCacheServiceMetadataStatus\ and \AnalysisCacheServiceMissReason\. These protos introduce enums to track detailed cache hit/miss states, including specific reasons such as \MISS\_REASON\_SCHEDULING\_HASHES\_EXHAUSTED\, \MISS\_REASON\_CACHE\_SATURATED\, and various match status codes (e.g., \MATCH\_STATUS\_DIFFERENT\_CONFIG\), enabling more granular visibility into analysis cache behavior.
src/main/java/com/google/devtools/build/lib/skyframe/serialization/analysis/proto · high confidence
New query functions and streaming engine components
This change introduces several new query functions to the Bazel query language, including \allrdeps\ for computing reverse dependencies within the current universe, \executables\ to filter for executable targets, and \loadfiles\ to identify loaded \.bzl\ files. It also adds \inputs\, \outputs\, and \mnemonics\ for filtering actions in \aquery\ based on regex patterns, alongside \same\_pkg\_direct\_rdeps\ and \siblings\ for package-level dependency analysis. To support these and improve performance, the engine now includes a \StreamableQueryEnvironment\ interface for parallel and streaming operations, a \QueryExpressionMapper\ for transforming query expressions, and new callback classes like \OutputFormatterCallback\ to handle result streaming and formatting.
src/main/java/com/google/devtools/build/lib/query2/engine · high confidence
New regex optimization utility for faster pattern matching
A new \RegexUtil\ class has been added to the \com.google.devtools.build.lib.util.regex\ package to provide optimized string matching for regular expressions. This utility converts \Pattern\ objects into \Predicate\<String\>\ instances that apply specific optimizations: literal patterns are converted to direct string equality checks, patterns ending in a literal suffix are optimized to use \String.endsWith()\, and patterns starting with \.\*\ are adjusted to leverage the Java regex engine's Boyer-Moore optimization. This change improves performance for regex-based filtering operations within the build system.
src/main/java/com/google/devtools/build/lib/util/regex · high confidence
New remote execution utility libraries for async task caching and RxJava interoperability
Bazel introduces a new \remote/util\ package containing core utilities for remote execution. This includes \AsyncTaskCache\ for deduplicating and caching asynchronous task results, \RxFutures\ and \RxUtils\ for interoperating between Guava \ListenableFuture\ and RxJava streams, and \BulkTransfers\ for managing concurrent blob transfers. The package also provides \DigestUtil\ and \DigestOutputStream\ for computing and streaming content digests, and \TracingMetadataUtils\ for attaching request metadata to gRPC calls.
src/main/java/com/google/devtools/build/lib/remote/util · high confidence
New repository event and exception types for external package handling
This change introduces new classes in the repository module to improve external repository management: \ExternalPackageException\ for handling errors when accessing external rules, \RepositoryFetchProgress\ for reporting fetch progress, and \RequestRepositoryInformationEvent\ for requesting definition location details of external repositories. These types are now properly organized in the \com.google.devtools.build.lib.repository\ package with appropriate visibility and dependencies.
src/main/java/com/google/devtools/build/lib/repository · high confidence
New standalone Skyframe-based package loading library
Bazel now exposes a new \PackageLoader\ interface and its \BazelPackageLoader\ implementation in \src/main/java/com/google/devtools/build/lib/skyframe/packages\, allowing external tools and standalone processes to load BUILD files and Starlark modules using Bazel's Skyframe engine without requiring a full server. This library provides a \LoadingContext\ for batch-loading packages and modules, handles repository resolution and metadata via integrated SkyFunctions, and manages its own internal thread pools (which must be shut down via \close()\ to prevent resource leaks).
src/main/java/com/google/devtools/build/lib/skyframe/packages · high confidence
New standalone tools for disk cache garbage collection, execution log parsing, and Windows native launchers
This change introduces several new standalone tools in src/tools. The disk cache garbage collection utility (src/tools/diskcache) allows users to manually run garbage collection on a disk cache with configurable max size and age limits. The execution log tools (src/tools/execlog) provide a parser to inspect and parse Bazel execution logs in binary, JSON, and compact formats, and a converter to transform between these formats, including support for reordering logs for easier diffing. Additionally, the Windows native launcher implementation (src/tools/launcher) is added, providing native C++ launchers for Java, Python, and Bash scripts, replacing the previous reliance on cmd.exe or shell scripts for these tasks on Windows.
src/tools · high confidence
New starlark\_doc\_extract rule for extracting Starlark documentation
The new starlark\_doc\_extract rule allows users to extract documentation for rules, functions, aspects, and providers defined in .bzl or .scl files. It produces ModuleInfo binary proto outputs (and optional textproto) containing documentation for exported symbols, with support for filtering by symbol names, rendering main repository names in labels, and handling global variable doc comments.
src/main/java/com/google/devtools/build/lib/rules/starlarkdocextract · high confidence
New string template expansion engine for Make variables
A new \stringtemplate\ package has been introduced to handle Make-style variable and function expansion within Bazel build files. This change adds \TemplateExpander\, which parses and expands \$(variable)\ and \$(function param)\ syntax, along with \TemplateContext\ and \ExpansionException\ to define how variables are resolved and errors are reported. This provides a dedicated, reusable mechanism for expanding string templates in the analysis phase, replacing or supplementing previous ad-hoc expansion logic.
src/main/java/com/google/devtools/build/lib/analysis/stringtemplate · high confidence
New supplier library package with interruptible and evictable caching
A new \supplier\ library has been added to \src/main/java/com/google/devtools/build/lib/supplier\, introducing a set of interfaces and implementations for value retrieval that support interruption and caching. The package includes \InterruptibleSupplier\ for operations that may throw \InterruptedException\, \MemoizingInterruptibleSupplier\ for thread-safe caching of computed values with an initialization check, \EvictableSupplier\ which uses \SoftReference\ to allow garbage collection of cached values, and \InterruptiblePromptableSupplier\ for asynchronous pre-fetching. This refactors interruptible supplier logic into a reusable library package with explicit visibility rules.
src/main/java/com/google/devtools/build/lib/supplier · high confidence
New test infrastructure module and test\_suite rule implementation
This change introduces a new \rules/test\ package containing the core implementation for the \test\_suite\ rule, allowing users to group and filter tests by tags. It also adds the \StarlarkTestingModule\, which exposes testing infrastructure to Starlark, including the \analysis\_test\ function for defining analysis-time tests and the \execution\_info\ provider for specifying test execution requirements. Additionally, the \TestingSupportRules\ class registers these Starlark bootstraps, while several legacy coverage and instrumentation classes (such as \BaselineCoverageAction\ and \InstrumentedFilesCollector\) are removed as part of the refactoring.
src/main/java/com/google/devtools/build/lib/rules/test · high confidence
New utility classes and refactored build targets in lib.util
The \src/main/java/com/google/devtools/build/lib/util\ package has been restructured with a new \BUILD\ file defining granular Java libraries (e.g., \logging\, \command\, \simple\_log\_handler\) and several new utility classes. \BazelCleaner\ provides a common \java.lang.ref.Cleaner\ instance, while \Blocker\ wraps \jdk.internal.misc.Blocker\ using MethodHandles to support JDK 23+ changes. \ConcurrencyMeter\ introduces an asynchronous, priority-based resource dispenser. \CrashFailureDetails\ and \CustomFailureDetailPublisher\ enhance crash reporting by generating structured \FailureDetail\ messages and writing them to files when the gRPC channel is unavailable. \DescribableExecutionUnit\ and \DetailedExitCode\ centralize command failure descriptions and link exit codes to failure details. \DeterministicWriter\ and \DeterministicWriterInputStream\ enable reproducible byte-stream writing with virtual-thread-backed piped input streams. \CpuResourceConverter\ supports the \--local\_resources=cpu=\ flag, and \CustomExitCodePublisher\ handles abrupt exit status files. \DebugLoggerConfigurator\ manages low-level Java logging verbosity, and \DecimalBucketer\ provides value bucketing for metrics. \ClassName\ and \Classpath\ offer reflection utilities, while \CPU\ detects the host architecture. \FileSystemLock\ adds blocking file system lock support, \FileChannels\ handles low-level channel operations, \SingleLineFormatter\ formats log messages, \ServerLogPathService\ retrieves debug log paths, \ScriptUtil\ handles script generation, and \CommandBuilder\/\CommandUtils\ manage command execution. These changes improve error reporting, resource management, and build system modularity.
src/main/java/com/google/devtools/build/lib/util · high confidence
New zip library and packaging tools for Bazel release archives
This change introduces a new Java-based zip library and associated tools in the \src/java\_tools/singlejar/java/com/google/devtools/build/zip\ directory. The \PackageZipper\ tool provides hermetic packaging for Bazel release archives, ensuring deterministic entry ordering, normalized timestamps, and synchronous file flushing. The \AdjustSfx\ utility adjusts central directory offsets for self-extracting zip archives. The underlying zip library supports Zip64 extensions and removes specific extra fields (extended timestamp and InfoZip New Unix) during writing to ensure compatibility.
_src/java\tools/singlejar/java/com/google/devtools/build/zip · high confidence
Open-source JUnit4 runner components
Added several new source files to the JUnit4 test runner package, including filter implementations (AndFilter, RegExTestCaseFilter, SuiteTrimmingFilter), a utility class for applying filters (Filters), an exception class for dynamic test failures (DynamicTestException), and a wrapper for the JUnit RunNotifier (RunNotifierWrapper). These additions support test filtering, dynamic test handling, and notifier delegation within the open-sourced runner.
_src/java\tools/junitrunner/java/com/google/testing/junit/junit4/runner · high confidence
Open-source Skyframe serialization framework
The Skyframe serialization library is now open-source, providing the core infrastructure for serializing Bazel and Starlark build state. This change introduces a comprehensive set of codecs for Java and Starlark types (including collections, primitives, and Skyframe values), an automatic codec registry, and support for asynchronous deserialization and shared value caching. Users benefit from a standardized, extensible serialization mechanism that enables features like remote analysis caching and build graph persistence.
src/main/java/com/google/devtools/build/lib/skyframe/serialization · high confidence
Open-source the Build Event Service gRPC client implementation
The Build Event Service (BES) gRPC client implementation is now open-source, exposing the \BuildEventServiceClient\ interface and its gRPC transport (\BuildEventServiceGrpcClient\) for external use. This change introduces a stable, annotated interface (\@SkybridgeInterface\) that abstracts the underlying transport, allowing users to publish lifecycle events (such as build enqueued, started, and finished) and stream build events via a bidirectional gRPC stream. The client now relies on standard Java 8 \java.time.Instant\ for timestamps and \java.util.concurrent.Future\ for asynchronous operations, removing previous dependencies on Guava's \ListenableFuture\ and \ImmutableSet\ to reduce external library requirements.
src/main/java/com/google/devtools/build/lib/buildeventservice/client · high confidence
Open-source the C++ include scanning module
The C++ include scanning logic is now available as a standalone, open-source module in the \src/main/java/com/google/devtools/build/lib/includescanning\ package. This change introduces a new \BUILD\ file and a suite of Java classes—including \IncludeParser\, \LegacyIncludeScanner\, \SpawnIncludeScanner\, and \IncludeScannerSupplier\—that handle the extraction of \\#include\ directives from source files. The module supports both in-process parsing and external \grep-includes\ spawns, manages caching for file existence and parsed inclusions, and exposes configuration options for parallelism and remote extraction thresholds.
src/main/java/com/google/devtools/build/lib/includescanning · high confidence
Persistent workers now support sandboxing and the JSON protocol
Bazel's persistent worker system has been refactored to support sandboxed execution and a new JSON communication protocol. Users can now run persistent workers inside a hardened sandbox (controlled by the \--experimental\_worker\_sandbox\_hardening\ flag), which isolates the worker process from the rest of the build environment. Additionally, the worker protocol has been extended to allow JSON as an alternative to the existing Protocol Buffers format, enabled via the \--experimental\_worker\_allow\_json\_protocol\ flag, providing a more flexible and human-readable interface for worker implementations.
src/main/java/com/google/devtools/build/lib/worker · high confidence
Starlark interpreter implementation and CPU profiler support
The Starlark interpreter is now implemented in Java under the \net.starlark.java.eval\ package, providing the core evaluation engine, type system, and built-in modules. This release introduces a new CPU profiler for Starlark scripts, enabled via the \--starlark\_cpu\_profile\ flag, which records execution time per thread and function using native OS signals and outputs profiles in pprof format. The interpreter also adds support for debugging via the \Debug\ API, allowing breakpoints and stepping. Key language features include the \struct\ type, \dict\ and \set\ collections, \tuple\, \float\, and \int\ (with infinite precision), as well as operators like \\|\ and \\|=\ for dicts and sets. The \fail()\ function now accepts a \sep\ keyword argument and can optionally omit stack traces. String methods like \removeprefix\, \removesuffix\, and \split\/\rsplit\ with named parameters are supported. The interpreter also supports lambda expressions, nested \def\ statements, and type annotations for static type checking.
src/main/java/net/starlark/java/eval · high confidence
Starlark syntax and type-checking foundation
The Starlark syntax module has been rebuilt to support a comprehensive static type system and modern language features. Users can now write type annotations on variables and function definitions, use cast expressions, and leverage lambda functions. The parser and resolver now handle complex type expressions—including generics, unions, and callable types—and the new TypeChecker validates these annotations at compile time. Additionally, the language now supports Sphinx-style doc comments on assignments, floating-point literals, and big integers, while load statements are bound file-locally by default to improve module isolation.
src/main/java/net/starlark/java/syntax · high confidence
Support for RepMaxCDC remote cache chunking
Bazel now supports the RepMaxCDC content-defined chunking function for remote cache operations, in addition to the existing FastCDC 2020 support. This change introduces new Java implementations (RepMaxCdcChunker and RepMaxCdcChunkingConfig) and a modular chunking package structure, allowing Bazel to negotiate and use RepMaxCDC parameters advertised by the remote execution server. FastCDC 2020 remains the preferred default for backward compatibility, but RepMaxCDC is now available as a selectable alternative when supported by the server.
src/main/java/com/google/devtools/build/lib/remote/chunking · high confidence
Support for reporting load files as query targets
The query2 compatibility layer now allows 'blaze query' to report load files (BUILD file includes) as targets. This is implemented via a new FakeLoadTarget class in the query2/compat package, which implements the Target interface to represent these synthetic targets. This change enables better visibility and querying of dependency relationships involving load files within the build system.
src/main/java/com/google/devtools/build/lib/query2/compat · high confidence
Windows MSI installer generation for Bazel
Users on Windows can now generate a native .msi installer package for Bazel releases. This change adds a PowerShell build script (make\_msi.ps1) and supporting WiX XML definition that package the Bazel binary, install it to a user-scoped directory, and automatically update the user PATH. The installer enforces a 64-bit Windows 7+ requirement, supports major upgrades for compatible versions, and allows co-existence of incompatible major versions.
scripts/packages/msi · high confidence
genquery rule now supports compressed output
The genquery rule now includes a new \compressed\_output\ boolean attribute (defaulting to false) that allows users to write query results in GZIP format. This helps avoid memory spikes when handling large query outputs by skipping the decompression step during file writing, although Bazel already internally compresses outputs larger than 1 MB.
src/main/java/com/google/devtools/build/lib/rules/genquery · high confidence
Removals
Android rules moved to rules\_android and native rules removed
The native \android\_binary\, \android\_library\, \android\_device\_script\_fixture\, and \android\_host\_service\_fixture\ rules have been removed from Bazel. Users must now use the external \rules\_android\ repository (https://github.com/bazelbuild/rules\_android) for Android build support. The code in this location has been refactored to provide common utilities (\AndroidCommon\), configuration fragments (\AndroidConfiguration\, \BazelAndroidConfiguration\), and Starlark helpers (\AndroidStarlarkCommon\) that support this migration and the new external ruleset.
src/main/java/com/google/devtools/build/lib/rules/android · high confidence
Removal of deprecated native workspace rules
The native workspace rules \http\_archive\, \http\_jar\, \local\_repository\, \new\_local\_repository\, and \maven\jar\ have been removed from Bazel. Users must migrate to the corresponding \new\\*\ variants (such as \new\_http\_archive\, \new\_local\_repository\, and \new\_maven\_jar\) or other supported external dependency mechanisms to fetch repositories and artifacts.
src/main/java/com/google/devtools/build/lib/bazel/rules/workspace · high confidence
Removal of legacy Bazel rule definition classes
The legacy rule definition classes BazelActionListenerRule, BazelExtraActionRule, BazelFilegroupRule, and BazelTestSuiteRule have been removed from the codebase. These files, which previously defined the structure and attributes for the action\_listener, extra\_action, filegroup, and test\_suite rules using the @BlazeRule annotation, are no longer present, indicating a migration away from this specific implementation pattern for these core rules.
src/main/java/com/google/devtools/build/lib/bazel/rules/common · high confidence
Removal of legacy BuildInfoFactory interface
The legacy \BuildInfoFactory\ interface, which was responsible for generating language-specific build-info files and artifacts, has been removed from the analysis package. This change eliminates the underlying mechanism for creating these specific build metadata artifacts, simplifying the build info machinery by discarding the now-unused factory pattern and its associated context and key classes.
src/main/java/com/google/devtools/build/lib/analysis/buildinfo · high confidence
Removal of legacy Fileset implementation
The legacy Fileset rule and its associated internal components have been removed from the build system. This change deletes the \FilesetActionContext\ and its implementation, along with supporting classes such as \FilesetLinks\, \FilesetProvider\, and \SymlinkTraversal\. Users relying on the legacy Fileset mechanism will no longer have access to these features.
src/main/java/com/google/devtools/build/lib/rules/fileset · high confidence
Removal of legacy Gantt chart visualization components
The internal classes responsible for generating Gantt charts from build profiles have been removed from the profiler chart package. This includes the data models (Chart, ChartBar, ChartRow, ChartColumn, ChartLine, ChartBarType, Color), the visitor interface (ChartVisitor), the HTML rendering logic (HtmlChartVisitor), and the factory classes (AggregatingChartCreator, DetailedChartCreator, CommonChartCreator). Users relying on these specific internal charting structures for custom profile analysis or visualization will no longer have access to these components.
src/main/java/com/google/devtools/build/lib/profiler/chart · high confidence
Removal of legacy Objective-C tooling components
The \src/objc\_tools\ directory has been cleaned up by removing several Java-based utilities and their documentation, including \actooloribtoolzip\, \bundlemerge\, \plmerge\, and the core source files for \xcodegen\ (such as \AggregateKey\, \FileReference\, and \LibraryObjects\). This change eliminates the legacy Java implementations for asset compilation, bundle merging, plist processing, and Xcode project generation, aligning with the migration of these tools to scripts and other locations.
_src/objc\tools · high confidence
Removal of legacy Skylark syntax infrastructure
The \src/main/java/com/google/devtools/build/lib/syntax\ package has been stripped of its legacy implementation files, including the core AST node hierarchy (\ASTNode\, \BuildFileAST\), expression and statement nodes (\Argument\, \AssignmentStatement\, \BinaryOperatorExpression\, \DictionaryLiteral\, \DotExpression\, \DictComprehension\), and runtime support classes (\Environment\, \EvalException\, \EvalUtils\, \ClassObject\). This change removes the old Skylark parser and interpreter components, indicating a migration to a new syntax or evaluation engine.
src/main/java/com/google/devtools/build/lib/syntax · high confidence
Removal of legacy build tooling and language rules
This change removes a significant set of legacy build infrastructure from the \base\_workspace/tools\ directory. Specifically, it deletes the \build\_rules\ directory containing early implementations of Go (\go\_rules.bzl\), Java (\java\_rules\_oss.bzl\), Protocol Buffers (\genproto.bzl\), and Python (\py\_rules.bzl\) rules. It also removes the \cpp\ toolchain configuration (\CROSSTOOL\ and \BUILD\), the \go\ tooling (\go/BUILD\, \generate\_test\_main.go\), the \jdk\ toolchain setup (\jdk/BUILD\), and various other support files like \test-setup.sh\ and \genrule\ exports. This cleanup eliminates deprecated or experimental build capabilities for C++, Go, Java, and Python that were previously available in this workspace.
_base\workspace/tools · high confidence
Removal of legacy example workspace code
The example workspace located at base\_workspace/examples has been completely removed. This change deletes all C++ (hello-world, hello-lib), Go (fib, lib1), Java (hello-world, bye-world), and Protocol Buffer (test\_proto) example sources, along with their associated BUILD files, test cases, and supporting scripts. Users relying on these specific examples for reference or integration will need to migrate to the updated example structure provided in the rest of the repository.
_base\workspace/examples · high confidence
Removal of native Java shell rules
The native Java implementations for the \sh\_library\, \sh\_binary\, \sh\_test\, and related shell rule classes have been removed from the Bazel codebase. This change eliminates the legacy Java rule definitions and their associated factory classes, marking the removal of these specific native components from the build system.
src/main/java/com/google/devtools/build/lib/bazel/rules/sh · high confidence
Removal of the bind() workspace rule
The \bind()\ rule, which allowed users to create aliases for existing targets in the virtual \//external\ package, has been removed. The implementation files \Bind.java\ and \BindRule.java\ are deleted, meaning users can no longer use \bind()\ to alias local or external repository targets for use in BUILD files.
src/main/java/com/google/devtools/build/lib/rules/workspace · high confidence
Removal of the web status server static UI files
The static HTML and JavaScript files for the Bazel web status server (index.html, test.html, index.js, and test.js) have been removed from the repository. This change eliminates the client-side interface that previously displayed build test statuses, targets, and execution details via the web status server feature.
src/main/java/com/google/devtools/build/lib/webstatusserver/static · high confidence
Removed legacy query output formatters and options
The \graph\, \xml\, and \proto\ output formatters for \blaze query\ have been removed, along with the \QueryOptions\ class that defined their command-line flags (such as \--output=graph\, \--output=xml\, \--output=proto\, and related sub-options like \graph:factored\ and \xml:line\_numbers\). Users can no longer use these legacy output formats in the query command.
src/main/java/com/google/devtools/build/lib/query2/output · high confidence
API
New Starlark API interfaces for Apple and Objective-C build rules
This change introduces the Starlark API interface definitions for Apple and Objective-C rule implementations, located in the new \src/main/java/com/google/devtools/build/lib/starlarkbuildapi/objc\ package. It adds \AppleCommonApi\, which exposes top-level functions for Apple-specific tasks such as resolving toolchains, accessing host and target environment variables, and handling platform types (including visionOS). It also adds \ObjcProviderApi\, defining the Starlark-accessible fields for the \ObjcProvider\ (such as source files, module maps, and include paths), and \AppleBootstrap\ to register the \apple\_common\ module. These interfaces serve as the contract for Starlark code to interact with the underlying Apple build logic.
src/main/java/com/google/devtools/build/lib/starlarkbuildapi/objc · high confidence
Architecture
Bazel runtime restructured into modular components with new entry point
The Bazel server runtime has been refactored from a monolithic structure into a modular architecture. A new \Bazel.java\ entry point initializes the runtime by registering a comprehensive list of \BlazeModule\ implementations (such as \BazelWorkspaceStatusModule\, \SpawnLogModule\, and \BazelRepositoryModule\) and \BlazeService\ instances defined in \BazelServices.java\. This change introduces a new \BUILD\ file that organizes these components into distinct Java library targets, replacing previous direct wiring. Additionally, the \BazelDiffAwarenessModule\ has been updated to register diff-awareness factories via the \workspaceInit\ hook instead of the legacy \getDiffAwarenessFactories\ method, and the \BazelWorkspaceStatusModule\ has been significantly expanded to include new logic for handling workspace status commands and environment variables.
src/main/java/com/google/devtools/build/lib/bazel · high confidence
Build Event Service module refactoring and option consolidation
The Build Event Service (BES) functionality has been reorganized into a modular structure with dedicated BUILD targets for the core module, options, uploader, and transport. BuildEventServiceOptions are now isolated in their own target, and the module hierarchy is split into a base BuildEventServiceModule and a Bazel-specific BazelBuildEventServiceModule. This change consolidates BES-related options, improves error reporting for transport failures, and introduces new flags like --bes\_system\_keywords for trusted system keywords and --bes\_results\_url for viewing streamed information.
src/main/java/com/google/devtools/build/lib/buildeventservice · high confidence
Decentralize Starlark repository API into a standalone build API package
The Starlark repository API (including \repository\_rule\ and \module\_extension\ definitions) has been moved from the core Bazel analysis package into a new, standalone \starlarkbuildapi/repository\ package. This change introduces a new \BUILD\ file and \RepositoryModuleApi\ interface to define the API contract without depending on Bazel-specific implementation details, and replaces the previous \LicensesProviderImpl\ with a \RepositoryBootstrap\ that registers these Starlark methods. This restructuring supports the goal of making the Starlark build API interfaces portable and potentially standalone from the main Bazel binary.
src/main/java/com/google/devtools/build/lib/starlarkbuildapi/repository · high confidence
Decentralize Starlark semantics into a dedicated BuildLanguageOptions module
The Starlark semantics configuration has been moved from the previous centralized location into a new, dedicated package at \src/main/java/com/google/devtools/build/lib/packages/semantics\. This change introduces \BuildLanguageOptions.java\ as the single source of truth for all command-line flags affecting the build language (such as \--experimental\_bzl\_visibility\, \--experimental\_enable\_first\_class\_macros\, and \--check\_bzl\_visibility\) and \FlagConstants.java\ to manage hardcoded defaults. For users, this represents a structural reorganization of how Bazel manages its internal Starlark configuration, consolidating these options into a lower-level module that is logically distinct from \lib.packages\ and \lib.cmdline\.
src/main/java/com/google/devtools/build/lib/packages/semantics · high confidence
Introduce BlazeService interface and AfterCommandEvent for modular runtime initialization
Bazel's runtime architecture is being refactored to support a Service Component (SC) and Logical Component (LC) model. A new \BlazeService\ interface is introduced, allowing services to declare startup, common, and command-specific options and perform global initialization via \globalInit\. Additionally, a new \AfterCommandEvent\ is added to the event bus, guaranteeing a final cleanup hook that listeners can use for resource teardown after every command, regardless of how it terminated.
src/main/java/com/google/devtools/build/lib/runtime · high confidence
Mobile-install command relocated to runtime.mobileinstall package
The mobile-install command implementation and its associated module have been moved from the bazel package to the new runtime.mobileinstall package. This change reorganizes the command's source files, including the BUILD target and help text, to better align with the runtime command structure while preserving the command's functionality for installing targets to mobile devices.
src/main/java/com/google/devtools/build/lib/runtime/mobileinstall · high confidence
New analysis producer framework for Skyframe dependency resolution
Bazel introduces a new \producers\ package containing a state-machine-based framework for resolving build dependencies. This includes \BuildConfigurationKeyProducer\ for computing configuration keys with platform mappings and flag scoping, \ConfiguredTargetAndDataProducer\ for fetching configured targets and their packages, and \ConfigConditionsProducer\ for resolving \select()\ conditions. These components replace previous monolithic logic with a modular, asynchronous approach to dependency evaluation.
src/main/java/com/google/devtools/build/lib/analysis/producers · high confidence
New platform analysis package with provider and SkyFunction implementations
The \src/main/java/com/google/devtools/build/lib/analysis/platform\ directory has been established as a dedicated package for platform-related analysis logic. This change introduces core provider classes including \PlatformInfo\, \ToolchainInfo\, \ConstraintCollection\, and \PlatformProperties\, which define the data structures for platforms, toolchains, and constraints. It also adds \PlatformFunction\, a SkyFunction that validates platform labels and parses their flags, along with utility classes like \PlatformProviderUtils\ and \PlatformUtils\ to assist in locating providers and building remote execution platform protos. The package is wired via a new \BUILD\ file that exposes these components to the rest of the build system.
src/main/java/com/google/devtools/build/lib/analysis/platform · high confidence
Refactor Bazel rule registration into modular, language-specific components
The monolithic rule registration logic in Bazel has been split into finer-grained, language-specific modules (CcRules, JavaRules, ObjcRules, GenericRules, ToolchainRules) and a central BazelRuleClassProvider. This refactoring replaces the legacy BazelBaseRuleClasses and BazelConfigurationCollection with a modular architecture where each language module registers its own configuration fragments, rule definitions, and Starlark builtins. Users benefit from a cleaner separation of concerns and improved maintainability of the core rule infrastructure.
src/main/java/com/google/devtools/build/lib/bazel/rules · high confidence
Refactor auth and TLS module into separate build targets with new credential and netrc support
The auth and TLS functionality is now split into two distinct build targets: a core 'authandtls' library and a 'grpc' library that depends on it. This separation isolates gRPC-specific components, including the new CallCredentialsProvider interface and GoogleAuthUtils, which now handle gRPC channel creation with support for gRPC service configs, TCP keepalive options, and Unix domain sockets. Additionally, the module introduces a Netrc class to parse and manage .netrc file contents for remote build authentication, and a BasicHttpAuthenticationEncoder for handling Basic HTTP auth tokens.
src/main/java/com/google/devtools/build/lib/authandtls · high confidence
Refactor configuration output data structures into a dedicated package
Extracted the data structures used for generating configuration-related output (such as for the 'blaze config' or 'blaze cquery' commands) into a new package \com.google.devtools.build.lib.analysis.config.output\. This introduces three new classes—\ConfigurationForOutput\, \FragmentForOutput\, and \FragmentOptionsForOutput\—which define the structure and list order for configuration data returned to users. This change also moves static methods for creating \ConfigurationForOutput\ instances from \ConfigCommand\ to the new class to avoid dependency cycles, particularly with \ProtoOutputFormatterCallback\.
src/main/java/com/google/devtools/build/lib/analysis/config/output · high confidence
Refactor remote execution into dedicated common library targets
The remote execution logic in \src/main/java/com/google/devtools/build/lib/remote/common\ has been reorganized into a new \BUILD\ file that explicitly defines \java\_library\ targets for key components such as \action\_key\, \bulk\_transfer\_exception\, \cache\_not\_found\_exception\, and \lost\_inputs\_event\. This change extracts these classes into their own build units with precise dependency declarations, separating them from the general \common\ library. Additionally, new classes like \BlobNotSplittableException\, \LazyFileInputStream\, \LazyFileOutputStream\, and \MaybePathBacked\ are introduced to support lazy file handling and better error reporting during remote cache operations, while \RemoteCacheClient\ and \RemoteExecutionClient\ interfaces are formalized to standardize remote protocol interactions.
src/main/java/com/google/devtools/build/lib/remote/common · high confidence
Refactored query output formatters into a modular package structure
The query output formatting logic has been reorganized into a dedicated \com.google.devtools.build.lib.query2.query.output\ package. This change introduces a new \AbstractUnorderedFormatter\ base class to standardize the handling of unordered target lists and common options across formatters like \BuildOutputFormatter\, \LocationOutputFormatter\, and \GraphOutputWriter\. It also adds a \ConditionalEdges\ utility to track and display \select()\ conditions in graph outputs, and a \PossibleAttributeValues\ helper to optimize the retrieval of attribute values for configurable rules. These components are now managed by a central \OutputFormatters\ registry and a new \BUILD\ file, providing a cleaner separation of concerns for query result presentation.
src/main/java/com/google/devtools/build/lib/query2/query/output · high confidence
Restructured options parser into modular Java libraries with new documentation and policy components
The options parser code in this package has been reorganized into distinct build targets: \options\_internal\ (core parsing logic), \options\ (public API with compile-time processors), \invocation\_policy\ (parsing and enforcing \--invocation\_policy\ settings), and \html\_utils\ (generating HTML documentation for flags). This change introduces new types such as \OptionDefinition\ to centralize option metadata, \OptionDocumentationCategory\ and \OptionEffectTag\ enums to categorize and describe flag effects, and \BoolOrEnumConverter\ to support flags that accept both boolean and enumeration values. It also adds \BooleanStyleOption\ as a marker for boolean-style converters and \GlobalRcUtils\ to manage global RC file logic.
src/main/java/com/google/devtools/common/options · high confidence
Toolchain resolution logic moved to a new skyframe package
The Skyframe implementation for toolchain and execution platform resolution has been reorganized into a new \com.google.devtools.build.lib.skyframe.toolchains\ package. This change introduces dedicated helper utilities for config matching and platform/constraint lookups, along with new SkyFunctions and cycle reporters for registered toolchains and execution platforms, providing a more modular structure for the resolution process.
src/main/java/com/google/devtools/build/lib/skyframe/toolchains · high confidence
Behavioural changes
10839 commits (642 fixes) modifying proguard-parent
A change to existing behaviour in proguard-parent — 10839 commits (642 fixs), 681 files: “Implement the core structure for dynamic configurations”; “Rollforward of https://github.com/bazelbuild/bazel/commit/e06c0acef428795fa83f42f28e6e882786fff26b: Blank out value of crosstool\_top when C++ toolchain resolution is enabled”; “Optimizes performance of ActionFS staging and eliminates ActionFS updates”; and 10507 more (refs \#278, \#31729, \#7715, \#31089, \#31955, …).
proguard-parent · medium confidence · unverified
135 commits (7 fixes) modifying src/main/java/com/google/devtools/build/lib/analysis/configuredtargets
A change to existing behaviour in src/main/java/com/google/devtools/build/lib/analysis/configuredtargets — 135 commits (7 fixs), 5 files: “Propagate analysis-time aspect failures in AnalysisFailureInfo when using --allow\_analysis\_failures”; “bazel packages: decentralize StarlarkSemantics”; “Fully qualify class names in javadoc when there is no other reference”; and 126 more.
src/main/java/com/google/devtools/build/lib/analysis/configuredtargets · medium confidence · unverified
140 commits (5 fixes) modifying src/main/java/com/google/devtools/build/lib/rules/genrule
A change to existing behaviour in src/main/java/com/google/devtools/build/lib/rules/genrule — 140 commits (5 fixs), 3 files: “Fix docs for genrule.local”; “Fix crash with --allow\_analysis\_failures when RuleClass.ConfiguredTargetFactory.create() returns null”; “Add third-party dependency aliases in OSS Bazel and simplify Copybara mappings”; and 135 more.
src/main/java/com/google/devtools/build/lib/rules/genrule · medium confidence · unverified
156 commits (9 fixes) modifying src/main/java/com/google/devtools/build/lib/cmdline
A change to existing behaviour in src/main/java/com/google/devtools/build/lib/cmdline — 156 commits (9 fixs), 14 files: “Add the --experimental\_disable\_external package command line option that (unsurprisingly) disables the //external package”; “bazel packages: decentralize StarlarkSemantics”; “Roll forward of https://github.com/bazelbuild/bazel/commit/f947724c4577f2c69735cb8217b47c74653f9b2d: Use a strong interning strategy for some \NestedSet\ instances. This saves a significant amount of heap in the analysis phase”; and 150 more (refs \#31554, \#2006, \#2, \#19563).
src/main/java/com/google/devtools/build/lib/cmdline · medium confidence · unverified
1644 commits (76 fixes) modifying src/main/java/com/google/devtools/build/lib/rules/java
A change to existing behaviour in src/main/java/com/google/devtools/build/lib/rules/java — 1644 commits (76 fixs), 58 files: “Implement the core structure for dynamic configurations”; “Make the cc\_toolchain libc\_top use the target configuration”; “Add private APIs for starlark \java\_binary\ in bazel”; and 1601 more (refs \#6433, \#3320, \#6415, \#32235).
src/main/java/com/google/devtools/build/lib/rules/java · medium confidence · unverified
1763 commits (108 fixes) modifying (repo-wide)
A change to existing behaviour in (repo-wide) — 1763 commits (108 fixs), 34 files: “Move the docker tests in src/test/docker”; “Bump vanilla JDK from 11.0.1 to 11.0.2”; “Release 7.0.0-pre.20230410.1 (2023-04-17)”; and 1709 more (refs \#31597, \#31183, \#31562, \#32193, \#4, …).
(repo-wide) · low confidence · unverified
1776 commits (165 fixes) modifying tools
A change to existing behaviour in tools — 1776 commits (165 fixs), 216 files: “Move the docker tests in src/test/docker”; “Flip init\_submodules vs recursive\_init\_submodules check”; “Fix typo in JDK auto-configuration error message”; and 1737 more (refs \#31562, \#4625, \#31183, \#5774, \#31378, …).
tools · medium confidence · unverified
2 commits (0 fixes) modifying scripts/aquery\_differ, scripts/ctexplain
A change to existing behaviour in scripts/aquery\_differ, scripts/ctexplain — 2 commits, 13 files: “Remove \requirement\ macro usages and \//third\_party/py/{abseil,frozendict}\”; “Remove unusable or broken content from \tools/\ (\#31157)” (refs \#31157).
_scripts/aquery\differ, scripts/ctexplain · medium confidence · unverified
2267 commits (110 fixes) modifying src/main/java/com/google/devtools/build/lib/analysis
A change to existing behaviour in src/main/java/com/google/devtools/build/lib/analysis — 2267 commits (110 fixs), 112 files: “Add --toolchain\_resolution\_override to allow specifying the toolchain for a given type”; “Implement the core structure for dynamic configurations”; “Add the siblingRepositoryLayout param to PackageIdentifier\#getPackagePath”; and 2206 more (refs \#5256, \#31554, \#31131, \#350, \#1727, …).
src/main/java/com/google/devtools/build/lib/analysis · medium confidence · unverified
2681 commits (116 fixes) modifying src/main/java/com/google/devtools/build/lib/rules/cpp
A change to existing behaviour in src/main/java/com/google/devtools/build/lib/rules/cpp — 2681 commits (116 fixs), 88 files: “Implement the core structure for dynamic configurations”; “Optimizes performance of ActionFS staging and eliminates ActionFS updates”; “Add the siblingRepositoryLayout param to PackageIdentifier\#getPackagePath”; and 2562 more (refs \#3, \#3320, \#31692, \#26757, \#31570, …).
src/main/java/com/google/devtools/build/lib/rules/cpp · medium confidence · unverified
3808 commits (237 fixes) modifying src/main/java/com/google/devtools/build/lib/skyframe
A change to existing behaviour in src/main/java/com/google/devtools/build/lib/skyframe — 3808 commits (237 fixs), 240 files: “Implement the core structure for dynamic configurations”; “Optimizes performance of ActionFS staging and eliminates ActionFS updates”; “Add some logging when Packages are not found in GraphBackedRPP”; and 3721 more (refs \#31096, \#31511, \#31554, \#31315, \#31703, …).
src/main/java/com/google/devtools/build/lib/skyframe · medium confidence · unverified
4 commits (0 fixes) modifying src/main/java/com/google/devtools/build/lib/compress
A change to existing behaviour in src/main/java/com/google/devtools/build/lib/compress — 4 commits, 3 files: “Drop package default\_visibility Copybara transformations and standardize on build\_lib / test\_lib”; “Eliminate synthetic :srcs visibility transforms and declare explicit target visibility”; “Compress Skycache shared values in one shot at zstd level 4”; and 1 more.
src/main/java/com/google/devtools/build/lib/compress · medium confidence · unverified
72 commits (3 fixes) modifying src/main/java/com/google/devtools/build/lib/analysis/extra
A change to existing behaviour in src/main/java/com/google/devtools/build/lib/analysis/extra — 72 commits (3 fixs), 3 files: “Verify that an action is either shareable or discovers inputs, but not both”; “Fully qualify class names in javadoc when there is no other reference”; “Cleanup handling of SpawnAction.executionInfo in serialization”; and 68 more.
src/main/java/com/google/devtools/build/lib/analysis/extra · medium confidence · unverified
98 commits (3 fixes) modifying src/main/java/com/google/devtools/build/lib/skyframe/serialization/testutils
A change to existing behaviour in src/main/java/com/google/devtools/build/lib/skyframe/serialization/testutils — 98 commits (3 fixs), 10 files: “Refactor: Add testutils.Canonizer, Replacing Fingerprinter”; “Add third-party dependency aliases in OSS Bazel and simplify Copybara mappings”; “Refactor Java switch pattern matching in serialization package”; and 93 more.
src/main/java/com/google/devtools/build/lib/skyframe/serialization/testutils · medium confidence · unverified
Action cache refactoring and concurrency improvements
The action cache implementation has been significantly refactored to improve concurrency, reduce memory usage, and modernize the codebase. The internal \Digest\, \Metadata\, and \MetadataHandler\ classes have been removed in favor of \FileArtifactValue\ and related abstractions from the \actions\ package, allowing for more flexible metadata handling. The \PersistentStringIndexer\ has been rewritten to use \AtomicReferenceArray\ and \ReentrantLock\ instead of \ConcurrentHashMap\ and global synchronization, improving thread safety and performance. Additionally, the \CompactPersistentActionCache\ now uses \ConcurrentHashMap\ for its in-memory map and a concurrent queue for disk writes to avoid contention, and the cache version has been bumped to 26 to reflect these structural changes.
src/main/java/com/google/devtools/build/lib/actions/cache · high confidence
Bazel 10 release infrastructure and dependency updates
This change introduces the build infrastructure for the upcoming Bazel 10 release, including a new \bazel\_binary\ rule for packaging the client and embedded tools, and a \builtins\_zip\ rule for hermetic builtins archives. It updates the \MODULE.tools\ lockfile with significant dependency bumps, including \rules\_java\ to v9.9.0, \rules\_cc\ to 0.2.25, \rules\_python\ to 1.9.2, and \protobuf\ to 33.4. Additionally, it enforces a minimum Java compilation runtime version of 21 for prebuilt Java tools and adds a \CheckSunJnuEncoding\ utility to verify UTF-8 encoding on Windows.
src · high confidence
Bazel C++ client refactoring and BSD support
The Bazel C++ client has been refactored to support BSD platforms (FreeBSD and OpenBSD) and improve startup option handling. New platform-specific implementations for \GetSelfPath\ and cache directory resolution are added, including support for \getexecpath\ on OpenBSD 8.0+. The client now uses \.bazelrc\ as the default configuration file name and introduces \BazelStartupOptions\ to manage Bazel-specific flags like \--bazelrc\, \--home\_rc\, \--system\_rc\, and \--workspace\_rc\. Archive extraction logic is moved to \archive\_utils\, and the client now respects \XDG\_CACHE\_HOME\ for output roots on Linux and BSD.
src/main/cpp · high confidence
Bootstrap system now requires JDK 25 and uses a dedicated Java toolchain
The bootstrap scripts in scripts/bootstrap have been updated to target Java 25, with the default JAVA\_VERSION set to 25 in buildenv.sh and compile.sh. A new BUILD.bootstrap file defines a bootstrap\_toolchain that explicitly sets source\_version and target\_version to 25, configures JVM options for tiered compilation, and points to the local JDK. This change enforces a higher minimum JDK requirement for bootstrapping Bazel from source.
scripts/bootstrap · high confidence
Build Event Protocol (BEP) events are refactored to implement the BuildEvent interface
The build event classes in the \buildevent\ package have been restructured to directly implement the \BuildEvent\ interface, replacing the previous indirect mechanism. \BuildStartingEvent\ is now an \@AutoValue\ abstract class that generates the \BuildStarted\ protocol buffer, including detailed metadata such as the JVM version, server PID, hostname, and user. \BuildCompleteEvent\ now extends \BuildCompletingEvent\ to properly propagate detailed exit codes and child event IDs for the \BuildFinished\ stream. New events have been added to expose specific build phases and diagnostics, including \CriticalPathEvent\ for critical path analysis, \StartingAqueryDumpAfterBuildEvent\ for post-build aquery dumps, and \UpdateOptionsEvent\ to track option changes. Additionally, \RunBuildCompleteEvent\ and \TestingCompleteEvent\ now extend \BuildCompletingEvent\ to correctly construct \BuildFinished\ events for \run\ and \test\ commands.
src/main/java/com/google/devtools/build/lib/buildtool/buildevent · high confidence
Build Event Protocol infrastructure refactoring and new upload capabilities
The Build Event Protocol (BEP) module has been restructured with new core interfaces including BuildEvent, BuildEventContext, and BuildEventTransport to better support event chaining, configuration handling, and transport abstraction. A new BuildEventArtifactUploader interface enables asynchronous and streaming uploads of referenced artifacts, while BuildEventProtocolOptions introduces configurable behavior for output group file modes (allowing inline or fileset representation in TargetComplete events), upload retry limits, and fileset expansion. The legacy important\_outputs field is now suppressed by default via the legacy\_important\_outputs option, and the build\_event\_upload\_max\_retries option has been promoted from experimental to stable.
src/main/java/com/google/devtools/build/lib/buildeventstream · high confidence
Centralized platform and CPU constraint definitions
The build system now uses a dedicated set of public \config\_setting\ targets in \src/conditions\ to define supported operating systems (Linux, macOS, Windows, FreeBSD, OpenBSD) and CPU architectures (x86\_64, aarch64, arm64, ppc64le, s390x, mips64, riscv64, loongarch64). This centralization allows other parts of the build to select platform-specific behavior using standardized constraint values rather than ad-hoc configuration flags, improving consistency and maintainability across the toolchain.
src/conditions · high confidence
CompactHashSet serialization support removed and build structure updated
The CompactHashSet class no longer implements Serializable, removing the overhead and complexity of native Java serialization; this change is accompanied by the addition of a new CompactHashSetCodec for serialization needs and the relocation of the class into a dedicated package with explicit BUILD file visibility rules.
src/main/java/com/google/devtools/build/lib/collect/compacthashset · high confidence
Core rules restructured into a modular RuleSet with validation aspect
The core Bazel rules are now organized under a new \CoreRules\ class that implements the \RuleSet\ interface, registering essential components like \TestConfiguration\, \CoverageConfiguration\, and the \TestTrimmingTransitionFactory\ via the \ConfiguredRuleClassProvider\. This change introduces the \ValidateTarget\ aspect, which promotes validation outputs to a top-level group to prevent validation actions from blocking test execution, and establishes a new \BUILD\ structure for the \rules/core\ package to standardize visibility and dependencies.
src/main/java/com/google/devtools/build/lib/rules/core · high confidence
Documentation updates for binary rule attributes
The documentation for the \args\, \env\, and \output\_licenses\ attributes of binary rules has been updated. The \args\ attribute now explicitly supports \$(location)\ substitution and includes a warning that arguments are not passed when running the binary outside of Bazel. The \env\ attribute is documented as applying only to native rules (like \cc\_binary\, \py\_binary\, and \sh\_binary\) and not to Starlark-defined rules, with a note that it is not applied when running outside Bazel. The \output\_licenses\ attribute is marked as deprecated and advises against its use.
src/main/java/com/google/devtools/build/docgen/templates/attributes/binary · high confidence
Documentation updates for common build attributes
The Build Encyclopedia documentation for common attributes has been updated to reflect current Bazel behavior and new capabilities. The \tags\ attribute entry now documents new execution keywords (\no-remote-cache\, \no-remote-cache-upload\, \exclusive-if-local\, \requires-network\, \block-network\, \requires-fakeroot\) and clarifies the behavior of \local\, \manual\, and \exclusive\ tags. New documentation pages have been added for \aspect\_hints\, \compatible\_with\, \exec\_compatible\_with\, \exec\_group\_compatible\_with\, \exec\_properties\, \package\_metadata\, \restricted\_to\, and \target\_compatible\_with\. Existing entries for \features\, \testonly\, \toolchains\, \visibility\, and \deprecation\ have been revised to clarify scoping, default values, and interactions with other system components like the constraint system and sandboxing.
src/main/java/com/google/devtools/build/docgen/templates/attributes/common · high confidence
Extra actions and action listeners are deprecated in favor of aspects
The \extra\_action\ and \action\_listener\ rules are now officially deprecated; users are advised to migrate to aspects. The implementation has been refactored to use the new \Expander\ API for command-line expansion, and \extra\_action\ rules now execute using the \EXEC\ configuration instead of \HOST\. Additionally, the \ActionListener\ and \ExtraActionFactory\ classes now support throwing \InterruptedException\ and \ActionConflictException\ to handle early exits and action conflicts more robustly.
src/main/java/com/google/devtools/build/lib/rules/extra · high confidence
Field-based options are no longer supported
The options processor now rejects the use of fields annotated with @Option. If a user attempts to declare an option as a class field, compilation will fail with the error "Field options not supported anymore. Use method options instead." Users must migrate their option declarations to use method-based options.
src/main/java/com/google/devtools/common/options/processor · high confidence
Graph library refactoring and cleanup
The graph utility library in src/main/java/com/google/devtools/build/lib/graph has been refactored to improve performance and code quality. The new ConcurrentCollectionWrapper class automatically switches between immutable lists, ArrayLists, and CompactHashSets based on collection size to optimize memory and speed. Several unused classes, including Matrix, DotSyntaxException, and LabelDeserializer, have been removed. The DFS algorithm now uses Java 8 streams and CompactHashSet for better efficiency, and DotOutputVisitor has been updated to use a configurable line terminator and consistent 2-space indentation for GraphViz output. Additionally, the LabelSerializer interface is now a functional interface, and copyright headers have been standardized.
src/main/java/com/google/devtools/build/lib/graph · high confidence
In-memory file system removes scope escaping and adopts error codes
The InMemoryFileSystem no longer supports scope escaping, meaning paths cannot escape the file system's root to be re-delegated to other file systems; this capability has been removed along with the associated OutOfScopeFileStatus and OutOfScopeDirectoryStatus classes. Additionally, the file system now uses error codes (Errno) instead of exceptions to represent IO failures, which improves performance on stat calls, and it stores full permission bits for files.
src/main/java/com/google/devtools/build/lib/vfs/inmemoryfs · high confidence
Introduce AttributeTransitionData for attribute transitions
A new record class, AttributeTransitionData, has been added to the packages library to serve as the data carrier for attribute transitions. It encapsulates the attribute map, the execution platform label, and optional analysis data required by TransitionFactory implementations, replacing the previous AttributeTransitionData representation.
src/main/java/com/google/devtools/build/lib/packages · high confidence
Introduce Bazel-based Debian packaging
Debian package building is now handled by Bazel rules in the scripts/packages/debian directory, replacing previous manual or external build methods. The new build system uses rules\_pkg to assemble the .deb package, including binaries, configuration files, and shell completions. It declares runtime dependencies on g++, zlib1g-dev, unzip, and python, while suggesting optional JDKs and bash-completion. The package also generates a changelog using a Python 3 script and supports building both binary and source Debian packages.
scripts/packages/debian · high confidence
Introduce Java record for coverage action arguments
The coverage module now uses a new \CoverageArgs\ record to encapsulate the parameters required for coverage report actions, replacing previous argument structures. This change consolidates inputs such as \BlazeDirectories\, coverage artifacts, the LCOV output artifact, the report generator, and the \ActionOwner\ into a single immutable value object, improving code clarity and type safety for users relying on the internal coverage action infrastructure.
src/main/java/com/google/devtools/build/lib/bazel/coverage · high confidence
Introduce configurable download retries and improved error handling
The repository downloader now supports configurable retry attempts for transient network failures, allowing users to tune resilience against flaky connections. It also introduces more robust error classification, treating HTTP 502 responses and specific socket exceptions as recoverable, while ensuring that TLS errors and unknown hosts are reported as unrecoverable to prevent unnecessary retries. Additionally, the downloader now validates content length mismatches and checksums during the download stream, failing fast if the received data does not match the expected size or hash.
src/main/java/com/google/devtools/build/lib/bazel/repository/downloader · high confidence
Introduce new HTTP-based remote cache client implementation
Adds a new \HttpCacheClient\ implementation for the remote cache, replacing the previous transport layer with a Netty-based HTTP/1.1 client. This change introduces dedicated channel handlers (\HttpDownloadHandler\, \HttpUploadHandler\) and supporting classes (\AbstractHttpHandler\, \IdleTimeoutHandler\) to manage asynchronous uploads and downloads, including support for TLS, credential injection, and specific timeout exceptions for both upload and download operations.
src/main/java/com/google/devtools/build/lib/remote/http · high confidence
JarHelper and JarCreator refactored to use java.nio.file.Path
The buildjar tool's internal jar creation logic has been updated to use java.nio.file.Path instead of String-based paths, improving path handling and Windows compatibility. This change introduces new methods in JarCreator to accept Path objects and byte arrays for adding entries, replaces deprecated string-based APIs, and ensures explicit validation that directory paths exist before processing. The refactoring also standardizes timestamp normalization using LocalDateTime and updates the BUILD file to reflect the new source structure.
_src/java\tools/buildjar/java/com/google/devtools/build/buildjar/jarhelper · high confidence
Java compiler plugin API extended with statistics and error-filtering hooks
The \BlazeJavaCompilerPlugin\ interface has been updated to support runtime statistics collection and finer-grained control over when plugins execute. Plugins now receive a \BlazeJavacStatistics.Builder\ in their \init\ method, allowing them to report performance or auxiliary data during compilation. Additionally, two new methods, \runOnAttributionErrors()\ and \runOnFlowErrors()\, have been added, enabling plugins to opt into running even when specific types of compilation errors (attribution or flow) are present. The previous \PluginException\ class and the \processArgs\ method returning a list of strings have been removed in favor of a void \processArgs\ that accepts separate standard and Blaze-specific option lists.
_src/java\tools/buildjar/java/com/google/devtools/build/buildjar/javac/plugins · high confidence
Java example project migrated to Bazel with resource handling and Error Prone integration
The Java example project has been restructured to use Bazel as the build system, introducing BUILD files that define targets for the main application, a library with custom greeting resources, and a specific target for Error Prone static analysis. The Greeter class was moved to the standard source layout, updated to trim whitespace from the greeting resource file, and made public to support the new build targets. This change enables users to build and run the example using Bazel commands and demonstrates resource inclusion and linting integration.
examples/java-native/src/main · high confidence
Java rules migrated from native Java implementation to Starlark
The native Java rule definitions (java\_library, java\_import, java\_plugin, java\_test) have been removed from the Java source code in favor of Starlark definitions provided by the external rules\_java repository. This change shifts the implementation of core Java build rules from the Bazel binary to the rules\_java package, meaning the native Java rules are now defined and maintained externally rather than in the Bazel source tree.
src/main/java/com/google/devtools/build/lib/bazel/rules/java · high confidence
JavaBuilder compilation engine refactored for worker cancellation and structured diagnostics
The JavaBuilder compilation engine has been refactored to support worker-safe cancellation, allowing in-progress compilations to be stopped cleanly via a new \CancelCompilerPlugin\ and \WorkerCancellationRegistry\. The compilation interface now uses structured \BlazeJavacArguments\ and \BlazeJavacResult\ objects instead of raw command-line strings, enabling better handling of diagnostics, statistics, and input digests. Additionally, the system now supports a custom \-Werror:\ flag to treat specific lint warnings as errors, and diagnostic paths are made hermetic for multiplex sandboxing by stripping working directory prefixes.
_src/java\tools/buildjar/java/com/google/devtools/build/buildjar/javac · high confidence
JavaBuilder refactored with new build structure and VanillaJavaBuilder
The Java compilation tooling has been restructured: the legacy AbstractJavaBuilder and AbstractLibraryBuilder classes have been removed and replaced by a new VanillaJavaBuilder that supports persistent workers and native header outputs, while the main BazelJavaBuilder now relies on a new modular plugin system (AnnotationProcessingModule/Plugin) and updated BUILD file definitions that explicitly declare dependencies on Error Prone, Guava, and Jacoco.
_src/java\tools/buildjar/java/com/google/devtools/build/buildjar · high confidence
Merge ios\_test and experimental\_ios\_test rules
The distinct Bazel-specific \ios\_test\ rule implementation (BazelIosTest and BazelIosTestRule) has been removed, consolidating it with the \experimental\_ios\_test\ functionality. Users relying on the \ios\_test\ rule will now see its behavior aligned with the previous experimental variant, simplifying the testing landscape for iOS applications.
src/main/java/com/google/devtools/build/lib/bazel/rules/objc · high confidence
Migrate Java example to Starlark rules and update package structure
The Java example in this location has been migrated from the legacy OSS rules to the new Starlark-based Java rules (loaded from tools/build\_rules:java\_rules\_skylark.bzl). This change updates the BUILD files to use the new rule definitions, renames the example binaries (e.g., hello-main becomes hello-data), and updates the Java source files to use the new package name com.example.myproject. The example now demonstrates how to use Starlark rules for building Java code, including tests and resource handling.
examples/java-starlark · high confidence
Native filesystem layer refactored with new libraries and BSD support
The native JNI layer has been restructured to improve modularity and platform coverage. A new \latin1\_jni\_path\ library provides optimized, safe Latin1 string handling for file paths, replacing the previous inline conversion logic. A \blake3\_jni\ library has been added to expose the BLAKE3 hashing algorithm via JNI, replacing the older MD5-based implementation. The build system now uses \rules\_cc\ and \@rules\_java//toolchains\ for dependency management, and the library is split into platform-specific components, including a new \unix\_jni\_bsd.cc\ stub that adds support for FreeBSD and OpenBSD while removing the legacy \localsocket.cc\ and \process.cc\ files.
src/main/native · high confidence
New Apple configuration and command-line options for platform and version management
This change introduces the \AppleCommandLineOptions\ and \AppleConfiguration\ classes, centralizing Apple-specific build settings. Users can now explicitly configure minimum OS versions for iOS, watchOS, tvOS, and macOS via new flags (\--ios\_minimum\_os\, \--watchos\_minimum\_os\, \--tvos\_minimum\_os\, \--macos\_minimum\_os\, \--host\_macos\_minimum\_os\), which default to their respective SDK versions if unspecified. The update also adds support for Apple Silicon and visionOS by defining default CPUs for these platforms (e.g., \sim\_arm64\ for visionOS) and introducing \--visionos\_cpus\ and \--watchos\_cpus\ flags for multi-architecture builds. Additionally, the \--experimental\_prefer\_mutual\_xcode\ flag allows users to control whether Bazel prefers the most recent Xcode version available both locally and remotely.
src/main/java/com/google/devtools/build/lib/rules/apple · high confidence
New Starlark Java Build API interfaces
This change introduces a new package of Java interfaces that define the Starlark-facing build API for Java rules. It exposes the \java\_common\ module (with functions like \compile\, \merge\, \pack\_sources\, \run\_ijar\, and \stamp\_jar\), the \JavaInfo\ provider (including \java\_outputs\, \plugins\, and \cc\_link\_params\_info\), and providers for the Java toolchain (\JavaToolchainInfo\), Java runtime (\JavaRuntimeInfo\), and compilation info (\JavaCompilationInfoProviderApi\). It also adds the \JavaModuleFlagsProvider\ for module flags and the \JavaPluginInfo\ provider for annotation processors, while deprecating older output and annotation processing interfaces in favor of the new structured \java\_outputs\ and \plugins\ fields.
src/main/java/com/google/devtools/build/lib/starlarkbuildapi/java · high confidence
New execution infrastructure and compact execution log format
This change introduces a new execution framework in the exec package, featuring a refactored AbstractSpawnStrategy that delegates actual process execution to a new SpawnRunner interface, and a new BlazeExecutor that integrates with the updated ModuleActionContextRegistry and SpawnStrategyRegistry. It also adds a new compact, binary execution log format (CompactSpawnLogContext) alongside the existing expanded formats, which is designed to be more efficient and is published to the build event protocol.
src/main/java/com/google/devtools/build/lib/exec · high confidence
New graphless query engine and refactored query infrastructure
The query engine now includes a new 'graphless' implementation (GraphlessBlazeQueryEnvironment) that provides an alternative execution path for queries, alongside a refactored query infrastructure. This change introduces new core components such as BlazeTargetAccessor for target resolution, LabelVisitor and PathLabelVisitor for dependency traversal, and TargetEdgeErrorObserver for centralized error handling during query evaluation. These changes improve query performance and reliability by optimizing label visitation, handling visibility errors properly, and supporting features like --keep\_going in the graphless query mode.
src/main/java/com/google/devtools/build/lib/query2/query · high confidence
New io package for symlink and filesystem consistency exceptions
A new \com.google.devtools.build.lib.io\ package has been introduced to centralize low-level I/O error handling. This change adds specialized exceptions for symlink issues (\FileSymlinkCycleException\, \FileSymlinkInfiniteExpansionException\) and filesystem inconsistencies (\InconsistentFilesystemException\, \ProcessPackageDirectoryException\), along with Skyframe uniqueness functions to ensure these errors are reported exactly once per build. Users will see more precise error messages when encountering circular symlinks, infinite symlink expansions, or concurrent filesystem modifications.
src/main/java/com/google/devtools/build/lib/io · high confidence
Open-source and promote the internal dynamic execution scheduler
The dynamic execution module, which runs local and remote actions in parallel to speed up incremental builds, is now open-sourced and enabled by default via the \--internal\_spawn\_scheduler\ flag. This change promotes the previously experimental scheduler to a stable feature, deprecating the older \--experimental\_spawn\_scheduler\ flag. Users benefit from improved local resource management through the new \--experimental\_dynamic\_local\_load\_factor\ option, which prevents local execution from overwhelming the machine during large builds, and can now customize local and remote strategies per mnemonic using \--dynamic\_local\_strategy\ and \--dynamic\_remote\_strategy\.
src/main/java/com/google/devtools/build/lib/dynamic · high confidence
Open-source and unify local execution via LocalSpawnRunner
The local execution logic is consolidated into a new, open-source LocalSpawnRunner component located in src/main/java/com/google/devtools/build/lib/exec/local. This change introduces a unified runner that handles local command execution, including environment rewriting via OS-specific LocalEnvProviders (Posix, Windows, Xcode), resource management, and input prefetching. It also adds LocalExecutionOptions to configure behaviors such as graceful SIGTERM handling, lock-free output execution, and crash retries, replacing the previous fragmented strategy implementations.
src/main/java/com/google/devtools/build/lib/exec/local · high confidence
Profiler refactoring and new profiling capabilities
The profiler module has been significantly refactored to improve performance and add new profiling features. Key changes include the introduction of an AsyncProfiler interface for profiling asynchronous operations and virtual threads, and a CommandProfilerModule that enables capturing Java Flight Recorder (JFR) profiles for CPU, wall time, allocation, and lock events via the --experimental\_command\_profile flag. The JSON trace profile writer has been optimized with a dedicated writer thread and slim profiling support to reduce memory usage and contention. Additionally, the profiler now collects system network usage, supports counter series for resource monitoring, and includes various fixes for race conditions and null-safety.
src/main/java/com/google/devtools/build/lib/profiler · high confidence
Proto rules migrate to a Starlark-based provider model
The Java implementation of the proto rules has been refactored to use a new Starlark-native provider system. The legacy \ProtoSourcesProvider\ class has been removed and replaced by \ProtoInfo\, which now exposes proto sources, descriptor sets, and strict dependency information to Starlark build files. This change introduces \BazelProtoCommon\ for Starlark utilities and \ProtoConfiguration\ for managing proto-specific build options (such as \protocopt\ and toolchain labels), enabling proto rules to be implemented and extended primarily in Starlark rather than Java.
src/main/java/com/google/devtools/build/lib/rules/proto · high confidence
Python examples updated for Python 3 and Bazel rules\_python
The Python examples in this location have been migrated to Python 3 syntax (e.g., \print\ function calls) and updated to use the external \@rules\_python\ repository instead of internal skylark rules. A new \runfile\ example was added to demonstrate accessing runfiles via the \python.runfiles\ module, and the build structure was adjusted to include a \filegroup\ for sources.
examples/py · high confidence
Redesign Bazel reference documentation with Starlark API templates and Build Encyclopedia cleanup
The generated Bazel reference documentation has been redesigned for the DevSite platform. New Velocity templates (starlark-category, starlark-library, starlark-overview, starlark-toc) now generate the Starlark API reference with improved structure, including support for 'returns' and 'deprecated' docstring sections, automatic table of contents, and 'create issue'/'view source' buttons. Simultaneously, the legacy Build Encyclopedia templates (be-body, be-footer, be-header) have been removed, reflecting a shift away from the old static HTML format and the removal of obsolete attributes like default\_obsolete.
src/main/java/com/google/devtools/build/docgen/templates · high confidence
Refactor C++ rules into a dedicated module and package
The C++ rule definitions and semantics previously located in \BazelCppRuleClasses.java\ and \BazelCppSemantics.java\ have been removed from this location. They are replaced by a new \BazelCcModule\ class that extends \CcModule\ to provide the Bazel-specific \CcToolchainProvider\, and a new \BUILD\ file that organizes the Java sources into a \java\_library\ target. This change isolates the Bazel-specific C++ module logic from the broader rule class definitions.
src/main/java/com/google/devtools/build/lib/bazel/rules/cpp · high confidence
Refactor Stardoc extraction libraries and improve attribute documentation
The \starlarkdocextract\ module has been restructured into distinct libraries (\ruleinfoextractor\, \moduleinfoextractor\, \starlarkfunctioninfoextractor\) to improve modularity. This change introduces \AttributeInfoExtractor\ to handle rule, macro, and aspect attributes, ensuring that non-Starlark-defined attributes and their visibility settings are correctly documented in the Stardoc output. Additionally, the extraction process now handles unrepresentable default values gracefully by marking them as \\<unrepresentable value\>\ instead of throwing errors, and it explicitly documents implicit attributes like \name\ and \visibility\ for macros and repository rules.
src/main/java/com/google/devtools/build/lib/starlarkdocextract · high confidence
Refactor Starlark API docgen to use Java annotations instead of Stardoc protos
The Starlark API documentation generator in the docgen module has been refactored to derive documentation directly from Java annotations (such as @StarlarkMethod and @Param) rather than relying on Stardoc protocol buffer definitions. This change introduces a new set of documentation model classes (e.g., AnnotStarlarkMethodDoc, AnnotParamDoc) that parse annotation metadata to generate documentation, enabling the system to support 'returns' and 'deprecated' docstring sections and correctly render parameter types for Java-defined Starlark methods.
src/main/java/com/google/devtools/build/docgen/starlark · high confidence
Refactor genrule implementation to use GenRuleBase and new rule definition API
The genrule implementation has been refactored to inherit from the shared GenRuleBase class and utilize the new RuleDefinition API, replacing the previous GenRule factory class and BlazeRule annotations. This change consolidates the core logic for source collection and action registration into GenRuleBase, while the new BazelGenRuleRule definition simplifies attribute handling by removing explicit toolchain dependencies (such as C++ and JDK toolchains) and relying on the base class for common behaviors. Users benefit from a more consistent rule structure and reduced duplication between Bazel and internal implementations, though the specific attribute configuration (like stamp and genrule setup) is now managed through the new builder pattern in BazelGenRuleRule.
src/main/java/com/google/devtools/build/lib/bazel/rules/genrule · high confidence
Refactor info command output handling with InfoItemHandler
The \bazel info\ command now uses a new \InfoItemHandler\ interface to manage how information items are output. This change introduces support for two output modes: direct console printing (STDOUT) and packing results into response extensions for downstream processing (RESPONSE\_PROTO). This allows the info command to be more flexible in how it delivers data, particularly for remote or service-based consumers.
src/main/java/com/google/devtools/build/lib/runtime/commands/info · high confidence
Refactor package loading infrastructure and consolidate options
The package loading subsystem has been restructured to support the new Skyframe-based loading phase. The legacy LoadingPhaseRunner and its internal Options class have been removed, with loading options now consolidated into the new LoadingOptions class. The old PackageCacheBackedTargetPatternResolver has been deleted in favor of a new TargetPatternPreloader interface, and a new AbstractRecursivePackageProvider has been introduced to standardize package retrieval. Additionally, the deprecated --show\_package\_location flag has been removed.
src/main/java/com/google/devtools/build/lib/pkgcache · high confidence
Refactor standalone execution to use new module and strategy APIs
The standalone execution module has been rewritten to use the new module registration APIs, replacing the legacy ActionContextProvider/Consumer pattern with explicit registration of SpawnStrategies and ActionContexts. This change introduces a new StandaloneSpawnStrategy that delegates to a LocalSpawnRunner, removes the now-deleted LinuxSandboxedStrategy and LocalSpawnStrategy classes from this package, and adds dummy C++ include scanning contexts to support local execution without pre-scanning. Users relying on the standalone strategy will see the same local execution behavior, but the underlying implementation is now aligned with the updated execution framework.
src/main/java/com/google/devtools/build/lib/standalone · high confidence
Refactored Bazel server into modular components with gRPC command handling and idle task management
The Bazel server implementation has been restructured into distinct, finer-grained modules to improve maintainability and separation of concerns. The new architecture introduces a dedicated CommandManager to track and interrupt running commands, an IdleTaskManager to execute background cleanup tasks (such as garbage collecting stale install bases via InstallBaseGarbageCollector) during idle periods, and a ServerWatcherRunnable that monitors idleness and system memory pressure to trigger automatic shutdowns. Communication is now handled by a new gRPC-based command server (GrpcCommandServerImpl) which replaces legacy protocols, featuring robust interrupt handling and terminal size updates. Additionally, server lifecycle management is enhanced with a PidFileWatcher to detect conflicts and a ShutdownHooks class to coordinate orderly cleanup operations.
src/main/java/com/google/devtools/build/lib/server · high confidence
Refactored collection utilities and added new path-matching data structures
The \collect\ package has been restructured to improve performance and reduce memory overhead. Several legacy classes (\ImmutableIterable\, \ImmutableSortedKeyMap\, \IterablesChain\) were removed, and \CollectionUtils\ was simplified to rely on Guava and a new \CompactHashSet\. New capabilities include \ConcurrentIdentitySet\ for thread-safe, memory-efficient identity-based deduplication, \PathFragmentPrefixTrie\ for checking path inclusions/exclusions, and \SimpleTargetPatternMatcher\ for matching target patterns. Additionally, \EquivalenceRelation\ was modernized to use lambda expressions.
src/main/java/com/google/devtools/build/lib/collect · high confidence
Refactored configuration transitions into a modular package with new factory and transition types
The configuration transition logic has been reorganized into a dedicated \analysis.config.transitions\ package, introducing a factory-based architecture (\TransitionFactory\) to support dynamic transition creation. This change adds new transition types including \NoConfigTransition\ for rules that do not require configuration (reducing build graph bloat), \ComposingTransitionFactory\ for sequencing multiple transitions, and \ComparingTransition\ for debugging. It also standardizes the core interfaces (\ConfigurationTransition\, \PatchTransition\, \SplitTransition\) and exposes these transition factories to Starlark via \StarlarkExposedRuleTransitionFactory\, enabling rule authors to define custom configuration behaviors.
src/main/java/com/google/devtools/build/lib/analysis/config/transitions · high confidence
Refactored event handling architecture with extended handlers and structured properties
The event system in \src/main/java/com/google/devtools/build/lib/events\ has been significantly restructured to support more flexible and structured reporting. The core \EventHandler\ interface is now extended by \ExtendedEventHandler\, which introduces a \post(Postable)\ method for sending structured events and a \cleanup()\ lifecycle method. The \Event\ class has been redesigned to replace the previous \tag\-based filtering with a generic \properties\ map, allowing events to carry arbitrary typed data via \withProperty()\. Additionally, \EventKind\ has been updated to include a new \FATAL\ kind for unrecoverable crashes, and the \ErrorSensingEventHandler\ now supports tracking specific error properties. Several legacy classes like \EventSensor\, \ExceptionListener\, and \DelegatingOnlyErrorsEventHandler\ have been removed as part of this cleanup.
src/main/java/com/google/devtools/build/lib/events · high confidence
Refactored external repository handling with new core abstractions
The repository module has been significantly refactored to improve reliability and maintainability. The old, monolithic \HttpArchiveFunction\ and \DecompressorFactory\ classes have been removed and replaced with a new, modular architecture. This includes new \RepoRule\ and \RepoDefinition\ classes to represent repository rules and their fully-loaded definitions, and a new \AttributeUtils\ class to handle type-checking and validation of repository attributes. Additionally, a new \DigestWriter\ class manages the creation and validation of repository marker files to ensure consistency between the filesystem state and the repository definition, while \RepositoryResolvedEvent\ now provides detailed feedback on any modifications made by repository rules to achieve reproducibility.
src/main/java/com/google/devtools/build/lib/bazel/repository · high confidence
Refactored terminal output and I/O utilities for better structure and capabilities
The \src/main/java/com/google/devtools/build/lib/util/io\ package has been reorganized into lighter, distinct targets (\io\, \io-proto\, \out-err\) to improve build modularity. This change introduces a new \AnsiTerminalWriter\ interface to standardize terminal output with semantic highlighting (e.g., \okStatus\, \failStatus\), replacing direct ANSI escape usage in many places. New wrapper classes like \LineWrappingAnsiTerminalWriter\ and \PositionAwareAnsiTerminalWriter\ provide predictable line breaking and position tracking for terminal output. The package also adds \MessageInputStream\ and \MessageOutputStream\ abstractions for type-safe protobuf message handling, including binary and JSON formats, and introduces \AsynchronousMessageOutputStream\ for async protobuf writes. Additionally, \FileOutErr\ methods have been renamed (e.g., \getOutputFile\ to \getOutputPath\) to better reflect that they return \Path\ objects, and new methods like \outAsBytes\ and \errAsBytes\ allow direct access to captured output as byte arrays.
src/main/java/com/google/devtools/build/lib/util/io · high confidence
Remote options restructured into dedicated package with new configuration capabilities
The remote execution and caching configuration options have been moved into a dedicated \src/main/java/com/google/devtools/build/lib/remote/options\ package, introducing new classes like \CommonRemoteOptions\, \RemoteOptions\, and \RemoteStartupOptions\ to organize settings. This change introduces several new capabilities: a configurable remote cache TTL (\--experimental\_remote\_cache\_ttl\), a remote repository contents cache for reproducible rules (\--experimental\_remote\_repo\_contents\_cache\), and explicit modes for remote output downloading (\RemoteOutputsMode\) and build event upload (\RemoteBuildEventUploadMode\). Existing flags have been renamed or graduated (e.g., \--remote\_cache\ replacing \--remote\_http\_cache\, \--remote\_proxy\ replacing \--remote\_cache\_proxy\, and \--remote\_cache\_async\ becoming non-experimental), and new controls for connection limits (\--remote\_max\_connections\, \--remote\_max\_concurrency\_per\_connection\) and remote downloader fallback behavior have been added.
src/main/java/com/google/devtools/build/lib/remote/options · high confidence
Renamed Starlark Java binary to 'starlark' and updated entry point
The standalone Starlark interpreter binary has been renamed from 'bazel' to 'starlark', with the main class updated to net.starlark.java.cmd.Main. This change is reflected in the new BUILD file which defines the java\_binary target as 'starlark' and updates the package structure from com.google.devtools.starlark to net.starlark.java.cmd.
src/main/java/net/starlark/java/cmd · high confidence
Rewritten subprocess execution and Windows support
The shell package has been refactored to introduce a new \Subprocess\ abstraction and \SubprocessBuilder\, replacing the legacy \Shell\ and \Killable\ interfaces. This change adds a new JNI-backed \WindowsSubprocessFactory\ for native Windows process management, introduces \ExecutionStatistics\ to expose resource usage data (such as user/system time and memory) from spawned commands, and removes the deprecated \Shell\, \Killable\, and \KillableObserver\ classes. Users benefit from more robust process handling, including proper timeout support, interrupt propagation, and detailed execution metrics.
src/main/java/com/google/devtools/build/lib/shell · high confidence
Simplify SIGINT handler implementation and update build visibility
The signal handling module now uses a lambda expression for the SIGINT handler, replacing the previous anonymous inner class to reduce boilerplate. The build configuration has been updated to explicitly declare visibility rules for the new \signal\ java\_library and its source filegroup, aligning with standardized visibility practices.
src/main/java/com/google/devtools/build/lib/server/signal · high confidence
SingleJar now merges reference.conf files and exposes internal classes for extensibility
The SingleJar tool now correctly merges \reference.conf\ configuration files from multiple JARs into a single output, preventing duplicate or missing configuration entries. Additionally, the \ConcatenateStrategy\ constructor is now public, allowing external code to extend or customize the concatenation logic, and the \ZipEntryFilter\ interface includes a new \skipEmpty()\ method to control whether empty merged results are written to the output.
_src/java\tools/singlejar/java/com/google/devtools/build/singlejar · high confidence
Skyframe engine refactoring and new diagnostic capabilities
The Skyframe evaluation engine has been refactored to improve performance and stability, introducing new base classes like AbstractInMemoryNodeEntry and AbstractSkyFunctionEnvironment to consolidate common logic. The system now supports CPU-heavy key annotation via the CPUHeavySkyKey interface and includes a new ChangePrunableNodesFinder to optimize incremental builds by identifying nodes that can be safely pruned. Additionally, new diagnostic features have been added, including the ability to dump the Skyframe function graph and specific keys, as well as enhanced graph inconsistency reporting to help debug complex build states.
src/main/java/com/google/devtools/build/skyframe · high confidence
Strict Java Deps plugin refactored with new modes and exemptions
The Strict Java Deps plugin has been refactored to support distinct strictness and unused-dependency modes (StrictDepsMode and UnusedDepsMode) and to exempt specific annotation processors like Dagger and Hilt from strict dependency checks. The implementation now uses java.nio.file.Path instead of string-based paths for classpath entries, consolidates exemption logic, and updates the dependency tracking to use immutable collections and the Javac API more directly, improving reliability and diagnostic accuracy for users relying on strict dependency enforcement.
_src/java\tools/buildjar/java/com/google/devtools/build/buildjar/javac/plugins/dependency · high confidence
Support for constraint fulfillment and refined environments in select() expressions
The constraint checking system in the analysis phase now supports two key capabilities: environment fulfillment and refined environments. Rules can now declare that an environment 'fulfills' another (via the new \fulfills\ attribute on \environment\ rules), allowing a dependency to be valid if the provider's environment satisfies the consumer's requirement even if they are not identical. Additionally, constraint checking now works correctly with \select()\ expressions by checking that the union of selectable dependencies supports the rule's static environments, and then refining the supported environments based on which dependencies are actually chosen. This prevents false positives when a rule's dependencies are split across different configurations.
src/main/java/com/google/devtools/build/lib/analysis/constraints · high confidence
Turbine native image build configuration and Windows UTF-8 support
The build configuration for the Turbine native image in the Java tools has been updated to ensure reliable operation on Windows by forcing a UTF-8 code page via an application manifest, and to improve performance and compatibility through Profile-Guided Optimization (PGO) instrumentation, a 512 MB minimum heap size, and architecture-specific compiler flags (x86-64-v2 and armv8-a).
_src/java\tools/buildjar/java/com/google/devtools/build/java · high confidence
Unified JNI library loading via JniLoader
The platform-specific JNI loading logic (previously split into UnixJniLoader and WindowsJniLoader) has been consolidated into a single JniLoader class. This new component bundles the native libraries (libunix\_jni.so, libunix\_jni.dylib, windows\_jni.dll) as Java resources and loads them at static initialization time. If the library fails to load, the error is captured and can be retrieved via getJniLoadError(), allowing the build system to handle the failure gracefully rather than crashing immediately.
src/main/java/com/google/devtools/build/lib/jni · high confidence
Unix filesystem implementation refactored into a new package with updated service interfaces
The Unix filesystem code has been reorganized into the new \com.google.devtools.build.lib.unix\ package. This change introduces a \NativePosixFilesService\ interface to abstract POSIX system calls (such as stat, chmod, and readlink) and replaces the legacy JNI-based \FilesystemUtils\ and \FileStatus\ classes with a new \UnixFileSystem\ implementation that uses \PathFragment\ for paths. Additionally, the \ProcMeminfoParser\ now prioritizes the kernel's \MemAvailable\ metric for memory reporting, and the deprecated \AF\_UNIX\ socket communication classes (\LocalClientSocket\, \LocalServerSocket\) have been removed.
src/main/java/com/google/devtools/build/lib/unix · high confidence
Updated documentation for common Bazel build attributes
The documentation templates for the \data\, \deps\, \srcs\, and \licenses\ attributes have been updated to clarify their semantics and usage. The \data\ attribute description now explicitly explains how runfiles and default outputs are collected and propagated to executables. The \deps\ attribute documentation has been refined to better distinguish between code dependencies and runtime data, while the \srcs\ attribute description clarifies the handling of file extensions and rule targets. Additionally, the \licenses\ attribute documentation now explicitly warns that it is part of a deprecated API and should not be used.
src/main/java/com/google/devtools/build/docgen/templates/attributes/typical · high confidence
aquery output formatting and options refactored to support new output modes and content inclusion
The aquery command's output handling has been restructured to support additional output formats and content inclusion options. Users can now use the --output flag to select from text, textproto, proto, streamed\_proto, and jsonproto formats. New flags allow including file write contents (--include\_file\_write\_contents), parameter file contents (--include\_param\_files), and pruned inputs (--include\_pruned\_inputs). The --prune\_unused\_actions flag has been added to filter the action graph to only reachable actions. The output callback system has been refactored into separate classes for text and proto output, with parallel processing support for streamed proto outputs.
src/main/java/com/google/devtools/build/lib/query2/aquery · high confidence
filegroup now supports exporting specific output groups and includes data dependencies in runfiles
The filegroup rule now accepts an optional \output\_group\ attribute, allowing users to gather artifacts from a specific output group of its dependencies rather than the default set. Additionally, when the \--incompatible\_filegroup\_runfiles\_for\_data\ flag is enabled, filegroups will include the runfiles of their \data\ dependencies in their own runfiles, ensuring that transitive data dependencies are correctly propagated when the filegroup is used in another rule's data section.
src/main/java/com/google/devtools/build/lib/rules/filegroup · high confidence
Test coverage
15541 commits adding/updating tests in src/test; Add JUnit runner testbed for integration testing; Add Java coverage test infrastructure; Add internal JUnit4 runner infrastructure classes; Added Java test examples for Bazel integration; Added SpiedFileSystem test utility for VFS testing; Added consistency tests for StarlarkSemantics serialization and flag mapping; Added end-to-end test utility for BazelPackageLoader; Added integration tests for the JUnit runner; Added test data for Java/Proto dependency checking; Added test utilities for JUnit runner sharding; Added tests for JUnit 4 regex test filtering; Added tests for JUnit runner sharding components; Added tests for JacocoLCOVFormatter path handling and integration runner; Added tests for VanillaJavaBuilder and Javac work directory stripping; Added tests for package metrics collection and configuration; Added tests for the Java import dependency checker; Added unit tests for JUnit runner model components; Added unit tests for the JUnit 4 Bazel runner; Added unit tests for the singlejar zip library components; Documented test rule attributes in the Build Encyclopedia; Expanded test data for import\_deps\_checker; JUnit runner utility library open-sourced with build targets and refactored dependencies; New Starlark API interfaces for testing and coverage infrastructure; New test utilities for directory listings and options; New test utilities for mocking language toolchains and platform constraints; New testing utilities for Options converters; SingleJar tests migrate to Truth and update build configuration.
Dependencies
Update Python dependencies and add ProGuard 6.2.2
Python dependencies have been updated: requests bumped to 2.33.0, idna to 3.15, and urllib3 to 2.7.0. Additionally, ProGuard 6.2.2 binaries and sources are now checked in, including Gradle and Maven build scripts and example configurations for Android, Java, and Scala projects.
(dependencies) · high confidence
Housekeeping
Noise
The provided diff contains only new source files (BUILD, ShardingFilterFactory.java, WeightStrategy.java) and does not include any test code. Therefore, despite the mechanical classification, this entry is Noise as it describes infrastructure and API definitions rather than added tests.
_src/java\tools/junitrunner/java/com/google/testing/junit/runner/sharding/api · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 60 → 62 (+2.0)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.
Lenses
- Code Health 65 → 63 (-2.7)
- Architecture 91 → 98 (+6.9)
- Maturity 55 → 58 (+2.6)
- Readiness 60 → 60 (-0.6)
- Security 67 → 74 (+7.7)
- Performance 71 → 85 (+13.7)
Resolved (485)
- ActionExecutionFunction.addDiscoveredInputs (cognitive 27) (src/main/java/com/google/devtools/build/lib/skyframe/ActionExecutionFunction.java)
- ActionExecutionFunction.addDiscoveredInputs (cyclomatic 16) (src/main/java/com/google/devtools/build/lib/skyframe/ActionExecutionFunction.java)
- BuildConfigurationKeyProducer.resetFlags (cognitive 17) (src/main/java/com/google/devtools/build/lib/analysis/producers/BuildConfigurationKeyProducer.java)
- BuildOptionsScopeFunction.compute (cognitive 29) (src/main/java/com/google/devtools/build/lib/skyframe/BuildOptionsScopeFunction.java)
- BuildOptionsScopeFunction.compute (cyclomatic 16) (src/main/java/com/google/devtools/build/lib/skyframe/BuildOptionsScopeFunction.java)
- Change coupling: RunfilesSupport.java ↔ PyBuiltins.java (src/main/java/com/google/devtools/build/lib/analysis/RunfilesSupport.java)
- ClassTooLong: OptionsParser (src/main/java/com/google/devtools/common/options/OptionsParser.java)
- ConfiguredTargetFactory.createConfiguredTarget (cognitive 22) (src/main/java/com/google/devtools/build/lib/analysis/ConfiguredTargetFactory.java)
- ConfiguredTargetFactory.createConfiguredTarget (cyclomatic 16) (src/main/java/com/google/devtools/build/lib/analysis/ConfiguredTargetFactory.java)
- Directory.syncTreeRecursively (cyclomatic 16) (src/main/java/com/google/devtools/build/lib/exec/SymlinkTreeHelper.java)
- Documentation: no project overview (docs/command-line-reference-suffix.html)
- Duplicated block (10 lines × 2) (src/main/java/net/starlark/java/annot/processor/StarlarkMethodProcessor.java)
- Duplicated block (11 lines × 2) (src/main/java/com/google/devtools/build/lib/skyframe/serialization/MapHelpers.java)
- Duplicated block (13 lines × 2) (src/main/java/com/google/devtools/build/lib/analysis/LocationExpander.java)
- Duplicated block (14–16 lines × 2) (src/main/java/com/google/devtools/build/lib/skyframe/BzlCompileFunction.java)
- Duplicated block (15 lines × 2) (src/main/java/com/google/devtools/build/lib/analysis/starlark/StarlarkRuleClassFunctions.java)
- Duplicated block (16 lines × 2) (src/main/java/com/google/devtools/build/lib/analysis/RunfilesSupport.java)
- Duplicated block (18 lines × 2) (src/main/java/com/google/devtools/build/lib/skyframe/BuildOptionsScopeFunction.java)
- Duplicated block (19 lines × 2) (src/main/java/com/google/devtools/build/lib/skyframe/toolchains/RegisteredExecutionPlatformsCycleReporter.java)
- Duplicated block (20–22 lines × 2) (src/main/java/com/google/devtools/build/lib/skyframe/toolchains/RegisteredExecutionPlatformsCycleReporter.java)
- …and 465 more
New (477)
- Boundary-crossing change coupling: RemoteExecutionService.java ↔ ExecutionServer.java (src/main/java/com/google/devtools/build/lib/remote/RemoteExecutionService.java)
- Change coupling: BazelRepositoryModule.java ↔ LocalRepoContentsCache.java (src/main/java/com/google/devtools/build/lib/bazel/BazelRepositoryModule.java)
- Change coupling: ByteStreamBuildEventArtifactUploader.java ↔ RemoteModule.java (src/main/java/com/google/devtools/build/lib/remote/ByteStreamBuildEventArtifactUploader.java)
- Change coupling: CcModule.java ↔ LtoBackendArtifacts.java (src/main/java/com/google/devtools/build/lib/rules/cpp/CcModule.java)
- Change coupling: LockFileModuleExtension.java ↔ ModuleExtensionContext.java (src/main/java/com/google/devtools/build/lib/bazel/bzlmod/LockFileModuleExtension.java)
- ClassTooLong: ArtifactCodecs (src/main/java/com/google/devtools/build/lib/actions/ArtifactCodecs.java)
- ClassTooLong: InMemoryFileSystem (src/main/java/com/google/devtools/build/lib/vfs/inmemoryfs/InMemoryFileSystem.java)
- ClassTooLong: JavaStarlarkCommon (src/main/java/com/google/devtools/build/lib/rules/java/JavaStarlarkCommon.java)
- ClassTooLong: UploadManifest (src/main/java/com/google/devtools/build/lib/remote/UploadManifest.java)
- ConfiguredTargetFactory.createNonRuleConfiguredTarget (cognitive 19) (src/main/java/com/google/devtools/build/lib/analysis/ConfiguredTargetFactory.java)
- Documentation: no build, run or usage example (README.md)
- Duplicated block (11 lines × 2) (src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandDispatcher.java)
- Duplicated block (13–16 lines × 2) (src/main/java/com/google/devtools/build/lib/rules/cpp/CcStarlarkInternal.java)
- Duplicated block (14 lines × 2) (src/main/java/net/starlark/java/eval/CallUtils.java)
- Duplicated block (14–15 lines × 2) (src/main/java/com/google/devtools/build/lib/analysis/actions/StarlarkAction.java)
- Duplicated block (17 lines × 2) (src/main/java/com/google/devtools/build/lib/remote/util/RxFutures.java)
- Duplicated block (8 lines × 16) (src/main/java/com/google/devtools/build/lib/bazel/debug/WorkspaceRuleEvent.java)
- Duplicated block (8 lines × 8) (src/main/java/com/google/devtools/build/lib/skyframe/serialization/DictCodec.java)
- Edited copies of one member (3 members, 10+ corresponding lines) (src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java)
- Edited copies of one member (3 members, 12+ corresponding lines) (src/main/java/com/google/devtools/build/lib/packages/StarlarkInfoWithSchema.java)
- …and 457 more
Changes since last survey
- 300 commits — 278 feature/other, 22 fixes
By area
- src/main — 208 commits
- src/test — 47 commits
- (root) — 16 commits
- src/tools — 4 commits
- docs/versions — 2 commits
- scripts/bash_completion_test.sh — 2 commits
- scripts/ci — 2 commits
- scripts/release — 2 commits
- (repo) — 1 commit
- .bazelci/postsubmit.yml — 1 commit
- .bazelci/presubmit.yml — 1 commit
- .github/workflows — 1 commit
- docs/configure — 1 commit
- docs/extending — 1 commit
- docs/install — 1 commit
- docs/start — 1 commit
- scripts/docs — 1 commit
- scripts/url-for-sheriff.sh — 1 commit
- src/BUILD — 1 commit
- src/create_java_tools_release.sh — 1 commit
Notable commits
- fix: Bazel Docs: Fix <var> tags and entity-escaped braces in inline code in docs2mdx (#32350)
- fix: Don't report a bug when a target pattern fails with another exception (#32528)
- fix: Fix StringEncoding conversions in Bzlmod and repository fetching (#32112)
- fix: Fix StringEncoding conversions in query and Starlark tooling (#32115)
- fix: Fix .ar extraction of BSD long names with NUL padding (#32592)
- fix: Fix action output handle leak on build/action cancellation (#32058)
- fix: Fix crash in py_internal.create_repo_mapping_manifest when external repos are disabled.
- fix: Fix crashes from unsupported SkyKey types in exec platform and toolchain cycle reporters.
- fix: Fix exclusive-if-local limiting concurrency on remote exec (#29758)
- fix: Fix flakiness in HashMapCodecTest.
- fix: Fix flaky ReaderPreferringReadWriteLockTest (#31940)
- fix: Fix framework header resolution in LegacyIncludeScanner.
- fix: Fix help text of bazel mod --output (#32246)
- fix: Fix offline distfile bootstrap and determinism tests with rules_python 2.2.0
- fix: Fix stale flag name in scrubbing comments (#32534)
- fix: Fix stale rationale for two suppressed javac diagnostics in BlazeJavacMain.
- fix: Fix swapped VerificationFunction parameters in ArrayListCodecTest.
- fix: Fix the documentation of repository_rule(local = ...) (#31823)
- fix: Fix three causes of spurious shell integration test failures (#32056)
- fix: Remote: Fix upload cancellation test flake (#31283)
- …and 280 more
Architecture
- Unchanged — 0 containers · 2 contexts · 0 edges
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
bazelbuild/bazel was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 71107416cdcfe7ab7e2b14cf28018c028156d1a0 — the exact code this score is about.
- Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.61+preprod-f3449e6eb431.