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

fixing issue with bazel shutdown causing circleci hung #2203

Closed
wants to merge 19 commits into from

Conversation

huang195
Copy link
Member

@huang195 huang195 commented May 7, 2019

bazel shutdown is causing some clean up problems in circleci that's blocking CI.

@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label May 7, 2019
@istio-testing istio-testing requested review from kyessenov and linsun May 7, 2019 20:56
@istio-testing
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: huang195
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: venilnoronha

If they are not already assigned, you can assign the PR to them by writing /assign @venilnoronha in a comment when ready.

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@huang195
Copy link
Member Author

huang195 commented May 7, 2019

/hold

@huang195
Copy link
Member Author

huang195 commented May 8, 2019

macos CI check is somewhat different from linux version, which uses a fixed 0.22 version of bazel. macos relies on brew which could install newer version of bazel. At the moment, it install 0.25 version of bazel.

Update: bazel doesn't support older versions via brew (https://github.com/bazelbuild/homebrew-tap). ugh

@istio istio deleted a comment from istio-testing May 8, 2019
@huang195
Copy link
Member Author

huang195 commented May 8, 2019

for macos, the flag --incompatible_bzl_disallow_load_after_statement=false is a wet bandaid that will eventually have to fall off. Its default is already to true. In the very near future, the flag will be removed, and all bzl files need to be modified to be compliant with this new check.

@huang195
Copy link
Member Author

huang195 commented May 8, 2019

@PiotrSikora @lizan @qiwzhang can you help take a look at this PR? I'm looking to revert some of the changes from this PR (#1914) as it's causing CircleCI to consistently hang. I'm at a loss with macos as brew is installing bazel 0.25 and it's introducing quite a bit of incompatibility issues that older version of bazel 0.22 that we are using for linux does not have.

@huang195 huang195 force-pushed the remove_bazel_shutdown branch from 8699786 to 0cc35b2 Compare May 8, 2019 15:33
@huang195
Copy link
Member Author

huang195 commented May 8, 2019

FYI, after digging around on github on recently merged PRs onto the master branch, I see that the last time macos CI ran successfully was when brew installed 0.23 version of bazel :(

@lizan
Copy link
Contributor

lizan commented May 8, 2019

add --incompatible_bzl_disallow_load_after_statement=false to mac bazel CLI should fix mac CI

@huang195
Copy link
Member Author

huang195 commented May 8, 2019

@lizan yeah I tried to add the flag, but the build hit other problems, so I removed the flag. See this circleci build that had this flag set to false: https://circleci.com/gh/istio/proxy/6151:

ERROR: /Users/distiller/.cache/bazel/external/envoy/bazel/BUILD:113:1: error loading package '@com_github_grpc_grpc//src/proto/grpc/health/v1': in /Users/distiller/.cache/bazel/external/com_github_grpc_grpc/bazel/grpc_build_system.bzl: Label '@com_github_grpc_grpc//:bazel/cc_grpc_library.bzl' crosses boundary of subpackage '@com_github_grpc_grpc//bazel' (perhaps you meant to put the colon here: '@com_github_grpc_grpc//bazel:cc_grpc_library.bzl'?) and referenced by '@envoy//bazel:grpc_health_proto'
ERROR: Analysis of target '//src/envoy:envoy' failed; build aborted: Analysis failed

Any idea what could be causing this problem?

@istio istio deleted a comment from istio-testing May 9, 2019
@istio istio deleted a comment from istio-testing May 9, 2019
@istio istio deleted a comment from istio-testing May 9, 2019
@istio istio deleted a comment from istio-testing May 9, 2019
@huang195
Copy link
Member Author

/test proxy-presubmit-asan

@istio istio deleted a comment from istio-testing May 10, 2019
@istio-testing
Copy link
Collaborator

@huang195: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
prow/proxy-presubmit-asan.sh 9f2ec21 link /test proxy-presubmit-asan

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@huang195
Copy link
Member Author

@lizan I feel like going down a rabbit hole chasing down all the dependencies that bazel 0.25 on macos is causing. I'm going to open another PR that fixes all the other CI cases except macos, and close this one. As it's not one of the "required" CIs, hopefully, it will at least not block all the PRs that would otherwise succeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants