Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge dashpay#6521: test: optimization of functional tests
9bec526 test: speed up feature_maxuploadtarget.py - missing changes from backport bitcoin#18494 (Konstantin Akimov) 4d4a1f5 test: speed up feature_mnehf.py a bit more (Konstantin Akimov) 1b3b546 test: speed up feature_mnehf.py functional test (Konstantin Akimov) 0219735 test: speed up functional test feature_llmq_chainlocks.py (Konstantin Akimov) Pull request description: ## Issue being fixed or feature implemented Functional tests running locally takes too long time; and limitation is not even CPU and RAM for many of them. This PR helps to speed some of the functional tests. ## What was done? Not much has been done, but some of the low-hanging fruit has been picked: - add missing changes from backport bitcoin#18494 which makes `feature_maxuploadtarget.py` much faster - optimize feature_mnehf.py - no need to restart all nodes that often to be sure they work correctly; replaced some sleeps to `wait_until` - optimize feature_llmq_chainlocks.py - change sleeps to `wait_until` with timeout ## How Has This Been Tested? Before this PR: ``` TEST | STATUS | DURATION feature_llmq_chainlocks.py | ✓ Passed | 230 s feature_maxuploadtarget.py | ✓ Passed | 291 s feature_mnehf.py | ✓ Passed | 109 s ALL | ✓ Passed | 630 s (accumulated) ``` With these optimizations: ``` TEST | STATUS | DURATION feature_llmq_chainlocks.py | ✓ Passed | 123 s feature_maxuploadtarget.py | ✓ Passed | 191 s feature_mnehf.py | ✓ Passed | 86 s ALL | ✓ Passed | 400 s (accumulated) ``` CI finishes 2 minutes faster (for non-tsan): https://gitlab.com/dashpay/dash/-/jobs/8739701280 https://gitlab.com/dashpay/dash/-/jobs/8776172870 Size of artefacts on CI is slightly smaller (4 MB smaller for ubsan): 759 -> 755MB. ## Breaking Changes N/A ## Checklist: - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ACKs for top commit: UdjinM6: utACK 9bec526 PastaPastaPasta: utACK 9bec526 Tree-SHA512: 82bab74266733fc231321210e56c3e9d79504b1259b30ad9cd98e5e063ce48dcd7549dec7e4a0297242bc201708a57eb159a2938ba049eab5d3f616a9ead605d
- Loading branch information