-
Notifications
You must be signed in to change notification settings - Fork 92
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
Explicit command line does not include label flags #7361
Comments
Hey @tpudlik - thanks for the report! If you take a look at the
which doesn't contain the label flags you mentioned. This is the field we use to render that explicit command line section in the UI. I wonder if it'd be worth filing a https://github.com/bazelbuild/bazel bug to properly populate that build event. Maybe @fmeum or @sluongng have some ideas on how easy of a fix this would be. |
Fabian might know more than I do, but I think Starlark-defined flags are handled separately from Bazel's java-native defined flags. So the OptionParsed event might have happened before any of the Starlark flags were processed in Bazel. The "canonical" StructuredCommandLine event, which comes soon after, is a better basis for the Starlark flags. I think we could add a (?) tooltips on our BuildBuddy UI to help explain these event categories better though 🤔 |
They are handled separately, but they would be available in |
@tpudlik Solving this properly requires quite a bit more effort than I expected. Could you file an issue on the Bazel repo first? |
I'm happy to file a bug on the Bazel side. The reason I thought this might be a BuildBuddy specific issue is that BTX treats label flags correctly (see "original" in the "Command lines" section of https://btx.cloud.google.com/invocations/50854557-b7e2-46a4-97c3-8d997e6b1da1/details). |
We could potentially render |
Ah, I missed the difference between |
The "Explicit command line" section of the invocation does not include label flags, even when those were in fact manually provided on the command line.
Example invocation: https://app.buildbuddy.io/invocation/a4c4ef57-d047-462c-8dc8-93e41d49f0b0. The explicit command line is stated to be,
But in fact, I provided a couple more flags on the command line when generating this invocation:
These flags are listed in the "canonical command line", but they should be part of the "explicit command line", too!
The text was updated successfully, but these errors were encountered: