-
Notifications
You must be signed in to change notification settings - Fork 56
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
Improve and clean-up Fio code #168
Conversation
Results for SNAFU CI Test
|
Results for SNAFU CI Test
|
@rsevilla87 rebase please |
Results for SNAFU CI Test
|
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.
LGTM
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.
This looks a lot more bulletproof, more maintainable (leveraging self.) and catches CLI errors early at parse time, I like it. Thanks.
parser.add_argument( | ||
'-v', '--verbose', action='store_const', dest='loglevel', const=logging.DEBUG, | ||
default=logging.INFO, help='enables verbose wrapper debugging info') | ||
parser.add_argument( | ||
'-t', '--tool', help='Provide tool name') | ||
'-t', '--tool', help='Provide tool name', required=True) |
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 like this, catch mistakes as early as possible.
I'm running this PR on my laptop using minikube and still getting the same error from fio, no indication of why it happens:
where does this last message even come from? |
never mind that last comment, I was using the wrong snafu, I used yours and now I get a clear idea of what was wrong:
|
can you please rebase @rsevilla87 |
Results for SNAFU CI Test
|
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.
LGTM
Improve Fio code with more log messages, better exception handling and code optimizations.