google-cloud-cpp icon indicating copy to clipboard operation
google-cloud-cpp copied to clipboard

cleanup: use helper function to configure Bazel's toolchain

Open katre opened this issue 3 years ago • 13 comments

…nstead.


This change is Reviewable

katre avatar Jul 13 '22 15:07 katre

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot https://conventionalcommits.org/

/gcbrun

coryan avatar Jul 13 '22 15:07 coryan

Google Cloud Build Logs For commit: da4c213d1cde2d68937fde1a09ac6718c46ea0f6

:information_source: NOTE: Kokoro logs are linked from "Details" below.

google-cloud-cpp-bot avatar Jul 13 '22 15:07 google-cloud-cpp-bot

Thanks for the PR! I have started the CI builds, let's see how they go.

coryan avatar Jul 13 '22 16:07 coryan

I can't see the failures. What version of Bazel does your project use? "use_cpp_toolchains" was added in a recent version.

katre avatar Jul 13 '22 16:07 katre

I can't see the failures.

There is a link to public logs in a previous comment:

https://storage.googleapis.com/cloud-cpp-community-publiclogs/logs/google-cloud-cpp/9466/da4c213d1cde2d68937fde1a09ac6718c46ea0f6/index.html

What version of Bazel does your project use? "use_cpp_toolchains" was added in a recent version.

That would do it. We test with Bazel 5.2.0 and Bazel 4.0.0

coryan avatar Jul 13 '22 16:07 coryan

Looks like the issue is actually rules_cc, which hasn't yet released the changes with use_cpp_toolchain. If I can get them to do a new release, will that be something that we can update in this PR?

katre avatar Jul 13 '22 16:07 katre

Looks like the issue is actually rules_cc, which hasn't yet released the changes with use_cpp_toolchain. If I can get them to do a new release, will that be something that we can update in this PR?

Sure, though I suspect the robots would pick such a change and send us a PR too.

coryan avatar Jul 13 '22 16:07 coryan

@katre have you heard back? If not, maybe we should close this PR until we have some clarity?

coryan avatar Jul 22 '22 15:07 coryan

They were cutting a release yesterday but ran into trouble. Can this stay open until early next week?

katre avatar Jul 22 '22 15:07 katre

Can this stay open until early next week?

Sure, no problem. I suspect you will need to rebase, we have changed the builds since you started the PR.

coryan avatar Jul 22 '22 15:07 coryan

That's fine, once the rules_cc release is done I'll handle that.

katre avatar Jul 22 '22 15:07 katre

In case you missed it, the robots sent us #9572 to update rules_cc. It failed with the oldest version of Bazel we support (4.2):

https://storage.googleapis.com/cloud-cpp-community-publiclogs/logs/google-cloud-cpp/9572/f8b726915a67c676f6d414c672abf097e65c4719/fedora-36-bazel-oldest/log-f6435d74-72db-403c-b8f4-0313c1e267e2.txt

We will drop support for Bazel 4.2 around the time Bazel 6.0 is released. Maybe we can try all these updates at that time?

coryan avatar Jul 27 '22 12:07 coryan