-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fix make substitution in starlark cc_test env #19038
Conversation
@iancha1992 I think this deserves going into a 6.3.1 release. |
@dflems thank you 🙏. Do we need a similar change on master? There it is also set to a default. Regardless it would be nice to have this test there as well. |
@brentleyjones I think master differs in a way where this doesn't happen there bazel/src/main/starlark/builtins_bzl/common/cc/cc_helper.bzl Lines 742 to 759 in bef4f7f
Alternatively, we could cherry-pick the changes from master if they apply ok |
cc: @bazelbuild/triage |
Hi @dflems could you submit a PR against master? (Since 6.3.0 has been released, the release-6.3.0 branch is no longer active. We'll have to create a new one if we do a patch release.) |
@keertk Master differs to the point where this patch cannot be applied, unfortunately |
@brentleyjones @keertk @iancha1992 Looks like a fix for this exists on master at a63d8eb Landed ~6mo ago but never landed on 6.x? |
Ahh. I just missed it when performing my other cherry-pick. We should take that instead. |
I can cherry-pick that against the new branch (if you haven't by the time I get to my computer). Thanks for the find! |
@iancha1992 I'm pretty sure we will need a 6.3.1 release. Would you be able to create that branch? |
Hey, AFAIU we will cherry-pick a63d8eb instead of this PR right? |
@brentleyjones the 6.3.1 branch has been created. Could you submit a cherry-pick PR? (We'll also need the same against 6.4.0) |
@dflems @brentleyjones Thank you for reporting / looking into this issue. |
@dflems Can you please confirm if this issue has been fixed in 6.3.1rc1? |
@meteorcloudy Sorry for the delay, but yes this issue is fixed in 6.3.1. @keertk Yes, we're very interested in this topic. We currently have an internal fork of Bazel with about 15 patches (used to be over 20 before 6.3.0 was released) on top of it (either open PRs that haven't been merged or other changes required to get our Android builds in a good/stable place). Every time we want to bump our version of Bazel we need to rebase our fork and fix any kind of conflict arising from new upstream changes. This would be much easier if we were able to reduce the number of patches we have and have them merged upstream so that we could directly test releases produced with every release candidate. |
Have you tried to upstream those patches? Any blocker from the Bazel side? |
@meteorcloudy Here is our list with related PR/issue tracking it:
On top of these that are available publicly, we have a few more that I need to check if possible to upstream. |
@BalestraPatrick Thanks for sharing! Those PRs are in many different statues. For PRs that are closed due to inactivity or waiting for user response, please try to reopen the PR, rebase to HEAD and address the reviewer comments. For PRs waiting for review, I can try to draw some attention from: @ahumesky @ted-xie for Android rules |
@BalestraPatrick The two PRs for making Java runtime constraints accessible may become unnecessary with #18262 (if you use them to work around Bazel bugs rather than to encode custom requirements). I asked for clarification on the configurability PR. |
#18882 introduced an issue where nested make variable substitution would fail under
cc_test
. The change to the starlark tests fails before the change incc_helper.bzl
and passes after.@brentleyjones @oquenchil