Tags: timothyklim/bazel
Tags
Release 3.7.0 (2020-10-20) Baseline: a991db7 Incompatible changes: - The syntax //foo/BUILD can no longer be used on the command line to refer to the //foo:BUILD target. Use //foo:BUILD (preferred) or foo/BUILD instead. This does not affect BUILD/bzl files, where that syntax already didn't work. - This removes `--objc_header_scanner_tool`. The flag was primarily used internally, and to our knowledge, a compatible tool was never released. Therefore this flag is believed to be unused. New features: - select() directly supports constraint_value (no need for an intermediate config_setting). Important changes: - Non-android targets can again be built when android_sdk_repository is present but invalid. - Add a build variable for -install_name / -soname. - Add a build variable for -install_name / -soname. - Include "resources" attr in dependency attributes for java_* coverage configuration. - --trim_test_configuration should work for almost all cases when a non-test target depends on a test. - Javac now supports multiplex workers. - Javac now supports multiplex workers. - Blaze now allows symbolic links that point to their own ancestor unless they are traversed recursively by e.g. a //... recursive target pattern or a recursive glob. - Blaze now allows symbolic links that point to their own ancestor unless they are traversed recursively by e.g. a //... recursive target pattern or a recursive glob. - Blaze now allows symbolic links that point to their own ancestor unless they are traversed recursively by e.g. a //... recursive target pattern or a recursive glob. - Generated Go protobufs no longer depend on //net/proto2/go:proto This release contains contributions from many people at Google, as well as Benjamin Peterson, Cristian Hancila, Ed Schouten, Fredrik Medley, Greg Estren, jgehw, Jin, Kalle Johansson, Keith Smiley, Kseniia Vasilchuk, Michael Eisel, Michael Hackner, Michael Krasnyk, Mostyn Bramley-Moore, Ruixin Bao, Samuel Giddins, Simon Stewart, Torgil Svensson, Ulf Adams, Vasilios Pantazopoulos, Wenyu Zhang, Yannic Bonenberger, yoav-steinberg.
Release 3.6.0 (2020-10-06) Baseline: aa0d97c Cherry picks: + 32c88da: Patch RuleContext for android_binary.deps to restore legacy behavior. + db9fc88: android_test also needs the legacy behavior in RuleContext.getPrerequisites. + 144d514: Update android_sdk_repository to create a valid, but useless, repository + bb11f92: Patch upb to fix build error with gcc 10 + 9f06be4: Patch upb to fix build error with gcc 10 (third_party) + b67b75e: Fix issue where libtool_check_unique isn't found for sandbox builds Incompatible changes: - `--experimental_ui_limit_console_output` is removed. Users of `--experimental_ui_limit_console_output=1` for silencing terminal output should use `--ui_event_filters=` instead. - --proto:instantiation_stack must be enabled in addition to --record_rule_instantiation_callstack to see call stack in proto output from blaze query. New features: - cc_common.compile support for include_prefix/strip_include_prefix - Multiplexed persistent workers: Use --experimental_worker_max_multiplex_instances to configure the number of WorkRequests that are sent concurrently to one worker process. The --worker_max_instances flag will no longer be used to determine max instances for multiplex workers, since the two have different resource requirements. Multiplex workers will by default have a max instances of 8. Important changes: - The prelude file (//tools/build_rules:prelude_bazel) is now processed as a Starlark module, rather than being sourced into the BUILD file textually. This may cause slight breakages depending on the content of the prelude file. (Use of the prelude file is discouraged as it will be removed in the long term.) - Removed --experimental_ignore_deprecated_instrumentation_spec and cleaned up the old deprecated behavior. - Added CODEBASE.md, a description of the Bazel codebase. - Removed the flag --experimental_transparent_compression. - Removed the flag --experimental_action_args. - Stop needlessly parsing WORKSPACE files from external repositories. - Dot ('.') is now allowed in workspace names. See bazelbuild#11837. - This change can cause memory and performance regressions for some builds with C++ dependencies, due to extra actions being executed. RELNOTES: None - Building Android apps for legacy multi-dex (pre-L) now require a main-dex list if the application does not fit into a single DEX file. - Puts the experimental_worker_multiplex flag to use. - In Starlark, the Args object supports a new parameter file format 'flag_per_line', compatible with the Abseil flags library. - The flag --incompatible_no_support_tools_in_action_inputs is removed. - Support for NDK 21 added - Bazel will now skip printing action stdout/stderr contents if they exceed --experimental_ui_max_stdouterr_memory_bytes. - The Starlark interpreter now correctly emits an error if the operand of the first loop in a list comprehension refers to a variable bound by a later loop, such as y in this example: [e1 for x in f(y) in e2 for y in e3] # error: undefined y ^ This may cause latent dynamic errors to become static errors. - Added support for a 'supports-graceful-termination' execution requirement and tag, which causes Bazel to send a SIGTERM to any tagged actions before sending a delayed SIGKILL. This is to give actions, and more specifically tests, a chance to clean up after themselves. - Non-android targets can again be built when android_sdk_repository is present but invalid. This release contains contributions from many people at Google, as well as Benjamin Peterson, Daniel Wagner-Hall, Dave MacLachlan, David Ostrovsky, Emil Kattainen, George Gensure, Greg Estren, Keith Smiley, mai12, Mai Hussien, Michael Eisel, Per Halvor Tryggeseth, Ruixin Bao, Samuel Giddins, Steeve Morin, Thi Doan, Tom de Goede, Ulf Adams, Zhongpeng Lin.
Release 3.5.1 (2020-10-01) Baseline: 889bc0b Cherry picks: + a7a0d48: Make no-op starlark transition not affect the output directory. + b37c51c: Add include_prefix and strip_include_prefix to cc_common.compile + f6ad35f: Delete --experimental_transparent_compression + 39bc97e: Remove --experimental_action_args + b970667: Stop needlessly parsing WORKSPACE files from external repositories. + e574d55: Allow hyphen char in workspace name + 9993785: Allow dot ('.') in workspace names. + b3ac8f6: Patch upb to fix build error with gcc 10 + 26cbf77: Patch upb to fix build error with gcc 10 (third_party) + f1f9411: Fix incorrect rule class digest when creating rules through macros. + 6b591a7: Prepare for bazel to run with shrunken r8.jar + 7a11752: Don't run DexFileMergerTest as it is not supported for all r8.jar's New features: - cc_common.compile support for include_prefix/strip_include_prefix Important changes: - Removed the flag --experimental_transparent_compression. - Removed the flag --experimental_action_args. - Stop needlessly parsing WORKSPACE files from external repositories. - Dot ('.') is now allowed in workspace names. See bazelbuild#11837. This release contains contributions from many people at Google, as well as David Ostrovsky.
Release 3.5.0 (2020-09-02) Baseline: 889bc0b Cherry picks: + a7a0d48: Make no-op starlark transition not affect the output directory. + b37c51c: Add include_prefix and strip_include_prefix to cc_common.compile + f6ad35f: Delete --experimental_transparent_compression + 39bc97e: Remove --experimental_action_args + b970667: Stop needlessly parsing WORKSPACE files from external repositories. + e574d55: Allow hyphen char in workspace name + 9993785: Allow dot ('.') in workspace names. New features: - cc_common.compile support for include_prefix/strip_include_prefix Important changes: - Removed the flag --experimental_transparent_compression. - Removed the flag --experimental_action_args. - Stop needlessly parsing WORKSPACE files from external repositories. - Dot ('.') is now allowed in workspace names. See bazelbuild#11837. This release contains contributions from many people at Google, as well as David Ostrovsky.
Release 3.4.1 (2020-07-14) Baseline: 7404d17 Cherry picks: + f31f2d7: fixup! Gracefully handle the lack of subreaper support in Linux. + 3a4f221: Revert "Replace the remaining dependencies for Bazel Debian build (third_party)" + c55ec0f: Revert "Upgrade gRPC to 1.26.0" This release contains contributions from many people at Google, as well as Ryan Beasley.
Release 3.4.0 (2020-07-13) Baseline: 7404d17 Cherry picks: + a4334be: fixup! Gracefully handle the lack of subreaper support in Linux. Incompatible changes: - This removes the short-lived --process_wrapper_extra_flags flag, which was introduced primarily to roll out a bug fix. Unfortunately, this made us inadvertently expose all of the process-wrapper's command line interface to the public, which should not have happened. Given the corner case of the utility of this flag, the lack of documentation for it, and the fact that it only appeared in a single release, we are treating this as a bug instead of a backwards compatibility breakage. New features: - bazel info: Allow to specify multiple keys. - Support code coverage with GCC 9. Important changes: - Allow InstrumentedFilesInfo fields to be read from Starlark. - The --starlark_cpu_profile=<file> flag writes a profile in pprof format containing a statistical summary of CPU usage by all Starlark execution during the bazel command. Use it to identify slow Starlark functions in loading and analysis. - The --debug_depset_flag has been removed as it is in effect always on at no cost. - Rule authors should use the incompatible_use_toolchain_transition rule attribute to migrate to using the toolchain transition. jcater to udpate notes further. - `apple_binary` rules now accept the `stamp` attribute with the same semantics that it has in `cc_binary` rules. - --incompatible_objc_provider_remove_compile_info turns off the compile info/mege_zip Starlark APIs in ObjcProvider. See bazelbuild#11359. - The --debug_depset_flag has been removed as it is in effect always on at no cost. - Fix behavior of ctx.actions.write so content is written without an incorrect encoding to UTF-8. See bazelbuild#10174 for details. - Collect more performance metrics for worker execution. - Add flag --incompatible_force_strict_header_check_from_starlark - Configure coverage and runfiles for sh_library. - Adds --incompatible_blacklisted_protos_requires_proto_info to indicate whether proto_lang_toolchain.blacklisted_protos requires ProtoInfo. This release contains contributions from many people at Google, as well as Andrzej Guszak, Benjamin Peterson, Benjamin Romano, Carlos Eduardo Seo, Claudio Bley, dannysullivan, David Ostrovsky, George Gensure, Graham Jenson, Grzegorz Lukasik, Gunnar Wagenknecht, Henk van der Laan, Jin, John Millikin, Marin Baron, Nikhil Marathe, Robin Nabel, Ryan Beasley, Samuel Giddins, Sergey Balabanov, utsav-dbx, Vo Van Nghia, Yannic Bonenberger.
Release 3.3.1 (2020-06-30) Baseline: c063b5c Cherry picks: + cb798a4: Restore missing Building with Platforms docs. + 9be9767: Release 3.3.0 (2020-06-17) + 3b0439e: Fix incorrect assumption of desugar persistent worker conditional This release contains contributions from many people at Google, as well as .
Release 3.3.0 (2020-06-17) Baseline: c063b5c Cherry picks: + 23bd69d: Restore missing Building with Platforms docs. Incompatible changes: - The startup option --fatal_event_bus_exceptions is now a no-op and will be removed soon. New features: - Bazel offers basic completion for the fish shell. Important changes: - Add configuration_field for --custom_malloc to cpp config fragment - Flip --incompatible_objc_compile_info_migration to true. See bazelbuild#10854. - It is now possible to use different action mnemonics while still sharing the same pool of persistent workers. It requires setting a new property on the execution requirements (`worker-key-mnemonic`). The value overrides the action's mnemonic when it comes to reusing worker processes. - linkshared=1 in cc_binary no longer requires '.so' or '.dll' in the target name - Revert --incompatible_objc_compile_info_migration to false. See bazelbuild#10854. - Invoke clang with the correct -target flag when building for watchOS. - NA - Add experiment flag to forward InstrumentedFilesInfo from non-tool deps by default. This release contains contributions from many people at Google, as well as Abhishek Kumar, Adam Azarchs, Akira Baruah, Daniel Wagner-Hall, Derek Argueta, glukasiknuro, Greg Estren, Greg, Jason Furmanek, Jiri Dank, Keith Smiley, Kseniia Vasilchuk, Laurent Le Brun, Matt Mackay, Michael Klemm, Nikolay Shelukhin, Patrick Balestra, Rui Chen, Siggi Simonarson, sventiffe, Tobias Werth, Tom de Goede, Vladimir Chebotarev, Yannic Bonenberger.
Release 3.2.0 (2020-05-27) Baseline: 1d93d26 Important changes: - Renamed --experimental_slim_json_profile to --slim_profile. - Expose ctx.attr.write Args content for analysistest when possible - Added aquery_differ_v2 that works with the new aquery proto output format. - Add new flag, 'experimental_no_product_name_out_symlink', to omit creating '<product>-out' symlink if user specifies '--symlink_prefix' option. - --ram_utilization_factor is removed (as is --incompatible_remove_ram_utilization_factor). Please use --local_ram_resources. - Improve include scanner support for cl.exe and clang-cl command lines - ctx.split_attr now includes attributes with Starlark split transitions. - Added --incompatible_string_replace_count, to make string.replace() behave as in Python. - Bazel can now recursively delete non-executable but readable directories. - Restore case-sensitivity to -I and /I include scanning detection to avoid conflicts. This release contains contributions from many people at Google, as well as Alessandro Patti, Antoine Eiche, Beebs, Brian Silverman, George Gensure, Gerhard Pretorius, Gibson Fahnestock, Greg, Gregor Jasny, Gustav Westling, hannometer, Jin, Jonathan Gerrish, Josh Smith, Justin Y Wei, Laurent Le Brun, Links, liubang, Lszl Csomor, Matt Mackay, Moritz Krger, Ryan Beasley, Siddhartha Bagaria, Yannic Bonenberger, Yannic, Zhongpeng Lin.
Release 3.1.0 (2020-04-21) Baseline: 17ebbf1 Cherry picks: + 71fb56b: Suppress last-ditch download exceptions w/cleanup + fd60614: In repo rules, don't warn about generator_* attributes being non-canonical + 2a37279: Refactor configureFeatures and prevent NPE + 777a6ee: Automated rollback of commit 0bbe381. + 2ee53c9: Guard parseActionResultMetadata with bulk wrapper Incompatible changes: - The deprecated startup options --experimental_oom_more_eagerly(_threshold) are removed. Important changes: - Remove flag --incompatible_load_proto_toolchain_for_javalite_from_com_google_p rotobuf which has been flipped in Bazel 3.0. - Allow assembly file sources in cc_common.compile. - Set default .netrc file on Windows to %USERPROFILE% - A maximum 150 attributes per RuleClass is enforced - Increase max targets per rule class limit to 200 - ctx.split_attr now includes attributes with Starlark split transitions. - The --max_computation_steps flag bounds the computation done by a BUILD file. - Native patch can handle file permission properly - Aspects may now propagate through dependencies on rule outputs by being defined with `apply_to_generating_rules = True`. - 'query --output=build' now shows where rule classes (not just rules) are created. - The flag `incompatible_bzl_disallow_load_after_statement` is removed. - ctx.split_attr now includes attributes with Starlark split transitions. - The flag `incompatible_no_output_attr_default` is removed. - Fix wall-time of the SpawnResult in WorkerSpawnRunner - Add stamp parameter for cc_common.link to enable including build info - The flag `--incompatible_restrict_named_params` is removed. - The flag `--incompatible_depset_union` is removed. - Bazel uses fewer compiler flags by default when building Objective-C. In particular, Bazel no longer sets `-O0`, `-DDEBUG=1`, `-fstack-protector`, `-fstack-protector-all`, or `-g` in dbg mode, and Bazel no longer sets `-Os`, `-DNDEBUG=1`, `-Wno-unused-variable`, `-Winit-self`, or `-Wno-extra` in opt mode. If you want to apply these flags to your project, you can reenable them in your CROSSTOOL. - A maximum attribute name length is 128 is enforced This release contains contributions from many people at Google, as well as Alessandro Patti, Benjamin Peterson, Benjamin Romano, Bor Kae Hwang, Chris Heisterkamp, Cristian Hancila, Dmitri G, Douglas Parker, George Gensure, Gregor Jasny, John Millikin, Keith Smiley, Leo, Mike Fourie, Patrick Balestra, Robbert Van Ginkel, Ryota, Samuel Giddins, Ulf Adams, Ulf Adams, Vertexwahn, Xavier Bonaventura, Yannic Bonenberger.
PreviousNext