You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for breaking the build, but I'm not sure there's much to do here besides turn off those tests.
The regressions for the nojava platform were deliberate. From the RELNOTES for cc96464:
If no JDK is found --javabase will be empty, and builds targeting Java will not be supported. Previously Bazel would fall back to using the embedded JDK as a --javabase, but this is no longer default behaviour. A JDK should be explicitly installed instead to enable Java development.
However, in addition to that I think we have to carefully consider what kind of installations we want to support in Bazel - for example, should Java builds work on a system without a system JDK, but when specifying a --host_javabase / --javabase that's checked into the user's repo or that comes from an external repo? So maybe we have to add a pipeline config for that case, too.
Can we leave the nojava build on with some skeleton functionality? I think there is value in verifying htat one can build and run e.g. C++ binaries and tests even without an installed JDK.
Thinking about it: We can't easily test anything meaningful on that platform, because the "bazel" that is run on that pipeline is of course the latest released version of Bazel, not the Bazel built from a given commit. Thus, running "bazel build //example/cpp/..." only tells us that the latest release Bazel is still able to compile C++ on that platform. Nice to know, but not what we wanted to test.
What we want to test is that the Bazel built at this commit can still build C++. However, we can't build Bazel itself, because we don't have a JDK. 😅 Also our usual integration tests will not work, because they build Bazel as a dependency and that also needs an installed JDK.
You could explicitly configure there to not be a --javabase when running the c++ tests: --define=ABSOLUTE_JAVABASE=/not/a/JDK --host_javabase=@bazel_tools//tools/jdk:absolute_javabase --javabase=@bazel_tools//tools/jdk:absolute_javabase.
First thing: You should have decided what to do before you broke it ;)
It’s a product decision not a technical one: Do we still support using Bazel (for any purpose) on a system that doesn’t have an installed JDK? If yes, we need to test that.
If not, we can of course remove the nojava platform.
@philwo : I thought you said that we can't test this with the current infrastructure and that you said on Thursday that you'd try to cook up something to build Bazel on one system, but test it on another.
If that doesn't work or is too costly, I'd prefer not having the nojava platform -- after all, it's broken at HEAD and there are no plans to unbreak it, so it doesn't deliver any signal.
To be clear: Are you making the decision to no longer support Bazel (even for C++ or genrules) on Systems without an installed JDK?
If yes, I’ll go ahead and delete the platform.
“It’s red and fixing it is hard” is what we did last time, when months later people came screaming to me “omg philwo, why don’t we have a nojava platform!”
To clarify: not having the nojava tests would be awful awful. But if we had to choose between removing nojava tests and defaulting to the embedded JDK, I'd much rather choose the former.
However, @philwo says that I severely overestimated the pain involved in making nojava work, so I think all is well.
Activity
[-]999354b81a0639700cb460e9e49af858af1cbaca broke "nojava" platform[/-][+]Two recent commits broke "nojava" platform[/+]cushon commentedon Sep 24, 2018
Sorry for breaking the build, but I'm not sure there's much to do here besides turn off those tests.
The regressions for the nojava platform were deliberate. From the RELNOTES for cc96464:
cushon commentedon Sep 26, 2018
@philwo WDYT about just turning off the nojdk build? The failures are the desired outcome of #6105.
philwo commentedon Sep 26, 2018
Yes, I think that's fine.
However, in addition to that I think we have to carefully consider what kind of installations we want to support in Bazel - for example, should Java builds work on a system without a system JDK, but when specifying a --host_javabase / --javabase that's checked into the user's repo or that comes from an external repo? So maybe we have to add a pipeline config for that case, too.
philwo commentedon Sep 26, 2018
For reference, here's the list of broken tests (links go to log files):
lberki commentedon Sep 27, 2018
Can we leave the nojava build on with some skeleton functionality? I think there is value in verifying htat one can build and run e.g. C++ binaries and tests even without an installed JDK.
philwo commentedon Sep 27, 2018
Thinking about it: We can't easily test anything meaningful on that platform, because the "bazel" that is run on that pipeline is of course the latest released version of Bazel, not the Bazel built from a given commit. Thus, running "bazel build //example/cpp/..." only tells us that the latest release Bazel is still able to compile C++ on that platform. Nice to know, but not what we wanted to test.
What we want to test is that the Bazel built at this commit can still build C++. However, we can't build Bazel itself, because we don't have a JDK. 😅 Also our usual integration tests will not work, because they build Bazel as a dependency and that also needs an installed JDK.
lberki commentedon Sep 27, 2018
Well, that's a very compelling argument indeed.
cushon commentedon Sep 27, 2018
You could explicitly configure there to not be a
--javabasewhen running the c++ tests:--define=ABSOLUTE_JAVABASE=/not/a/JDK --host_javabase=@bazel_tools//tools/jdk:absolute_javabase --javabase=@bazel_tools//tools/jdk:absolute_javabase.jin commentedon Sep 28, 2018
this is P0 issue, right?
cushon commentedon Oct 1, 2018
probably? it'd be nice to get the post-submit unbroken.
is this blocked on anything?
lberki commentedon Oct 2, 2018
So the decision is to remove the nojava builds?
philwo commentedon Oct 2, 2018
First thing: You should have decided what to do before you broke it ;)
It’s a product decision not a technical one: Do we still support using Bazel (for any purpose) on a system that doesn’t have an installed JDK? If yes, we need to test that.
If not, we can of course remove the nojava platform.
cushon commentedon Oct 2, 2018
Somewhat relatedly, why didn't this breakage get caught by the presubmit?
lberki commentedon Oct 2, 2018
@philwo : I thought you said that we can't test this with the current infrastructure and that you said on Thursday that you'd try to cook up something to build Bazel on one system, but test it on another.
If that doesn't work or is too costly, I'd prefer not having the
nojavaplatform -- after all, it's broken at HEAD and there are no plans to unbreak it, so it doesn't deliver any signal.philwo commentedon Oct 2, 2018
To be clear: Are you making the decision to no longer support Bazel (even for C++ or genrules) on Systems without an installed JDK?
If yes, I’ll go ahead and delete the platform.
“It’s red and fixing it is hard” is what we did last time, when months later people came screaming to me “omg philwo, why don’t we have a nojava platform!”
lberki commentedon Oct 2, 2018
To clarify: not having the
nojavatests would be awful awful. But if we had to choose between removingnojavatests and defaulting to the embedded JDK, I'd much rather choose the former.However, @philwo says that I severely overestimated the pain involved in making
nojavawork, so I think all is well.philwo commentedon Oct 2, 2018
I prepared a fix for the pipeline config that makes it possible to build the
bazelused by the integration tests and am currently trying to submit it.philwo commentedon Oct 2, 2018
Some more failing tests that I'll blacklist:
philwo commentedon Oct 2, 2018
Fixed in 9bc3b20
philwo commentedon Oct 3, 2018
@cushon We unfortunately ran out of Google Cloud quota and couldn't run enough VMs to run all the platforms during presubmit...
I organized us more quota and enabled all tests on all platforms again yesterday, so in the future we should catch this. :)