-
Notifications
You must be signed in to change notification settings - Fork 38.7k
tests: Print dots by default in functional tests #14569
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
|
For this reason the test runner prints |
|
This is probably due to |
| No more conflicts as of last run. |
|
@MarcoFalke Is this what you mean or just remove the |
|
Previously there was no condition, and it would always print: https://github.com/bitcoin/bitcoin/pull/14504/files?w=1#diff-a5b9b84e3a3387476629e74ddb227a7eR502 Not sure why that got added. |
|
@ken2812221 don't you have to kill the waiting at some point since you put it on background? |
To be coherent with @ken2812221 Maybe we can add the or the |
test/functional/test_runner.py
Outdated
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 think it was nice to have some indicator that something was running. I'd prefer to keep it.
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 agree: running functional tests, without any progress indicator, it's not a good incentive to run functional tests.
Gnappuraz
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 2e4435c
maflcko
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.
Sorry for nitpicking this trivial change to death. Feel free to ignore my feedback.
test/functional/test_runner.py
Outdated
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.
self.logging_level is now unused. I'd slightly prefer to remove it.
test/functional/test_runner.py
Outdated
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.
Is it really necessary to add an option to enable a feature that should be on by default? I think the average user would prefer to see dots without having to enable them by typing --dots every time.
test/functional/test_runner.py
Outdated
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.
| parser.add_argument('--quiet', '-q', action='store_true', help='only print results summary and failure logs') | |
| parser.add_argument('--quiet', '-q', action='store_true', help='only print dots, results summary and failure logs') |
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.
Could just add dots here and remove the other option?
|
@MarcoFalke Now it print dots by default. |
|
utACK 4bd125f |
|
utACK 4bd125f |
|
Seems reasonable. The whole point of quiet mode was to not fill the screen with output. Now that the dots erase themselves after each test, that's no longer an issues. Tested ACK 4bd125f |
4bd125f tests: Print dots by default (Chun Kuan Lee) Pull request description: In cron job (https://travis-ci.org/bitcoin/bitcoin/builds/445823485), the functional tests would fail due to silent for 10 mins. After applying this patch, we con't see any extra characters printed on screen but also avoid timeout (https://travis-ci.org/ken2812221/bitcoin/builds/445981698) Tree-SHA512: c0412e171a451b27f9734311c7f063ad3fd7142087ed1e3786b4f303acaebc043f970523d6c2d4ef57ec5857040e2b6f7fd6345304353e7805d76044d317344d
5fbf26c [Travis] Give more time to tests (warrows) 1aa76d0 travis: Use absolute paths for cache dirs (MarcoFalke) 1fa0bf3 travis: Fix caching issues (MarcoFalke) e4945a2 [Travis] Log more info (warrows) ae0b4d0 tests: Print remaining jobs in test_runner.py (Steven Roose) a57939f tests: Print dots by default (Chun Kuan Lee) cde9d13 show the progress of functional test (Isidoro Ghezzi) Pull request description: Backport of bitcoin#14504, bitcoin#14569 and bitcoin#15466. This should help to see which test takes too long or blocks travis when it hangs because of the 50 minutes limit. ACKs for commit 5fbf26: Fuzzbawls: ACK 5fbf26c Tree-SHA512: 0c2bebd8f160e2c6358a598f3cf95c3451068af1b5e269d79366fe890f9609c140555cb182f0f4563dac35a0a433556eaf06e4a45865fd55bdd357130acc1d2c
4bd125f tests: Print dots by default (Chun Kuan Lee) Pull request description: In cron job (https://travis-ci.org/bitcoin/bitcoin/builds/445823485), the functional tests would fail due to silent for 10 mins. After applying this patch, we con't see any extra characters printed on screen but also avoid timeout (https://travis-ci.org/ken2812221/bitcoin/builds/445981698) Tree-SHA512: c0412e171a451b27f9734311c7f063ad3fd7142087ed1e3786b4f303acaebc043f970523d6c2d4ef57ec5857040e2b6f7fd6345304353e7805d76044d317344d # Conflicts: # test/functional/test_runner.py
4bd125f tests: Print dots by default (Chun Kuan Lee) Pull request description: In cron job (https://travis-ci.org/bitcoin/bitcoin/builds/445823485), the functional tests would fail due to silent for 10 mins. After applying this patch, we con't see any extra characters printed on screen but also avoid timeout (https://travis-ci.org/ken2812221/bitcoin/builds/445981698) Tree-SHA512: c0412e171a451b27f9734311c7f063ad3fd7142087ed1e3786b4f303acaebc043f970523d6c2d4ef57ec5857040e2b6f7fd6345304353e7805d76044d317344d # Conflicts: # test/functional/test_runner.py
In cron job (https://travis-ci.org/bitcoin/bitcoin/builds/445823485), the functional tests would fail due to silent for 10 mins.
After applying this patch, we con't see any extra characters printed on screen but also avoid timeout (https://travis-ci.org/ken2812221/bitcoin/builds/445981698)