Skip to content
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

timing_card: get profile from structured flag #6465

Merged
merged 3 commits into from
Apr 30, 2024

Conversation

sluongng
Copy link
Contributor

Currently we are assuming that the BuildToolLogs event will have
relatively small amount of files that are uploaded via bytestream API.
Using that assumption, we guessed that the build timing profile must be
one of the 2 files referenced in this event, and differentiate them
based on their file name.

Detect the actual timing profile name by searching through canonical
command line for a --profile= flag. If the user does not specify a
custom profile name, assume the default command.profile.gz name.

Copy link
Member

@jdhollen jdhollen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrote this exact change (more or less) at some point, no clue why I never sent it (execution.log isn't the only other build tool log obviously, so the logic at HEAD breaks if you use any of the other output-generating flags)

sluongng and others added 3 commits April 30, 2024 18:22
Currently we are assuming that the BuildToolLogs event will have
relatively small amount of files that are uploaded via bytestream API.
Using that assumption, we guessed that the build timing profile must be
one of the 2 files referenced in this event, and differentiate them
based on their file name.

Detect the actual timing profile name by searching through canonical
command line for a `--profile=` flag. If the user does not specify a
custom profile name, assume the default `command.profile.gz` name.
Co-authored-by: Brandon Duffany <brandon@buildbuddy.io>
@sluongng sluongng force-pushed the sluongng/timing-profile-name-detect branch from 5d1696e to ebf5b91 Compare April 30, 2024 16:24
@sluongng sluongng merged commit 3c25550 into master Apr 30, 2024
15 of 19 checks passed
@sluongng sluongng deleted the sluongng/timing-profile-name-detect branch April 30, 2024 16:33
iain-macdonald added a commit that referenced this pull request May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants