Skip to content

Two recent commits broke "nojava" platform #6214

Closed

Activity

  1. changed the title [-]999354b81a0639700cb460e9e49af858af1cbaca broke "nojava" platform[/-] [+]Two recent commits broke "nojava" platform[/+] on Sep 24, 2018
  2. cushon commented on Sep 24, 2018

    @cushon
    Contributor

    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.

  3. added
    team-Rules-Java
    on Sep 25, 2018
  4. cushon commented on Sep 26, 2018

    @cushon
    Contributor

    @philwo WDYT about just turning off the nojdk build? The failures are the desired outcome of #6105.

  5. philwo commented on Sep 26, 2018

    @philwo
    MemberAuthor

    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.

  6. lberki commented on Sep 27, 2018

    @lberki
    Contributor

    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.

  7. philwo commented on Sep 27, 2018

    @philwo
    MemberAuthor

    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.

  8. lberki commented on Sep 27, 2018

    @lberki
    Contributor

    Well, that's a very compelling argument indeed.

  9. cushon commented on Sep 27, 2018

    @cushon
    Contributor

    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.

  10. jin commented on Sep 28, 2018

    @jin
    Member

    this is P0 issue, right?

  11. added
    P0
    on Oct 1, 2018
  12. cushon commented on Oct 1, 2018

    @cushon
    Contributor

    this is P0 issue, right?

    probably? it'd be nice to get the post-submit unbroken.

    is this blocked on anything?

  13. lberki commented on Oct 2, 2018

    @lberki
    Contributor

    So the decision is to remove the nojava builds?

  14. philwo commented on Oct 2, 2018

    @philwo
    MemberAuthor

    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.

  15. cushon commented on Oct 2, 2018

    @cushon
    Contributor

    You should have decided what to do before you broke it ;)

    Somewhat relatedly, why didn't this breakage get caught by the presubmit?

  16. lberki commented on Oct 2, 2018

    @lberki
    Contributor

    @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.

  17. philwo commented on Oct 2, 2018

    @philwo
    MemberAuthor

    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!”

  18. lberki commented on Oct 2, 2018

    @lberki
    Contributor

    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.

  19. philwo commented on Oct 2, 2018

    @philwo
    MemberAuthor

    I prepared a fix for the pipeline config that makes it possible to build the bazel used by the integration tests and am currently trying to submit it.

  20. philwo commented on Oct 2, 2018

    @philwo
    MemberAuthor

    Fixed in 9bc3b20

  21. philwo commented on Oct 3, 2018

    @philwo
    MemberAuthor

    Somewhat relatedly, why didn't this breakage get caught by the presubmit?

    @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. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P0breakageteam-Rules-Java

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions