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

rules_foreign_cc is failing with Bazel@HEAD in Downstream CI. #1054

Closed
sgowroji opened this issue Jun 12, 2023 · 13 comments
Closed

rules_foreign_cc is failing with Bazel@HEAD in Downstream CI. #1054

sgowroji opened this issue Jun 12, 2023 · 13 comments

Comments

@sgowroji
Copy link
Member

https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3090#0188ad5a-7d51-468f-a6c5-9711ab308d0f

Platform: Multiple

Logs:

ERROR: /private/var/tmp/_bazel_buildkite/4e5225130fdc7fb54adecff717a61430/external/rules_python/docs/BUILD:36:12: no such target '@bazel_tools//tools/python:private/defs.bzl': target 'private/defs.bzl' not declared in package 'tools/python'

Steps:

git clone https://github.com/bazelbuild/rules_foreign_cc.git
git reset 62230f8a2123a64b411a3888f75128a10bfe0755 --hard
export USE_BAZEL_VERSION=06992d2d0da3ab4628028cecbb3f3dc4965f9e88
bazel build //...

CC @meteorcloudy

@meteorcloudy
Copy link
Member

The missing bzl file was removed from Bazel HEAD at bazelbuild/bazel@d7f2485

@jsharpe
Copy link
Collaborator

jsharpe commented Jun 13, 2023

This requires bumping rules_python which requires bumping the min supported version to 5.4.0. @UebelAndre @jheaff1 do you have any opinions on doing this now? 4.x goes out of support Jan 2024.

@jheaff1
Copy link
Collaborator

jheaff1 commented Jun 13, 2023

I think we’ve valiantly supported Bazel 4 up to this point but personally would have no qualms with bumping up to 5.4.0 given this issue

@jsharpe
Copy link
Collaborator

jsharpe commented Jun 13, 2023

I'd propose we cut a release that is still compatible with 4.x as there's a fair amount of changes that have gone in since the last release and then we can land the bump to rules_python to fix the downstream CI and bump the min version up to 5.4.0. Sound reasonable?

@jheaff1
Copy link
Collaborator

jheaff1 commented Jun 14, 2023

I'd propose we cut a release that is still compatible with 4.x as there's a fair amount of changes that have gone in since the last release and then we can land the bump to rules_python to fix the downstream CI and bump the min version up to 5.4.0. Sound reasonable?

I’d say that sounds very reasonable!

@sgowroji
Copy link
Member Author

Gentle ping on this issue, Can anyone share the latest update. Thanks!

@sgowroji
Copy link
Member Author

Hi Team, Any update on this issue?

@jsharpe
Copy link
Collaborator

jsharpe commented Sep 27, 2023

Apologies; I have limited time available at the moment to sort out the releases to enable us to resolve this issue.

@jsharpe
Copy link
Collaborator

jsharpe commented Oct 14, 2023

Looking at this some more - bumping rules_python only really bumps the min version for the examples build on CI. 4.x users can just set an older version of rules_python in their WORKSPACE file so I'm going to go ahead and bump rules_python so that the downstream CI is fixed.

@jsharpe
Copy link
Collaborator

jsharpe commented Oct 14, 2023

Hopefully merging 8fc5dbb will have resolved this issue.

@sgowroji
Copy link
Member Author

sgowroji commented Nov 8, 2023

@jsharpe
Copy link
Collaborator

jsharpe commented Dec 6, 2023

Working towards this here: #1127

@sgowroji
Copy link
Member Author

We can close this issue now as the CI is failing with different error.

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

No branches or pull requests

4 participants