-
Notifications
You must be signed in to change notification settings - Fork 361
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
Add rules_apple 2.0.0-rc1 #269
Conversation
2b602d2
to
95746b1
Compare
@meteorcloudy The pipeline fails because bazelbuild/bazel#16578 is not in 6.0.0rc1. Assuming that we cherry-pick all Bzlmod changes to 6.0.0 anyway, should we run against |
Ah, thanks for the info! We also publish prebuilt Bazel binaries for commits in |
@BalestraPatrick Can you push a dummy commit to re-trigger the presubmit? Rebuild doesn't apply my latest bazel version change. |
95746b1
to
dd8fbf4
Compare
We are building with bazel@3dd01cbd44205c9157819ac77304354d08b8964a (ignore the |
@BalestraPatrick Can you reproduce the same issue with |
@meteorcloudy How does one reproduce these type of issues happening only in this BCR pipeline? I can build those targets just fine in |
d601cd7
to
e62a990
Compare
e62a990
to
286fe2e
Compare
Did you build rules_apple as the root module? It basically fails with a dummy module that depends on |
I can reproduce locally:
|
@meteorcloudy I solved those problems with the latest patch. It looks like the problem now is with the runfiles import not being found:
What's the expectation here? I see that bazelbuild/bazel#16124 (comment) (cc @fmeum) is basically complete, but I'm unsure if the expectation is for me to fix this upstream immediately? Or for this release I can even just exclude those 4 tests that are failing because of |
@BalestraPatrick Which runfiles library is rules_apple using? We still have some changes to cherry-pick to fix this problem. I'm fine with temporarily excluding those tests in the first version of rules_apple. |
@BalestraPatrick I had discussions with the Python rules owners and my takeaway was that Bazel users should move away from imports that mention repository names. Instead, all imports should rely on the fact that every repository root is implicitly added to the python path. If needed to resolve ambiguities, everything could be moved one level down into a top-level directory called (in this case) As a result bazelbuild/bazel#16124 will not fix this problem. Instead, you could patch |
@BalestraPatrick I submitted google/xctestrunner#47. Could you try it out locally? |
e6ba93b
to
a2e0969
Compare
a2e0969
to
fde8c97
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
So I came up with two options to unblock this (while waiting for the above change to be merged in xctestrunner):
On a separate note, it would be nice to add |
I think it's totally fine for version
Maybe it's better to introduce it via module extension? You can apply the same patch there. |
We recently cut a new release of
rules_apple
that supports Bazel 6.0.0rc1, so this version should build in the BCR as well now.