-
Notifications
You must be signed in to change notification settings - Fork 317
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
migrate mode tests flags which are not yet available #147
Comments
Which flag, what log?
And why 3.4.1? I thought the next release was 3.5?
…On Sat, Aug 1, 2020 at 10:37 AM Philipp Wollermann ***@***.***> wrote:
Pinging the flag owners @aiuto <https://github.com/aiuto> and @joeleba
<https://github.com/joeleba> - if I understand correctly, the flags
should be available in Bazel 3.4.1, right? Then why does it fail (see the
log)? 🤔
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#147 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXHHHEDTW2ZO77PHWQNECDR6QSCRANCNFSM4PRQV5FA>
.
|
The problem is that these issues (e.g.: bazelbuild/bazel#10358, bazelbuild/bazel#11218) are labelled as What are the semantics of labelling an issue with This is an example log describing the failure. |
That's strange. I don't know why the rpm flag is not there. I can't speak
about
the other. I removed the label. It will be removed in 4.0 in any case,
without
a flagged migration or not. No one should be using it since the one in
rules_pkg is more capable and supported.
…On Sat, Aug 1, 2020 at 10:30 PM Siddhartha Bagaria ***@***.***> wrote:
The problem is that these issues (e.g.: bazelbuild/bazel#10358
<bazelbuild/bazel#10358>, bazelbuild/bazel#11218
<bazelbuild/bazel#11218>) are labelled as
migration-3.4 which makes bazelisk think that these flags are available
in bazel-3.4.z, and so it tries to use these flags when running in
--migrate and --strict mode. But these flags are actually not available
in bazel-3.4.z, making the run fail.
What are the semantics of labelling an issue with migration-x.y?
This is an example log
<https://github.com/grailbio/bazel-compilation-database/runs/934784679?check_suite_focus=true>
describing the failure.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#147 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXHHHFVWDQFXJIAFA2X2DDR6TFURANCNFSM4PRQV5FA>
.
|
|
@philwo What do you think about making the flag placement logic a little more intelligent? I can send in a PR to help. I was thinking we can check whether or not to use the flag based on the command that's being used, and checking for that in bazel's help output for that command. Happy to go with whatever you suggest? Without this, migration check in CIs has always been noisy. |
As for the starlark flags, they need to be prefixed with |
@siddharthab That sounds like an interesting idea. 🤔 If you can come up with a way that's not too complex, I'd be happy to review a PR. Regarding the Starlark flags, if they have to be prefixed with |
I would also be interested on knowing how people is supposed to use strict and migrate. |
This has not been an issue in the past several months, so we can close this. |
I would like if before closing it someone from Bazel team could comment on it. What is the official way for the user to migrate to a new bazel version? (thinking specially from an LTS to the next LTS). I assume that it would be to use --strict now that --all_incompatible_changes has been removed in bazelbuild/bazel#13892. |
Closing since this looks more like a Bazel issue. |
For example, as of today, with bazelisk version 1.5.0 and bazel version 3.4.1, the
--migrate
mode tries these flags which are not defined for bazel 3.4.1:How are other people using the
--migrate
flag in practice?See this Github Actions log for a real life example.
To reproduce:
The text was updated successfully, but these errors were encountered: