-
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
Bazel does not (visibly?) begin loading phase when Starlark flag is set #14215
Comments
@aranguyen Friendly ping. We have reduced the amount of Starlark flags to the absolute minimum because not knowing what Bazel is currently loading makes for a pretty bad UX. |
So, this is a bit tricky; what kind of fix do you think would work for your case here? Note that, we kind of 'have' to do the loading of the Starlark flags (in order to get their types and default values). What about?
|
|
For option 1, I think we could add that at the beginning of the parse method for StarlarkOptionsParser https://source.corp.google.com/piper///depot/google3/third_party/bazel/src/main/java/com/google/devtools/build/lib/runtime/BlazeOptionHandler.java;l=263;rcl=431203742 since we're already passing in the env and eventHandler. Since this is a known behavior with starlark flag parsing and it's not blocking, I'm going to mark it as lower priority. |
Fixed by 51e6c38, which is in 6.1.0. |
Description of the problem / feature request:
When a Starlark flag is set on the command line, Bazel never (visibly?) enters the loading phase. When there are repository rules that take a while to load (e.g. because they download or extract large files), this causes Bazel to get stuck after emitting the Invocation ID without any indication of what it is doing.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Observe that in the second invocation, no Bazel status information will be printed until the repository rule times out. If Ctrl+C is used to interrupt the build,
ERROR: //:flag :: Error loading option //:flag: null
is printed.What operating system are you running Bazel on?
Linux
What's the output of
bazel info release
?Affects:
Have you found anything relevant by searching the web?
No
Any other information, logs, or outputs that you want to share?
The reproducer is available here.
The text was updated successfully, but these errors were encountered: