-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bazel release 0.17.2 #6164
Comments
Brief summary: 0.17 introduces a regression where Android apps can't be built at the desugaring step when used in conjunction with a manual --host_javabase flag pointing to a JDK 8 installation. If an Android target can't be built using a user-accessible manner that was previously possible, I consider this a critical regression. 2e677fb fixes this regression. Tracking bug: #6159 |
I don't think #6151 is a regression since 0.16x, since that release also used an embedded JDK 9 which would have generated the same warnings. The issue results in some warning spam in the build log, which is annoying but ultimately harmless. |
@laurentlb FYI, looks like the fix for this issue with 0.17.0rc1 didn't make it into 0.17.1: #5974 |
...which is technically correct according to our policy. |
Correct. The goal of patch releases is to make sure that users can upgrade from 0.16 to 0.17. So if a change in 0.17 blocks you from upgrading, we can cherrypick the fix. In other cases, you'll have to wait for the next release (but it's not too bad, I think: we release once a month on average). I'm going to create a candidate with one cherrypick: 2e677fb |
@laurentlb consider including 1d956c7 for #6180, which is a regression in 0.17.1. (cc @mhlopko @iirina) |
0.17.2 rc1 is available here: https://releases.bazel.build/0.17.2/rc1/index.html
|
This version outputs these warnings when installing, FYI:
|
This version fails with:
in
0.16.1 works |
@steeve I tried building |
I won't have my computer until the morning but until I do you can try https://github.com/steeve/bazel_issue_5978 |
With --config jdk8 |
I'm getting a different error with 0.17.2rc1 with https://github.com/steeve/bazel_issue_5978 now:
|
@jin what's your local JDK version / I can build https://github.com/steeve/bazel_issue_5978 with all of the following configurations:
|
That explains it. Sorry for the noise!
…On Thu, Sep 20, 2018 at 2:20 PM Liam Miller-Cushon ***@***.***> wrote:
@jin <https://github.com/jin> what's your local JDK version / JAVA_HOME?
The -Xbootclasspath/p error looks like you have a local JDK 9, which
isn't going to work with --config=jdk8.
I can build https://github.com/steeve/bazel_issue_5978 with all of the
following configurations:
JAVA_HOME=$JAVA8_HOME bazel-0.17.2rc1-linux-x86_64 build --config=jdk8 //:sample
JAVA_HOME=$JAVA8_HOME bazel-0.17.2rc1-linux-x86_64 build //:sample
JAVA_HOME=$JAVA9_HOME bazel-0.17.2rc1-linux-x86_64 build //:sample
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6164 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAVPDkPv_x7dmKWC3OkSen2gjr_RbJV_ks5uczOQgaJpZM4WrqxA>
.
|
I think I have an explanation for the I was trying to reproduce on linux, and the version of
The issue affecting the darwin binary looks identical to #5978 (comment), which we fixed by adding a step to the release pipeline to build the release with itself: #5978 (comment). @philwo any chance that change was only made for the linux release pipeline and not for darwin? |
I think that's what happened. Diffing the linux [1] and darwin [2] release configs, I see: --- darwin 2018-09-19 23:45:10.380907192 -0700
+++ linux 2018-09-19 23:45:15.880890494 -0700
@@ -3,5 +3,5 @@
mkdir output
cp bazel-bin/src/bazel output/bazel
-bazel build --define IPHONE_SDK=1 -c opt --stamp --embed_label \"${release_name}\" --workspace_status_command=scripts/ci/build_status_command.sh src/bazel scripts/packages/with-jdk/install.sh
+output/bazel build -c opt --stamp --embed_label \"${release_name}\" --workspace_status_command=scripts/ci/build_status_command.sh src/bazel scripts/packages/with-jdk/install.sh scripts/packages/debian/bazel-debian.deb scripts/packages/debian/bazel.dsc scripts/packages/debian/bazel.tar.gz bazel-distfile.zip We should be using [1] https://buildkite.com/bazel/release/builds/105#6874f846-9cff-469b-9095-a692db9f3006 |
Arghh, sorry :( Indeed, I must have missed that when updating the pipeline. I'll make the fix right now. |
Fixed. All builds in the "release pipeline" from now on will use the fixed configuration. |
I'm a bit confused with the messages. |
AFAIU, we don't have to cherrypick anything in order to fix the error that @cushon mentioned above, as the problem was only in our CI pipeline configuration (which I fixed now). The next time you or anyone else builds a release candidate or a final release, the release binary on macOS will be built in the correct way (the same as on Linux and Windows) and that should fix the error. |
Thanks @philwo! @laurentlb can you build another release candidate (with no additional cherry-picks) so the fix to the release pipeline can be verified before the final release? |
Is it possible to make an 0.17.2rc2 then? Or overwrite the 0.17.2rc1 with the new release pipeline. |
Thanks, looks good to me:
@steeve can you verify that fixes the problem you were seeing? |
I can confirm that rc2 fixes the jdk8 issue! |
Bazel 17.2 released: https://github.com/bazelbuild/bazel/releases/tag/0.17.2 (cc @vbatts @petemounce) |
https://copr.fedorainfracloud.org/coprs/vbatts/bazel/build/801272/
I tried it locally, and it compiled fine for centos. Hopefully #6150 is
not an issue any longer.
|
Pushed to chocolatey |
Hmm, I still see this with The command
So I try to tell bazel about this:
And get an error in response:
Any hints on how to fix this? (Seeing how all relevant issues are closed I suspect I might be doing something wrong) |
@dimsuz could you please file a new issue and tag me in it? This issue is for the 0.17.2 release. |
This issue is for tracking a patch release on top of 0.17.1 (#5059).
Release policy: https://bazel.build/support.html#policy
The text was updated successfully, but these errors were encountered: