-
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
Gerrit failing with Bazel@HEAD #6127
Comments
The only JDK 9 gerrit build I see is from the latest build. Did we just add that configuration to buildkite? It's not clear how recent a regression this is. |
The culprit is 7eb9ea1, so I think this also affects 0.17x. I tested with gerrit at @ 7a06549cdffffab00991ed58f55a97546dbe94ac, and:
|
@lberki I mailed you a fix. |
I added this 4 days ago (bazelbuild/continuous-integration@475ccf4). It was requested by @davido and has been green on the Gerrit pipeline (https://buildkite.com/bazel/gerrit) since then, signalling that this would be a regression from the latest release to the next release if it's red now on the downstream project pipeline. |
Indeed, in the past we have had breakages for building Gerrit with different JDKs combinations, that were already known to work in earlier Bazel releases, without discovering the breakages for quite some time (the last one was: #5961). That why we have added this request (bazelbuild/continuous-integration#173). Having the Bazel-CI for JDK 8|9|10|11|... for Gerrit project would help to avoid regressions in future Bazel releases. @philwo I've added this issue bazelbuild/continuous-integration#325 to Bazel-CI project to also add CI-Job for Gerrit for Java 10. |
I confirmed that problem locally. In fact, on Java 9, gerrit build is broken on Bazel 0.17.1rc5
|
@davido that's consistent with #6127 (comment), right? If you want to verify the pending fix: https://bazel-review.googlesource.com/c/bazel/+/74550 |
@cushon Yes, it sounds reasonable. I also confirmed, that on Bazel master (475f40a) there is a different error message (that seems to be identical with the one reported on Bazel CI), so that upcoming 0.18 release is affected as well:
I confirmed, that with your CL applied on Bazel master, build is green again on JDK9:
|
@davido thanks for verifying! That is consistent with my understanding of the bug: 7eb9ea1 is present in 0.18 and at head. Once the fix is merged I think the plan is to cherry-pick it into 0.17 and 0.18. |
SGTM. @cushon Just to make sure I'm not missing something and avoid yet another regression before CI-Job mentioned in bazelbuild/continuous-integration#325 is up and running, I went ahead and tested building Gerrit master (85bf208c81944f2cc91093c6e38be718c4dbeae0) with this pending CL applied: [1] on JDK10 on Bazel@HEAD with your CL applied. It's failing:
Shoud I file new issue? Note, that it worked already, as can be seen from this issue: #5967. [1] https://gerrit-review.googlesource.com/c/gerrit/+/193832 |
@cushon Thanks for confirming, I noticed that, yes, but my understanding was, that the efforts are underway to push JDK 10 support back in upcoming 0.18 release again, not? Is it going to be only available in 0.19 or later? |
cc @lberki
I had thought earlier we might be able to roll forward for 0.18, but that's not going to happen. However the fix for #6105 did make it into 0.18, and that change significantly reduces the risk of upgrading to JDK 10 (or JDK 11) in a subsequent release. I'm still hopeful we can restore JDK 10 support in 0.19. |
@cushon Thanks for confirming and well that's unfortunate. But then we could downgrade the full support for building with Java 10 for gerrit to only supporting building with Vanilla Java Builder on Java 10 on Bazel 0.17 and later. I updated my CL: [1] and switched to using VanillaJavaBuilder and now building Gerrit on Bazel@HEAD with JDK 10 works again:
Update: I applied your suggestion from #6012 and externalized the absolute path to the JDK out of the |
If it affects both 0.17 and 0.18, that's maybe another reason to have a 0.16.2. |
See #6127 PiperOrigin-RevId: 212600423
See #6127 PiperOrigin-RevId: 212600423
See #6127 PiperOrigin-RevId: 212600423
See #6127 PiperOrigin-RevId: 212600423
The fix was released in 0.17.1. |
See #6127 PiperOrigin-RevId: 212600423
See #6127 PiperOrigin-RevId: 212600423
See #6127 PiperOrigin-RevId: 212600423
See #6127 PiperOrigin-RevId: 212600423
See #6127 PiperOrigin-RevId: 212600423
See #6127 PiperOrigin-RevId: 212600423
See #6127 PiperOrigin-RevId: 212600423
See #6127 PiperOrigin-RevId: 212600423
See bazelbuild#6127 PiperOrigin-RevId: 212600423
See #6127 PiperOrigin-RevId: 212600423
https://buildkite.com/bazel/bazel-with-downstream-projects-bazel/builds/434#d0d71269-d29b-41d3-9558-923637bc4c91
/cc @philwo Can you take a look at this?
The text was updated successfully, but these errors were encountered: