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

Bazel not building #2690

Closed
mhutchinson opened this issue Apr 4, 2022 · 0 comments · Fixed by #2743
Closed

Bazel not building #2690

mhutchinson opened this issue Apr 4, 2022 · 0 comments · Fixed by #2743
Assignees
Labels

Comments

@mhutchinson
Copy link
Contributor

DEBUG: Rule 'com_google_googleapis' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "91220997bb6bce38c979f4980da1103e9bc23abc81a09c3045459fbc89c4d1eb"
DEBUG: Call stack for the definition of repository 'com_google_googleapis' which is a http_archive (rule definition at /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/bazel_tools/tools/build_defs/repo/http.bzl:292:16):
 - /workspace/WORKSPACE:26:1
Analyzing: 8 targets (1 packages loaded, 0 targets configured)
INFO: SHA256 (https://github.com/bazelbuild/rules_go/archive/7d17d496a6b32f6a573c6c22e29c58204eddf3d4.zip) = bf483b3be44fbe1dc798f18470cadf67541f5d890cad691ef335546a88f5ba0f
DEBUG: Rule 'io_bazel_rules_go' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "bf483b3be44fbe1dc798f18470cadf67541f5d890cad691ef335546a88f5ba0f"
DEBUG: Call stack for the definition of repository 'io_bazel_rules_go' which is a http_archive (rule definition at /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/bazel_tools/tools/build_defs/repo/http.bzl:292:16):
 - /workspace/WORKSPACE:41:1
Analyzing: 8 targets (14 packages loaded, 56 targets configured)
INFO: Call stack for the definition of repository 'zlib' which is a http_archive (rule definition at /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/bazel_tools/tools/build_defs/repo/http.bzl:292:16):
 - /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/com_google_protobuf/protobuf_deps.bzl:9:9
 - /workspace/WORKSPACE:24:1
WARNING: Download from https://zlib.net/zlib-1.2.11.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
ERROR: An error occurred during the fetch of repository 'zlib':
   java.io.IOException: Error downloading [https://zlib.net/zlib-1.2.11.tar.gz] to /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/zlib/zlib-1.2.11.tar.gz: GET returned 404 Not Found
ERROR: /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/com_google_protobuf/BUILD:150:1: @com_google_protobuf//:protobuf depends on @zlib//:zlib in repository @zlib which failed to fetch. no such package '@zlib//': java.io.IOException: Error downloading [https://zlib.net/zlib-1.2.11.tar.gz] to /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/zlib/zlib-1.2.11.tar.gz: GET returned 404 Not Found
ERROR: Analysis of target '//:trillian_proto' failed; build aborted: no such package '@zlib//': java.io.IOException: Error downloading [https://zlib.net/zlib-1.2.11.tar.gz] to /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/zlib/zlib-1.2.11.tar.gz: GET returned 404 Not Found
INFO: Elapsed time: 10.651s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (17 packages loaded, 161 targets configured)

zlib 1.2.12 was released on March 27 2022, and it looks like they've immediately taken down the 1.2.11 release for download. The HEAD version of protobuf is still pinned against the old version: https://github.com/protocolbuffers/protobuf/blob/main/protobuf_deps.bzl#L35

For now, recommend removing bazel from cloudbuild integration. Leave this open to determine if we go all the way and remove it, or try to repair (or at least, await upstream repair).

mhutchinson added a commit to mhutchinson/trillian that referenced this issue Apr 4, 2022
@pav-kv pav-kv mentioned this issue Apr 5, 2022
2 tasks
@mhutchinson mhutchinson self-assigned this May 26, 2022
mhutchinson added a commit to mhutchinson/trillian that referenced this issue May 26, 2022
To our knowledge nobody was using this and python support was already removed in google#1964. If the removal of this affects anybody and they let us know, then I'm open to bringing this back. Without knowing it's used, this is something that breaks from time to time and demands investigation to keep CI working and thus hard to justify the return on investment.

Fixes google#2690
mhutchinson added a commit that referenced this issue May 26, 2022
To our knowledge nobody was using this and python support was already removed in #1964. If the removal of this affects anybody and they let us know, then I'm open to bringing this back. Without knowing it's used, this is something that breaks from time to time and demands investigation to keep CI working and thus hard to justify the return on investment.

Fixes #2690
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant