-
Notifications
You must be signed in to change notification settings - Fork 38.7k
tests: better combine_logs.py behavior #14683
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
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsNo conflicts as of last run. |
|
ACK. very useful! |
|
Concept ACK—I think this functionality is very useful Though I'm not sure about security implications of opening everything that looks like a test directory in Maybe add a check that the directory is owned by the current user as well? |
ryanofsky
left a comment
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.
utACK e2d9b2fec809971de4cfc67048995e33e7e4749c, though I agree it would be good to check ownership.
jnewbery
left a comment
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.
Big concept ACK. Very cool.
A few nits inline. You should also address comments by laanwj, ryanofsky and practicalswift.
|
Concept ACK Nice developer ergonomics improvement! |
|
Concept ACK woot! |
e2d9b2f to
ca9698e
Compare
|
Thanks for the good feedback, all. I've incorporated everyone's suggestions - though I'm testing for tmp directory readability instead of ownership. |
ryanofsky
left a comment
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.
utACK ca9698e9075fb1b85afc01e890cef97e13d25405. Just minor tweaks since last review: changing test prefix, choosing last readble directory, changing help formatting and forbidding unknown options
|
utACK ca9698e9075fb1b85afc01e890cef97e13d25405 |
jnewbery
left a comment
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.
Changes mostly look good, but please remove the dependency on test_framework
ca9698e to
4aabadb
Compare
|
ACK 4aabadb. Thanks for removing the dependency! |
|
re-utACK 4aabadb |
Summary: Have combine_logs.py default to the most recent test directory if no argument is provided. Backport of Core [[bitcoin/bitcoin#14683 | PR14683]] Test Plan: ``` ninja ../test/functional/feature_bip68_sequence.py --configfile=./test/config.ini ../test/functional/combine_logs.py -c ``` Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D7795
Have
combine_logs.pydefault to the most recent test directory if no argument is provided. This allows you to avoid an annoying copy-paste when iterating on a failing test, since you can do something like