This project is mirrored from https://github.com/bazelbuild/bazel.git.
Pull mirroring updated .
- Apr 23, 2025
-
-
Xùdōng Yáng authored
-
Xùdōng Yáng authored
-
- Apr 22, 2025
-
-
Xùdōng Yáng authored
-
- Apr 21, 2025
-
-
Googler authored
Use `AtomicReference` for `skyValueVersion` to make `RemoteAnalysisCachingEventListener` class fully `@ThreadSafety.ThreadSafe`. This is just a drive-by clean-up. PiperOrigin-RevId: 749778628 Change-Id: I114ea6ad07da21253851bd40cd20ed9ddafc9495
-
- Apr 19, 2025
-
-
Googler authored
RELNOTES: None PiperOrigin-RevId: 749343431 Change-Id: Idb2012a3465214ce0eef036876fd005793e8952f
-
Googler authored
- Change the type of the (deprecated) `output_licenses` attribute from BuildType.LICENSE to a STRING_LIST. This should be a no-op change for people still setting it. - remove some dead code https://github.com/bazelbuild/bazel/issues/7444 https://github.com/bazelbuild/bazel/issues/25889 RELNOTES: The (deprecated) `output_licenses` attribute is now a string list rather than an internal data type. The only visible change may be that some query output may change from printing capitalized values of inputs will now show lower case. PiperOrigin-RevId: 749107671 Change-Id: I382e97b268a3b9ff183f5d52a2a59c5149e01429
-
- Apr 18, 2025
-
-
Googler authored
This was caused by the output formatter thinking a ComputedDefault attribute that depends on a select()able attribute is itself a select(). --output=build then tries to reform the computed default as a select(), which isn't possible. PiperOrigin-RevId: 749022313 Change-Id: I87903b8bb7225eef1117d7b93925775e7d3b54c9
-
Bazel Release System authored
Release Notes:
-
- Apr 17, 2025
-
-
Googler authored
PiperOrigin-RevId: 748671007 Change-Id: I5f2830218869ddd4ed87512900eff1bd95ca9db4
-
Ankush Chudiwal authored
#### **Description:** This pull request addresses **Issue #20832**, where an invalid regex in the `--experimental_downloader_config` file caused Bazel to **crash silently without an error message**. #### **Changes Introduced:** - **Added a try-catch block** to catch `PatternSyntaxException` when compiling regex patterns in `UrlRewriterConfig.java`. - **Throws a `UrlRewriterParseException`** with a clear error message instead of crashing. - **Includes details on the regex error**, such as the invalid sequence and its index in the pattern. #### **Before the Fix:** - An invalid regex in `downloader.cfg` (e.g., `rewrite (.*\maven.org/.*) http://example.com/mirror/$1`) caused **Bazel to crash with error code 37**, but **no explanation was given**. #### **After the Fix:** - Users now see a **clear error message** pointing out the invalid regex and its exact issue: ``` Invalid regex in `rewrite`: Illegal/unsupported escape sequence at index 4 in `(.*\maven.org/.*)` ``` - This helps users quickly debug and fix their configuration. #### **Testing & Verification:** - Manually tested by providing valid and invalid regex patterns in `downloader.cfg`. - Verified that valid patterns work correctly and invalid patterns produce a proper error message. #### **Impact & Notes:** - No breaking changes. - Improves **developer experience** by preventing silent crashes and providing actionable feedback. #### **Related Issue:** Closes #20832 Closes #25380. PiperOrigin-RevId: 748542218 Change-Id: Iba2201874c03b81898be15be43213a9e123e1f60
-
Benji Vos authored
On macOS, this change ensures that when `DEVELOPER_DIR` environment variable is used, it will be propagated to `/usr/bin/xcrun` to query the SDKROOT. This takes precedence over the `--xcode_version` flag when selecting the Xcode installation. This aligns with the intended use as documented in `man xcrun`: `The tool xcode-select(1) is used to set a system default for the active developer directory, and may be overridden by the DEVELOPER_DIR environment variable (see ENVIRONMENT).` To leverage this, developers must propagate the `DEVELOPER_DIR` environment variable to Bazel actions using `--action_env=DEVELOPER_DIR`. Closes #25657. PiperOrigin-RevId: 748404233 Change-Id: I52181098658d33e2bd2ec992ad1cd38d64abb293
-
Fabian Meumertzheim authored
Without `--guard_against_concurrent_changes`, locally executed actions can easily pollute the disk or remote cache when inputs are modified during execution, which is in stark contrast to Bazel's correctness guarantees. But with the flag enabled, the additional file system operations can unnecessarily slow down non-interactive builds and also, in rare but not negligible cases, result in false positives, which has made it difficult to flip the flag. This change aims to resolve this issue by introducing a "lite" value of the flag that only checks source files in the main repository. Since output files are made read-only after digesting and files in external repositories are rarely modified during execution (`local_repository` being a notable exception), this gets most of the benefits for correctness while requiring far fewer stats (99% fewer calls to `wasModifiedSinceDigest` on the Bazel project). It also avoids the false positives that can arise for output files, which makes it possible to enable by default. Along the way, this change unifies concurrent change detection between `RemoteSpawnCache` and `RemoteSpawnRunner` by moving it into `RemoteExecutionService#uploadOutputs`. The implementation in `RemoteSpawnRunner` required two stats per input and the `RemoteSpawnCache` implementation unnecessarily retained the spawn input mapping, both of which is fixed in the new, centralized implementation. Work towards #3360 Closes #25569. PiperOrigin-RevId: 748335191 Change-Id: I72982419ade5c32bfe809910dd0c3a0577a3eb48
-
- Apr 16, 2025
-
-
Fabian Meumertzheim authored
Adds a runfiles tree to the input and also runs the test with path mapping enabled. Closes #25713. PiperOrigin-RevId: 748303401 Change-Id: I5cc8b9954424a045b3a6bf62aff3984b582a7ab5
-
Googler authored
Move cachedCcToolchainVariables from a CcStaticCompilationHelper member to a createCcCompileActions() local variable. PiperOrigin-RevId: 748291986 Change-Id: Id05291a3288c0aa97b413417d6485b69805fdb78
-
Googler authored
* createSourceAction() * initializeCompileAction() * createModuleCodegenAction() * createHeaderAction() * createCompileActionTemplate() * createModuleAction() * calculateOutputNameMap() * getSourceArtifactsByType() * calculateOutputNameMapByType() * shouldProvideHeaderModules() * createCcCompileActions() PiperOrigin-RevId: 748274645 Change-Id: I63d155403802ecf020a783d94bf592b2f9f461bb
-
Googler authored
Rename local variable label to sourceLabel in createModuleAction() so it doesn't collide with member variable label in following refactoring. PiperOrigin-RevId: 748262414 Change-Id: I1007fe82a22617f719a9f6e1b687156ef7e58f7b
-
Googler authored
* setupCompileBuildVariables() * createTempsActions() * getDwoFile() * getLtoIndexingFile() * createSourceActionHelper() PiperOrigin-RevId: 748232908 Change-Id: I1ca6068e15d62560fefcb3df7662ffa92de86b3c
-
Googler authored
Encapsulate prebuiltParent and prebuiltParentWithFdo in private static subclass of CcStaticCompilationHelper PiperOrigin-RevId: 748222385 Change-Id: I0f50b6802899b220c4adeb22591bbe858f82e24d
-
Googler authored
Works towards removing LegacyLinkerInputs. Each expandedLinkerInput x is created with LegacyLinkerInputs.simpleLinkerInput. And it's always consumed by `x.getArtifact()` or `x.file` The change is no-op. Removal of methods in LegacyLinkerInputs class is unrelated. PiperOrigin-RevId: 748204851 Change-Id: I61b4c654d621f6e1c24777958915476a3fd75132
-
Googler authored
PiperOrigin-RevId: 748183854 Change-Id: I85a6f6b58f5658e7da4f894c93e37b1bd5733481
-
Googler authored
PiperOrigin-RevId: 747966515 Change-Id: If17e6d052536e1dbdd49faa08cf1a6771dd0d8da
-
Googler authored
PiperOrigin-RevId: 747957423 Change-Id: I2d076e30abc6b95c553f4f8e3164eda1d16e74d7
-
Fabian Meumertzheim authored
`filegroup` can swallow runfiles, which breaks the version of the bash runfiles library contained in `rules_shell`. Work around this by using `sh_library` instead. Fixes #25513 Closes #25837. PiperOrigin-RevId: 747949107 Change-Id: I6b420f24fdc3845d0a824c1ba3e8422e86fa77d6
-
Googler authored
The flag `--experimental_downloader_config` has been replaced by `--downloader_config`, which is now stable and should be used instead. PiperOrigin-RevId: 747948350 Change-Id: Ieab7419a6edad13432b429a77fa744452b042a70
-
Fabian Meumertzheim authored
This removes a peak memory inefficiency of path mapping compared to regular execution. Closes #25368. PiperOrigin-RevId: 747933848 Change-Id: Ib2d8ffb626b8181dd7d831d9a5207bd13b581420
-
Bazel Release System authored
Baseline: 441c563b Cherry picks: + 073ade62: Lazily create string for precondition error message. Important changes: - Turn the `distribs` common attribute into a no-op. See #19369 - Set generator_name, generator_function, generator_location, and the full Starlark stack for rule targets instantiated in a symbolic macro. This release contains contributions from many people at Google, as well as Chuck Grindel, dependabot[bot], Fabian Meumertzheim, Jim Carroll, Keith Smiley.
-
Googler authored
This is toggled by setting the new flag --experimental_analysis_cache_service. PiperOrigin-RevId: 747908289 Change-Id: I95f7feca56ee6cb5d26cd35aaff70fe5b9cd72db
-
- Apr 15, 2025
-
-
Googler authored
* getOutputNameBaseWith() * collectPerFileCopts() * getCopts() * shouldPassPropellerProfiles() * getAuxiliaryFdoInputs() * configureFdoBuildVariables() PiperOrigin-RevId: 747881687 Change-Id: Id275d729e2ac3b9173f3a4da542fce80f0e8357e
-
Googler authored
For a good static type checker we need to have the correct signatures of all functions available to Starlark code. Issue: https://github.com/bazelbuild/bazel/issues/25520 PiperOrigin-RevId: 747871739 Change-Id: I553a640987d0edd61822ac3030fb3ba865227bcb
-
Googler authored
We don't need it. Nothing uses it. RELNOTES: None PiperOrigin-RevId: 747856049 Change-Id: If7fd07914de3e4704d0aeb60021f0ea249778eef
-
Fabian Meumertzheim authored
RELNOTES[inc]: When `--modify_execution_info` is specified multiple times, the individual values are now all interpreted in order rather than only the value specified last. Closes #25643. PiperOrigin-RevId: 747855909 Change-Id: Ic6f3a2cb204dc05451b56eb8a8725c5f34a4f31d
-
Googler authored
Downstream run: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4596 The only failure in IntelliJ was fixed in https://github.com/bazelbuild/intellij/pull/7606 RELNOTES[INC]: struct providers are not supported in aspects PiperOrigin-RevId: 747836848 Change-Id: Iab2d2eccc455173c53ea160e0a15d90339e6bbb6
-
Fabian Meumertzheim authored
The downloads in `AbstractActionInputPrefetcher#prefetchInputs` reported lost inputs that are symlinks to other artifacts with the exec path of the target, which results in a crash when the target is not also an input to the action. This is fixed by always reporting the exec path of the symlink. Fixes #25841 Closes #25847. PiperOrigin-RevId: 747819887 Change-Id: Iff9125c95a2598851b8a31ed4ca18fd7218a97aa
-
Googler authored
These are needed to flip --incompatible_disable_autoloads_in_main_repository PiperOrigin-RevId: 747798337 Change-Id: Ia600652523c5b41f436db0f612607e7f403a4157
-
Googler authored
PiperOrigin-RevId: 747788531 Change-Id: Idfc98e40900f2abaf9bb7645c2382bd70bb8a037
-
Googler authored
PiperOrigin-RevId: 747780475 Change-Id: Id13d36717463eef795b0a0748e38d5523ef3c8e9
-
Googler authored
PiperOrigin-RevId: 747763924 Change-Id: Ie1fbf1bbedfe445c5ae26021cf1ff8f0b7674706
-
Googler authored
Remove the flag and native code paths. Remove testComputeKeyStatic that were covering only native code. Move LinkBuildVariables into the LinkBuildVariablesTest. The only remaining use. Substitute dummy-exec-requirement with supports-exec-requirement. Stalark actions filter exec requirements that don't start with a set of predefined strings. PiperOrigin-RevId: 747737688 Change-Id: I425c0f7aec4205ef6027eb690840293d2f45fc04
-
Googler authored
... and split the identifier for a package piece for build file into a sibling rather than parent class of the identifier of a package piece for macro. This is in preparation for making package piece identifiers into skykeys - with the two flavors of identifier being evaluated by different skyfunctions. Working towards https://github.com/bazelbuild/bazel/issues/23852 PiperOrigin-RevId: 747509571 Change-Id: Ib62469f8e88906c6f4beceeeb0da47cb444d4b11
-
Googler authored
PiperOrigin-RevId: 747504381 Change-Id: If1d936b592780dd4fb6912fa9d6e518f1159294f
-