Commit b8decb8
committed
Merge #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: 82bab74266733fc231321210e56c3e9d79504b1259b30ad9cd98e5e063ce48dcd7549dec7e4a0297242bc201708a57eb159a2938ba049eab5d3f616a9ead605dFile tree
3 files changed
+29
-36
lines changed- test/functional
3 files changed
+29
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
87 | | - | |
| 86 | + | |
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
| |||
157 | 156 | | |
158 | 157 | | |
159 | 158 | | |
160 | | - | |
161 | | - | |
| 159 | + | |
162 | 160 | | |
163 | | - | |
164 | | - | |
165 | | - | |
| 161 | + | |
| 162 | + | |
166 | 163 | | |
167 | 164 | | |
168 | 165 | | |
| |||
185 | 182 | | |
186 | 183 | | |
187 | 184 | | |
188 | | - | |
189 | | - | |
| 185 | + | |
190 | 186 | | |
191 | 187 | | |
192 | 188 | | |
| |||
200 | 196 | | |
201 | 197 | | |
202 | 198 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | | - | |
| 27 | + | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
| 124 | + | |
125 | 125 | | |
126 | | - | |
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
| |||
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
167 | | - | |
168 | | - | |
169 | | - | |
| 166 | + | |
170 | 167 | | |
171 | | - | |
| 168 | + | |
172 | 169 | | |
173 | 170 | | |
174 | | - | |
| 171 | + | |
175 | 172 | | |
176 | | - | |
177 | | - | |
| 173 | + | |
| 174 | + | |
178 | 175 | | |
179 | 176 | | |
180 | 177 | | |
| |||
185 | 182 | | |
186 | 183 | | |
187 | 184 | | |
188 | | - | |
189 | | - | |
190 | | - | |
| 185 | + | |
| 186 | + | |
191 | 187 | | |
192 | 188 | | |
193 | 189 | | |
| |||
198 | 194 | | |
199 | 195 | | |
200 | 196 | | |
201 | | - | |
202 | | - | |
| 197 | + | |
203 | 198 | | |
204 | | - | |
| 199 | + | |
205 | 200 | | |
206 | 201 | | |
207 | 202 | | |
| |||
226 | 221 | | |
227 | 222 | | |
228 | 223 | | |
| 224 | + | |
229 | 225 | | |
230 | 226 | | |
231 | 227 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
| 228 | + | |
236 | 229 | | |
237 | 230 | | |
238 | | - | |
239 | | - | |
| 231 | + | |
| 232 | + | |
240 | 233 | | |
241 | 234 | | |
242 | 235 | | |
0 commit comments