Skip to content
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 Code Review cannot be built from HEAD #3782

Closed
davido opened this issue Sep 21, 2017 · 7 comments
Closed

Gerrit Code Review cannot be built from HEAD #3782

davido opened this issue Sep 21, 2017 · 7 comments
Assignees
Labels
breakage P1 I'll work on this now. (Assignee required) type: bug

Comments

@davido
Copy link
Contributor

davido commented Sep 21, 2017

I am seeing this breakage in rules_closure when trying to build
Gerrit master (0fb1572ce77314fc9117e51fcbfb8f8884409b97) from this Bazel commit: 4862060:

$ bazel build gerrit
ERROR: /home/davido/.cache/bazel/_bazel_davido/5c01f4f713b675540b8b424c5c647f63/external/io_bazel_rules_closure/java/io/bazel/rules/closure/BUILD:62:1: every rule of type _gensrcjar implicitly depends upon the target '@com_google_protobuf_protoc//:com_google_protobuf_protoc', but this target could not be found because of: no such package '@com_google_protobuf_protoc//': Cannot convert parameter 'url' to type string or sequence of strings, in method download_and_extract(List, string, string, string, string) of 'repository_ctx'.
ERROR: Analysis of target '//:gerrit' failed; build aborted: Loading failed.
INFO: Elapsed time: 9.314s

We are using the last released rules_closure version:

http_archive(
    name = "io_bazel_rules_closure",
    sha256 = "25f5399f18d8bf9ce435f85c6bbf671ec4820bc4396b3022cc5dc4bc66303609",
    strip_prefix = "rules_closure-0.4.2",
    url = "https://bazel-mirror.storage.googleapis.com/github.com/bazelbuild/rules_closure/archive/0.4.2.tar.gz",  # 2017-08-29
)
@davido
Copy link
Contributor Author

davido commented Sep 21, 2017

//CC @damienmg @dslomov

Bisecting the breakage and the first bad commit is:

17214ac Check parameter types for methods when multiple types are allowed.

@damienmg
Copy link
Contributor

damienmg commented Sep 21, 2017 via email

@davido
Copy link
Contributor Author

davido commented Sep 21, 2017

@damienmg

Thanks. This is the very first time, since migration from Buck to Bazel, that Gerrit Code Review (better to say rules_closure, that Gerrit depends on) can't be built form HEAD.

Question: How comes, that Bazel CI hasn't catched this regression? It's green: http://ci.bazel.io/job/gerrit.

In the end it was the reason to set it up, to ensure, that something like that can't ever happen: Gerrit can't be built from the HEAD?

@damienmg
Copy link
Contributor

damienmg commented Sep 21, 2017 via email

@davido
Copy link
Contributor Author

davido commented Sep 21, 2017

@damienmg Cool, so why this change wasn't rollbacked already, after you have noticed, that Gerrit is broken? How comes, that I have spent ca. 30 min. investigation to bisect this breakage?

@damienmg
Copy link
Contributor

damienmg commented Sep 21, 2017 via email

@dslomov
Copy link
Contributor

dslomov commented Sep 21, 2017

The commit went in yesterday, and breakage was discovered in the nightly run.
It takes some time to analyze the nightly runs and bisect.
I am sorry @davido that we are not working fast enough for your high standards, but this is Bazel at HEAD (not a released version at Bazel). Literally direct off the bleeding edge. Expect breakages.

@damienmg damienmg added breakage P1 I'll work on this now. (Assignee required) type: bug labels Sep 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breakage P1 I'll work on this now. (Assignee required) type: bug
Projects
None yet
Development

No branches or pull requests

3 participants