-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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 command profile to the BEP under a fixed name #22345
Conversation
@tjgq Could you review this? It's a small change that seems like all upside to me, but curious to learn what you think about it. |
If users specify a custom profile location with `--profile`, the file is added to the BES under its basename. This makes it harder for BES consumers to pick out the profile. Instead, always announce it under its default name `command.profile.gz`.
To be honest, I can see it being confusing both ways (from the standpoint of someone setting @meisterT thoughts? |
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.
I does make sense, we have similar things in other places, e.g.
and
I think end users would not be consuming the profile data from BEP directly. Folks often consume it via some sort of automation system, like a Build Event Service implementation. With more files being added to the build log tools, these service implementations might have a harder time telling which log is the timing profile data. The current workflow requires folks to parse the Using a constant name would help remove all these complications in the future. |
I updated the tests and added a new one to cover the uncompressed format case. |
If users specify a custom profile location with
--profile
, the file is added to the BES under its basename. This makes it harder for BES consumers to pick out the profile. Instead, always announce it under its default namecommand.profile.gz
orcommand.profile
if uncompressed. This additionally allows consumers to detect compression based on just the file name.