Skip to content

Commit 831d0d3

Browse files
Bazel Release Systemkeertk
Bazel Release System
authored andcommitted
Release 6.2.1 (2023-06-02)
Baseline: 758b44d Release Notes: + Automatic code cleanup. (bazelbuild#18504) + Update relnotes scripts (bazelbuild#18503) + Fix bazelbuild#18493. (bazelbuild#18512) + Fix formatting of release notes (bazelbuild#18533) + Use extension rather than local names in ModuleExtensionMetadata (bazelbuild#18535) Acknowledgements: This release contains contributions from many people at Google, as well as Fabian Meumertzheim, Pavan Singh.
1 parent 1289453 commit 831d0d3

File tree

1 file changed

+230
-0
lines changed

1 file changed

+230
-0
lines changed

CHANGELOG.md

Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,233 @@
1+
## Release 6.2.1 (2023-06-02)
2+
3+
```
4+
Baseline: 758b44dab552f31b378874b5bf4c0609bfef6f5d
5+
6+
Release Notes:
7+
8+
+ Automatic code cleanup. (#18504)
9+
+ Update relnotes scripts (#18503)
10+
+ Fix https://github.com/bazelbuild/bazel/issues/18493. (#18512)
11+
+ Fix formatting of release notes (#18533)
12+
+ Use extension rather than local names in ModuleExtensionMetadata (#18535)
13+
14+
Acknowledgements:
15+
16+
This release contains contributions from many people at Google, as well as Fabian Meumertzheim, Pavan Singh.
17+
```
18+
19+
## Release 7.0.0-pre.20230517.4 (2023-05-26)
20+
21+
```
22+
Baseline: 267ac1f14f733a41380c1f70d095f096b8798c6b
23+
24+
Cherry picks:
25+
26+
+ 98d5d5f6980ec8513dc5c0ee95fcabe3b80beb47:
27+
Download outputs that were not downloaded during spawn execution
28+
in `finalizeAction`.
29+
+ 02853f888cd8cea6a0e06b0ca417e0470de2cec0:
30+
Fix non-determinism in the `FailureDetail` produced for a
31+
package with multiple label crosses subpackage boundary errors.
32+
```
33+
34+
Incompatible changes:
35+
36+
- This has the side effect of changing the message on unsuccessful
37+
builds from
38+
```
39+
FAILED: Build did NOT complete successfully (0 packages loaded)
40+
```
41+
to
42+
```
43+
ERROR: Build did NOT complete successfully
44+
```
45+
- Bazel no longer increases the delay between progress updates when
46+
there is no cursor control.
47+
- This has the side effect of changing the message on unsuccessful
48+
builds from
49+
```
50+
FAILED: Build did NOT complete successfully (0 packages loaded)
51+
```
52+
to
53+
```
54+
ERROR: Build did NOT complete successfully
55+
```
56+
- the --experimental_async_execution flag is now a no-op.
57+
- --experimental_replay_action_out_err is not a no-op.
58+
- `cquery --output=files` also outputs source files.
59+
- `--incompatible_strict_conflict_checks` is flipped to true. See
60+
https://github.com/bazelbuild/bazel/issues/16729 for details.
61+
- `--incompatible_strict_conflict_checks` is flipped to true. See
62+
https://github.com/bazelbuild/bazel/issues/16729 for details.
63+
- `--incompatible_always_include_files_in_data` is flipped to true.
64+
See https://github.com/bazelbuild/bazel/issues/16654 for details.
65+
- This changes the behavior of Python version in exec/host
66+
configuration. Mitigation is to set Python version on the targets.
67+
- When multiple --deleted_packages options are passed on the
68+
command line, they will be concatenated instead of the latest one
69+
taking effect.
70+
- This has the side effect of changing the message on unsuccessful
71+
builds from
72+
- JSON profile: Use doubles instead of strings for counter series.
73+
- query --output=proto --order_output=deps now returns targets in
74+
topological order (previously there was no ordering).
75+
- --experimental_build_transitive_python_runfiles is flipped to
76+
false. See #16303 for details
77+
- --incompatible_python_disable_py2 is flipped to true. See #17293
78+
for details.
79+
- When remote cache evicts blobs, Bazel will exit with code 39.
80+
- `--features` only applies to targets built in the target
81+
configuration, and `--host_features` is used for the host / exec
82+
configuration (gated behind `--incompatible_use_host_features`)
83+
- `--incompatible_strict_conflict_checks` is flipped to true. See
84+
https://github.com/bazelbuild/bazel/issues/16729 for details.
85+
- Bazel's local CPU resource on Linux is now container aware. Use
86+
`--local_cpu_resources`, `--loading_phase_threads` or `--jobs` to
87+
override.
88+
- `copy_from_rule` is exec_groups is deprecated
89+
(https://github.com/bazelbuild/bazel/issues/17668).
90+
- --legacy_bazel_java_test is now a no-op
91+
- --legacy_bazel_java_test is now a no-op
92+
- --legacy_bazel_java_test is now a no-op
93+
- `--experimental_execution_graph_log` no longer exists. Current
94+
users that want local logs need to pass
95+
`--experimental_enable_execution_graph_log
96+
--experimental_execution_graph_log_path=/some/local/path`.
97+
Current users that want logs uploaded to BEP need to pass
98+
`--experimental_enable_execution_graph_log
99+
--experimental_stream_log_file_uploads`.
100+
- Remove 'darwin' as a CPU value, use 'darwin_x86_64' instead
101+
- Remove high priority workers functionality from blaze.
102+
- Renamed PackageMetrics proto message to PackageLoadMetrics. The
103+
formats should be wire compatible.
104+
105+
New features:
106+
107+
- The `aquery` and `cquery` commands now respect the
108+
`--query_file` flag just like the `query` command.
109+
- --experimental_repository_disable_download is now promoted to
110+
stable and is also available under the name
111+
--repository_disable_download .
112+
113+
Important changes:
114+
115+
- The new path variable `$(rlocationpath ...)` and its plural form
116+
`$(rlocationpaths ...)` can be used to expand labels to the paths
117+
accepted by the `Rlocation` function of runfiles libraries. This
118+
is the preferred way to access data dependencies at runtime and
119+
works on all platforms, even when runfiles are not enabled (e.g.,
120+
on Windows by default).
121+
- Starlark `print()` statements are now emitted iff the line of
122+
code is executed. They are no longer replayed on subsequent
123+
invocations unless the Starlark code is re-executed.
124+
Additionally, multiple identical `print()` statements (same
125+
string from the same line of code, e.g. from a loop) are all
126+
emitted and no longer deduplicated.
127+
- Fixes a bug where some compilation flags would not be applied to
128+
a cc_test
129+
- removed outdated ctx.host_fragments
130+
- removed outdated ctx.host_configuration
131+
- Now that the host configuration is finished, `genrule` should
132+
prefer the use of `tools` and stop using `exec_tools`.
133+
- Added a `native.package_relative_label()` function, which
134+
converts a label string to a Label object in the context of the
135+
calling package, in contrast to `Label()`, which does so in the
136+
context of the current .bzl file. Both functions now also accept
137+
relative labels such as `:foo`, and are idempotent.
138+
- Update Android manifest merger to v30.1.3, and also drop support
139+
for legacy (pre-D8) desugaring.
140+
- Adds coverage metric support to android_local_test
141+
- Correctly encode double value positive infinity as "inf" instead
142+
of "+inf" for textprotos.
143+
- Add --use_target_platform_for_tests which uses the target
144+
platform for executing tests instead of the execution platform.
145+
- Custom C++ rules on Windows calling
146+
cc_common.create_linking_context_from_compilation_outputs should
147+
review whether each target of the rule type should produce a
148+
dynamic library since a condition which blocked their creation
149+
has been moved to the rules from behind the API.
150+
- Add flag `--experimental_remote_cache_ttl` and set the default
151+
value to 3 hours.
152+
- making --incompatible_use_platforms_repo_for_constraints do
153+
nothing. Using constraints from @bazel_tools//platforms with or
154+
without the flag will throw error with message "Constraints from
155+
@bazel_tools//platforms have been removed. Please use constraints
156+
from @platforms repository embedded in Bazel, or preferably
157+
declare dependency on https://github.com/bazelbuild/platforms"
158+
- Fixed an issue where WORKSPACE and WORKSPACE-loaded .bzl files
159+
couldn't see the Bzlmod root module's mappings when Bzlmod is
160+
enabled.
161+
- Subsequent settings of --extra_execution_platforms now override
162+
previous settings, instead of adding them to a list. If you
163+
currently set --extra_execution_platforms more than once, please
164+
migrate by passing a list of values to
165+
--extra_execution_platforms instead so that earlier values aren't
166+
overwritten.
167+
- @bazel_tools//config:common_settings.bzl has been removed.
168+
Use @bazel_skylib//rules:common_settings.bzl instead.
169+
- cc_shared_library is no longer experimental, see
170+
https://github.com/bazelbuild/bazel/issues/16709 for details
171+
- The flag `--distinct_host_configuration` is removed. It has been
172+
a no-op since Bazel 6.0.0.
173+
- Added `native.module_name()` and `native.module_version()` to
174+
allow BUILD macro authors to acquire information about which
175+
Bazel module the current repo is associated with.
176+
- Add `--skip_incompatible_explicit_targets` option
177+
- Remove 'darwin' as a CPU value, use 'darwin_x86_64' instead
178+
- cc_test can now be configured by using a native.toolchain().
179+
- `@foo` labels can now be used on the command line as the
180+
top-level target (that is, `bazel build @foo` now works).
181+
Double-dot syntax is now forbidden (`bazel build ../foo` will no
182+
longer work).
183+
- The location of rules that explicitly specify `generator_name`
184+
and/or `generator_function` attributes (typically because they
185+
are incidentally copied from `native.existing_rule()`) is now the
186+
top-level call in the `BUILD` file, which is consistent with
187+
rules that do not explicitly specify these attributes.
188+
- Warnings (most notably those associated with the `deprecation`
189+
rule attribute) are no longer replayed on subsequent invocations
190+
unless the target in question is re-analyzed. Warnings are purely
191+
informational, so this change has no bearing on the correctness
192+
of the build. Downstream tests that break due to this change
193+
should update their expectations.
194+
- `--experimental_remote_build_event_upload` has been renamed to
195+
`--remote_build_event_upload`
196+
- [Breaking change] platform, constraint_setting, and
197+
constraint_value can no longer take an applicable_licenses value.
198+
Remediation is to remove the attribute and rely on the package
199+
level default.
200+
- `--experimental_action_cache_store_output_metadata` has been
201+
renamed to `--action_cache_store_output_metadata`
202+
- Changed the default value for `--remote_build_event_upload` to
203+
`minimal`.
204+
- `--experimental_remote_cache_compression` has been renamed to
205+
`--remote_cache_compression`
206+
- The REPO.bazel and MODULE.bazel files are now also considered
207+
workspace boundary markers.
208+
- Added a new `max_compatibility_level` attribute to the
209+
`bazel_dep` directive, which allows version selection to upgrade
210+
a dependency up to the specified compatibility level.
211+
- `--experimental_remote_grpc_log` has been renamed to
212+
`--remote_grpc_log`
213+
- `--incompatible_remote_build_event_upload_respect_no_cache` is
214+
now a no-op.
215+
- json.decode now takes an optional `default` positional parameter;
216+
if this parameter is specified and decoding fails, json.decode
217+
will return
218+
the `default` value instead of failing Starlark evaluation.
219+
- Overrides specified by non-root modules no longer cause an error,
220+
and are silently ignored instead. They were originally treated as
221+
an error to allow for the future possibility of overrides in the
222+
transitive dependency graph working together; but we've deemed
223+
that infeasible (and even if it was, it'd be so complicated and
224+
confusing to users that it would not be a good addition).
225+
- `applicable_licenses` is no longer allowed on the `platform` rule.
226+
Additionally, `default_package_metadata` from any `package` rule
227+
will not be applied.
228+
229+
This release contains contributions from many people at Google, as well as Adam Lavin, Alessandro Patti, Alex Eagle, AlexTereshenkov, Amanda L Martin, Andreas Herrmann, Andy Hamon, Ankit Agarwal, Ankush Goyal, Anthony Ter-Saakov, Artem Zinnatullin, aryeh, Austin Schuh, Benjamin Lee, Benjamin Peterson, Benjamin Peterson, Benjamin Sigonneau, Ben Lee, Brentley Jones, Cameron Martin, Chirag Ramani, Chirag Ramani, Chris Sauer, Christopher Peterson Sauer, Christopher Rydell, Christopher Sauer, Daniel Grunwald, Daniel KT, Daniel Wagner-Hall, David Ostrovsky, Dimi Shahbaz, eareilg, Ed Schouten, Emil Kattainen, Ezekiel Warren, Fabian Meumertzheim, Fabian Meumertzheim, Fahrzin Hemmati, Fahrzin Hemmati, Gaspare Vitta, George Gensure, Greg, Greg Magolan, Halil Sener, Hao Yuan, hvadehra, hvd, Ivan Golub, Jack Dai, James Ma, Jasper, Jeff Hodges, Jeremy Volkman, Joel Jeske, John Hinnegan, Jon Landis, Jon Parise, jonrose-dev, Joseph Tilahun, Julio Merino, Kai Zhang, keertk, Keith Smiley, Konstantin Erman, Krzysztof Naglik, kshyanashree, Kun-Lu, Lee Mracek, lripoche, Malte Poll, Marc Redemske, Marc Zych, Matt Mackay, Mauricio Galindo, Maxwell Elliott, mohamadk, nathyong, Nick Korostelev, Oliver Lee, Oscar Garzon, Patrick Balestra, Patrick Balestra, Philipp Schrader, Red Daly, redwrasse, robincaloudis, Robin Tweedie, Roger Hu, Sagar Pathare, Saleem Abdulrasool, Sara Adams, Sascha Moecker, Severin Strobl, Siddhesh Bhupendra Kuakde, Simon Mavi Stewart, something_vague, Son Luong Ngoc, Stiopa Koltsov, stoozy, Sushain Cherivirala, tbaing, Ted Kaplan, Ted Kaplan, Ted Logan, Thulio Ferraz Assis, Tom Cnops, Ulf Adams, Ulf Adams, Ulrik Falklof, Uri Baghin, Xavier Bonaventura, Xdng Yng, Xiangquan Xiao, Yannic Bonenberger, Yannic, Yi Cheng, yuzhy8701.
230+
1231
## Release 6.2.0 (2023-05-09)
2232

3233
```

0 commit comments

Comments
 (0)