Release 0.26.0rc3 (2019-05-06)
Baseline: 0d40b7f0098d76ff5404dcce55ee567d1a806770
Cherry picks:
- 80b1871a045abdb834d9d4cd4c1fe6e2d035e6dc: maven_server: use client env, not server env
- b0317496ce596a36eea8f95d3af650a74d6a29d5: Fix targets names in java_tools java_toolchain.
- b340fb09ae2ebf699436fdf9d0be54d72ad7f972: Add the glob option
allow_empty
.
- 525c1d11f31964b6c523d83720c1d745bee64b3b: SkylarkExecutionResult: gracefully handle missing stdout/stderr
- 7434203c876406f3e422f3791a44e24c818eff4f: Turn off whole archive for protos when proto_one_output_per_message is on
- 72ca770ff13b8ac14c4260ba53dfd93dd0715b57: Allow calls to MoreAsserts.assertThrows to add a message describing the situation.
- b922677b534290f27089eea8dbb687a36980ae49: Automatic cleanup change.
- 76efb9d2fc76905f816daec4d51bb85af9374a56: Add remote outputs upload time metric to the critical path statistics
- 0e53ba4112327387ef3abfa73a65a3b0e586c1a4: Desugar Long.unsignedDivide and unsignedRemainder
- 32009217d53da249752a0ec9b93e1eba4e626384: Refactor/combine skyframe calls for build setting targets.
- d901b5bb131827a0a96a3d89e5988d8971073853: Automatic cleanup change.
- 20e631b264580d0e821859a1b36a4235f9181232: Automatic cleanup change.
- fb5ed3013219e482df8a2c12cd6a8ddac1bd9d45: Automatic cleanup change.
- 9e173ee1c00a6e85f494fd74539d85b4d5751f15: Record time spent in individual Error Prone checks
- 4d6c0ab7660ae70e43ab16dbe43a65db4fc2de99: Don't expose grouped direct deps of done nodes. Callers are actually interested in the compressed form.
- 348ae531ef354628f5c8a88d24e9ddc2084f3bc7: Automatic code cleanup.
- 314e6f85936e1f8020a903922c6f96296e54f0cf: During cycle detection, tolerate nodes already having the current graph version.
- 888716990fd1fe0cc3370e5a7e1d5ec2c75dec92: Upgrade the java_tools to javac10 v3.1.
- 460e1b34e174e19a34d7f1f315b721b45efc3a52: Remove dead code from WorkspaceFactory.
- ada9a5b6fb5217232c75fe0c742da00f493d24b5: Don't crash if client_cwd points outside workspace
- c9ae9617f63f738585946e91228fe520ce7b90e3: C++: Remove language documentation.
- 93ff8b7fc06cb7cb20a98f2161a32338e9deae15: C++: Remove duplicate code
- 717ccff4e2111d8b3ad3cdbca7e0759922999c4a: Windows: open files with at least read-sharing
- 5b76c1b5a494fe95725fe461c4fc4f0a995cbfee: C++: Give error instead of crash with wrong extensions
- c84c40dc8e6bead784b8974ebbf856370756516a: Python: 2to3 is now a write_file, not sh_binary
- 7472b372c35e54a7a40a54b34c41cb4d15dbc4b0: Automatic cleanup change.
- 3541ad6ea863730fa1feeacf6bbb7c1890bd36b1: make rbe work
- da2d8d97ed8ffdbc185052fc9249b4eb47a63d15: C++: Fix crash with bad filetypes in compilation outputs
- a2e686323f3d825d0a51a65b60cc7e0f000fd3df: C++: Adds tests for transitive link and fixes bugs
- 17a23512f9135bf17c1995021e71bf715462b2af: Automatic code cleanup.
- 0b80b9cf0a0919dbf7404f467ec441ca08f5fe18: C++: Remove whitelisting of Starlark API for Bazel
- d066ea929715e5e32c3642670a7ab70e42f818af: Handle IOExceptions in reading dependent .jdeps files by falling back to a full classpath compilation.
- 7293ca26d206749b339d9993c0d0c7acd828718f: Automatic cleanup change.
- a568c54549ed9a2df8363139c6bf9cd3ef33eb86: Make the Android Starlark migration tag check mandatory everywhere.
- ef3c57aa24b87ce93f9fa1b82d6bc015bb7b698b: Fix broken tests for //tools/build_defs/pkg. There must have been a botched merge adding the test after #/7482
- 255d35cf6402499cc85f754c672523e113e3c069: Add checker_framework_annotations to third_party
- 80ed266d6107d82595d1a072baa797a12678e21f: Revert recent change to TargetPattern.SingleTarget. It made a pending unrelated Bazel FR (https://github.com/bazelbuild/bazel/issues/7773) more cumbersome to implement.
- eee87e918e0f3a0e34f901df61da09fa1662915d: Support starlark split transitions returning a list of toOptions instead of a dict (the keys of the dict were never used).
- ecd2abd967960ddf4d2e240cf476958a5fefe3b8: Automatic cleanup change.
- e495e6b7afff5930e85a149f7809720b72199005: Move BuildConfiguration.Options to its own top-level class.
- 83130f4b86292aa8bd63d84b0bc694adfc43e682: Automatic cleanup change.
- 13b08a610c74d68bbbe94078dca84dc3a576e9ed: Fix markdown formatting in Maven -> Bazel migration tutorial.
- c5e267a54d6a3c1cec353d21d797cbe9f926d4ba: Fix VisibleForTesting warnings for RuleConfiguredTarget
- 2f5fcd8e504155b8de03f31f9c86d7d183832d8f: Use a custom anchor for the verbosity section.
- 849666594ab5f9acfd803101c0708504aa8784ab: Automatic cleanup change.
- f2b386cedb3ec262c05139ffdc38eda7f57a7488: Rewrite visibility advice in build style guide.
- baefeabefc64bb30c293a3dfa9e45a0017b7696b: Type-check tests for @GroupedList.Compressed.
- 98104a0997e0534e0f1b7b42effda987ba45aa88: Fix to cancellations shutdown logic following regression in https://github.com/bazelbuild/bazel/commit/f54de41c15f1b7a9b0a902 d31f1cce9cf7722cd4.
- a565f08d45ec56eb3321bd0733048e193e741d6f: select(): fail fast and more precisely on empty dictionaries.
- 6a17989e0b53c722cce1c62fdc83bb2261b36188: Move common option converters to their own class
- 63db9a4d68ce6c4b562533d4ef8b966941919600: Use more accurate dep counting for analysis test limits
- 42edea6fb5aee44c8debde9cc4e2b0867768b85b: Automatic cleanup change.
- c724f5e8af5a1c06ced0c3733d5d67c527239020: Automatic code cleanup.
- 6cb90b82b9faf39a9f05a2018ba0cf85712687bc: Flip the --incompatible_disable_objc_provider_resources flag to true by default.
- b983caff003a8ec2ee1501f8066d5666aafcb3e1: Fix misprint in repository_ctx download struct
- cf0eb4cf17c239d4ae403ef0182a955bbd267d7f: Add docgen and tools tests to the excluded directories during Bazel bootstrapping.
- e2c57a177635cffa6f7941179802a25ff6e0feac: Automatic cleanup change.
- d0fbc85aee03c1a1b266061fe9b656763c8faed2: Bring the google and github versions of tools/build_defs/pkg/BUILD into better alignment. The diff is now very minimal, so it should be easier to correctly copy changes introduced in one over to the other.
- f39a546a2b7c0833d6e90e6b6ab3c025967e3eb5: Automatic cleanup change.
- 4aae96fa6a892c49da73d07abbae9b87aaeec5ce: Include child SkyKey information regarding any potential rdep state violation during enqueueChild().
- 4fa60d781c9d0735c4619cbe0fe4a3368592239f: Remove obsolete third_party "licenses" requirement
- 3b09efa67a081ed592f7cf16d82763691da41920: Automatic cleanup change.
- 2e97cc39c2541dbf25320a200907563e179c43d7: Remove outdated licenses from functions ToC.
- e0c8c82e6b2542a6cfc10d508123b2bcbea24c4f: Automatic code cleanup.
- 6cfebc9488e60ad341b0c27a4f57308c7a3d4c25: Automatic cleanup change.
- da6a7f23586fd3c63d4c998f5261b8899a4fdc45: Update getting-started.md
- 1b324c4b451492a5e55ac6af5bebea976bb27fe4: Preserve file permissions when extracting runfiles zip
- 771cb7a026f2c9034fb016966dfd0e154c48ff2e: Make target pattern parsing repository-renaming aware.
- 2ab38663592a9ccbcc1f6f75ed135ae315f4d9d9: Release 0.25.0 (2019-05-01)
- 9cd098ed58bd4a420fa5107ac80df019fe27e7fd: Run SkyframeExecutor#notifyCommandComplete when crashing.
- bf66dc7210b46a13f86e144447f8d18505b79c2c: Enable Python toolchains by default
- 572bc144e77864fb0458155b432547af9cb260a0: Overhaul EnvironmentalExecutionException handling
- 6b08ff13732e70d9f0eec81eaaddfd22fa0b061b: Windows, testing: only look up shell if needed
- c46aa470d9e70568897df5cdc1eb95eae88a3437: update rbe toolchains for bazel 0.25.0
- 9a37138dcc27784cc47281b92551ab9bebd22399: fix broken platform reference missed in https://github.com/bazelbuild/bazel/commit/c46aa470d9e70568897df5 cdc1eb95eae88a3437
- ada365971edf6cf0f81e957e9e25312d0b0be7cb: update toolchains to also support running android tests
- 3c9089b81e4cb40d05d30f84409fbffbe0a18187: Progressively retrying uploads to bytestream
- 9a4d429d8120f9f4da144bbbad63d719e84f1e6e: ProfileGrapher: support gzipped profiles
- 9bd32566d6ad3b05688df4a5cd3f6e4bc0a40e25: ProfileGrapher: handle Json object profile
- 8a48b27f96b05fb4fb54b90bf086911693000963: Add java integration tests for java_tools with various JDK versions.
- 27fad939b380c523a2613ad748902be9e76f0417: Reduce lock contention on IsolatedOptionsData
- 4837e11bdd5f243d2b10f6a2b99f2edaba8c1131: Automated rollback of commit bf66dc7210b46a13f86e144447f8d18505b79c2c.
- eb3948f756a5a5ed582a38cc3234e2845833c9c1: Factor out a JNI string utility library used in Bazel's low-level filesystem operations.
- 3488aaa9e0c89da27e7a5f64ec3e248836f665e0: Add 0.25.0 to docs.
- b0c7ee5377fbd310177606e0cd26c602bd1efab4: Statically import MoreAsserts.assertThrows everywhere.
- 2291342e0ecb19ef8bb7915e90708cf548294e56: Add managed directories to RepositoryDirectoryValue.
- a4d3da6f2dfc18e1b3fe60ea62bc75e35e0d2002: Automatic code cleanup.
- cc943c55324499379e0f63902899c85a9b8089b8: Check if a toolchain was loaded from a bzl file in the MAIN workspace then put it in the map under "@" as opposed to the main repo's name.
- 8effdb1b4e985b7777fc46e4dc5595055a1b3c7c: Move output directory naming to its own class.
- 29f1932b18aac34a557f42e41638741cbffa67b5: Improve test compatibility with Python toolchain flag
- fcf33965d9f4be90856f14f6fd04a7fb546a54d9: Automatic code cleanup.
- 9eb2ef0d1feea9a08161ea0f8c16e3ac0a07064d: Explanation for package not found: fix list of paths
- 8c96c0614684243b0a51d0ad8ddc27b0258b4af1: Add missing spaces to worker_max_instances docs
- c8b01889c62cce01d973acde09d0176df03b2b7a: Fix assertThrows checks to have only the failing expression in the lambda.
- ac6b99932d6ea4546ed0cedc6ff686c42f12be8a: Honor --record_full_profiler_data for Json profiles
- ba4862d49333e9f50470b9d5a266ffd40c9cd2cc: Make files and directories under managed directories be correctly processed by SequencedSkyframeExecutor.
- 844e4e297b404d6ff28b818d8150d4b9c47de887: Make SymlinkForest simpler and more efficient
- b7bbbb148111139e2b6e6e717bc28b34da723e06: Remove --incompatible_disable_crosstool_file option
- 333cc8c519634364642d52fa13f11f64ea3f0191: Automated rollback of commit cc943c55324499379e0f63902899c85a9b8089b8.
- db0392174ac1d85e79c54f6ed8b31accc161090f: Make toolchain_config attribute of cc_toolchain mandatory
- 4387059e1b4474b97fbbbfed57fdf6477a60415a: Automated rollback of commit ede70a2cbedf6c048eb88f38019e806e3b6f9421.
- baa65c4cabd836c7dc36870c9e451a4d90ee6023: SpawnAction: always use continuations
- a902ce7224dfd9c681dec813113d8598e4fe885a: Handle CancellationExceptions in BES module instead of crashing.
- f6b091b5b2a04f94a9d75280a94b65756b5e8e29: Create a whitelist for usages of js_common.provider.
- dac2135710e7a8b7752226578a2cdf52e42779ec: Automated rollback of commit 771cb7a026f2c9034fb016966dfd0e154c48ff2e.
- 0dfcc76b9120ffcc4b01e981b0617410453b0fcc: Automated rollback of commit fee9aa08d4214252513d684eb3bca4e3d23a0c3d.
- b5018131b584e3605941924f7d41e3fb9a704cee: Cache fingerprint of bitcode files for LtoBackendAction.
- 4929441000d8c3d1e596111cd37e637f8bb4445d: Make SkylarkErrorReporter proxy ruleContext error consumer
- c5b0c79864d3940f8fca6ae60e2a59637011e0b0: cquery: support --output=build
- ee5ed35604eef92db67862c0ac084bbed21b92d0: Automated rollback of commit 5586c4788e3567129a614b158ef784cd1babf65d.
- daa8ae565ab2023e49134f0aad233b0a8bd7a5d0: Automated rollback of commit 5f6ca2ec816c3618eabff25b71ae6cd038a98a82.
- 61c7ffa60ae9c1937dd6d8ee30a8c0471094ee71: Automated rollback of commit 87388e24814b177f54ca7697b4233489f90c587e.
- 898d7b6138af73f03daf35b767d252560087de70: Add test for repository overrides, conflicting with managed directories being added when Bazel server is already started.
- c2001a4569483596d9dc74ba9cabcbe4b6f1887f: Automated rollback of commit bbe47a1564a832e1a175206f2dfbc92af94c120b.
- e67c961905792cd63950c6f6efc33275ad243c49: Fix a non-determinism in create_embedded_tools.py.
Incompatible changes:
- Flip --incompatible_windows_escape_jvm_flags to true. See https://github.com/bazelbuild/bazel/issues/7486
- Flip --incompatible_windows_style_arg_escaping to true. See https://github.com/bazelbuild/bazel/issues/7454
- --incompatible_windows_escape_jvm_flags is enabled by default, and the flag no longer exists
--incompatible_no_output_attr_default
is enabled by default.
- --incompatible_depset_union is enabled by default.
- Python rules now determine the Python runtime using toolchains rather than
--python_top
and --python_path
, which are deprecated. See #7899 for information on declaring Python toolchains and migrating your code. As a side-benefit, this addresses #4815 (incorrect interpreter version used) on non-Windows platforms. You can temporarily opt out of this change with --incompatible_use_python_toolchains=false
.
- Python rules now determine the Python runtime using toolchains rather than
--python_top
and --python_path
, which are deprecated. See #7899 for information on declaring Python toolchains and migrating your code. As a side-benefit, this addresses #4815 (incorrect interpreter version used) on non-Windows platforms. You can temporarily opt out of this change with --incompatible_use_python_toolchains=false
.
New features:
- Windows, Python: the --incompatible_windows_escape_python_args flag (false by default) builds py_binary and py_test targets with correct command line argument escaping.
- cquery supports --output=build
Important changes:
- Allow debugging C++ features logic.
- The --ios_multi_cpus, --watchos_cpus, --macos_cpus and tvos_cpus are now additive. This means that you can now split the --ios_multi_cpus=arm64,armv7 into --ios_multi_cpus=arm64 and --ios_multi_cpus=armv7.
- Generated Go protobufs now depend on //net/proto2/go:proto_gendeps instead of //net/proto2/go:proto
- Add new options --cs_fdo_instrument and --cs_profile to support LLVM's context-sensitive FDO (CSFDO).
- Bazel C++ compile/link Starlark API. Can be used with experimental flag --experimental_cc_skylark_api_enabled_packages=,.
cc_toolchain.static_runtime_lib
and cc_toolchain.dynamic_runtime_lib
are now exposed to Starlark.
- New flag
--incompatible_no_kwargs_in_build_files
. See https://github.com/bazelbuild/bazel/issues/8021
- struct.to_proto() converts dict into proto3 text message (map<,>).
- Android resource conflicts will no longer be reported between a strong attr resource and a weak attr resource, if the weak attr does not have format specified.
- Flag
--incompatible_static_name_resolution_in_build_files
is added. See https://github.com/bazelbuild/bazel/issues/8022
- Add --incompatible_objc_framework_cleanup to control whether to enable some objc framework cleanup that changes the API. Specifically, the cleanup changes the objc provider API pertaining to frameworks. This change is expected to be transparent to most users unless they write their own Starlark rules to handle frameworks. See https://github.com/bazelbuild/bazel/issues/7594 for details.
- Added --incompatible_remove_binary_profile to disable the old binary profiles. Instead use the JSON profile format: https://docs.bazel.build/versions/master/skylark/performance.html# json-profile
- Introducing --execution_log_binary_file and --execution_log_json_file that output a stable sorted execution log. They will offer a stable replacement to --experimental_execution_log_file.
- Flag
--incompatible_disallow_old_octal_notation
is added. See //github.com/bazelbuild/bazel/issues/8059
- Removes the --incompatible_disable_genrule_cc_toolchain_dependency flag.
- Android resource conflicts will no longer be reported between a strong attr resource and a weak attr resource, if the weak attr does not have format specified.
- Incompatible flag
--incompatible_make_thinlto_command_lines_standalone
has been added. See https://github.com/bazelbuild/bazel/issues/6791 for details.
- objc_library does not support resource attributes any more. Please read #7594 for more info.
- The
outputs
parameter of the rule()
function is deprecated and attached to flag --incompatible_no_rule_outputs_param
. Migrate rules to use OutputGroupInfo
or attr.output
instead. See https://github.com/bazelbuild/bazel/issues/7977 for more info.
- New platform_mappings ability to allow gradual flag to platforms/toolchains migration. See also https://github.com/bazelbuild/bazel/issues/6426
- Added support for compiling against fully qualified R classes from aar_import dependencies.
- --tls_enabled flag is deprecated. Please provide 'grpcs' as a scheme in the URLs if TLS should be used for a remote connection.
- Adds incompatible_disallow_rule_execution_platform_constraints_allowed, which disallows the use of the "execution_platform_constraints_allowed" attribute when defining new rules.
- Flag
--incompatible_restrict_named_params
is added. See https://github.com/bazelbuild/bazel/issues/8147 for details.
- The glob function has a new argument
allow_empty
. When set to False, the glob fails when it doesn't match anything.
- Adds the "disable_whole_archive_for_static_lib" feature to allow turning off legacy_whole_archive for individual targets.
- C++ Starlark API for compilation and linking is no longer whitelisted
- Update visibility advice in build-style
- --incompatible_disable_objc_provider_resources is now enabled by default.
- Fixed an issue where some
py_runtime
s were incompatible with using --build_python_zip
(#5104).
- The
outputs
parameter of the rule()
function is deprecated and attached to flag --incompatible_no_rule_outputs_param
. Migrate rules to use OutputGroupInfo
or attr.output
instead. See https://github.com/bazelbuild/bazel/issues/7977 for more info.
This release contains contributions from many people at Google, as well as Benjamin Peterson, Brian Topping, clyang82, Dave Lee, George Gensure, Greg Estren, Greg, Guro Bokum, Keith Smiley, Max Vorobev, Michael Hackner, Robert Brown, Robert Sayre, Ryan Beasley, Yannic.
Notice: Bazel installers contain binaries licensed under the GPLv2 with Classpath exception. Those installers should always be redistributed along with the source code.
Some versions of Bazel contain a bundled version of OpenJDK. The license of the bundled OpenJDK and other open-source components can be displayed by running the command bazel license
. The vendor and version information of the bundled OpenJDK can be displayed by running the command bazel info java-runtime
. The binaries and source-code of the bundled OpenJDK can be downloaded from our mirror server.
Security: All our binaries are signed with our public key 48457EE0.
Index of files