-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[process-stats-dir] Fix a couple of issues #59605
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
Conversation
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.
Looks good to me -- please consider generating toolchains and/or testing the compiler performance presets to test the program (what I should have done in the first place for #58755)
@@ -674,31 +700,8 @@ def main(): | |||
help="stats-dirs to process") | |||
|
|||
args = parser.parse_args() | |||
if len(args.remainder) == 0: |
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.
Thanks for taking the time to factor this in a separate function!
This makes the intent of the below change easy to grasp.
@edymtt Unfortunately the compiler performance bots currently aren't working, I have tested it locally against some CI-generated stats dirs though. By toolchain do you mean that |
7d33ce2
to
eded976
Compare
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.
Mostly lint-nit cleanups.
process
will need the parser passed in to handle printing the help message. Alternatively, the parser.print_help()
could probably be pulled back into main
.
Otherwise LGTM.
Unbuffered output is unsupported for non-binary files.
Apparently `namedtuple` can't be used with `vars` anymore.
eded976
to
605540d
Compare
@swift-ci please smoke test |
@hamishknight got it, local tests will do for now |
--output
, as theFileType
must be buffered for a non-binary output.namedtuple
no longer supportsvars(...)