lightning
lightning copied to clipboard
pytest: Performance improvements and test stabilization
This is intended mostly as a tracking issue to see if we can speed up pytest (the tests, not the framework) and stabilize some flaky tests.
Performance
Running the pytest target with PYTEST_OPTS=--profile-svg yields the following profile on my machine:
Notice that the profile accounts wall clock time, not CPU usage.
Slowest tests
Notice that there still might be a good reason for these to be slow, I'm just listing the slowest 5:
- [ ]
test_pay_disconnect_stress15% - [ ]
test_partial_payment_timeout12% - [ ]
test_feerate_stress9% - [ ]
test_plugin_shutdown9% - [ ]
test_partial_payment7.5%
Flaky
List of flaky tests:
- [ ]