test: reorder functional tests by current runtimes #36582

Manually merged
ViniciusCestarii merged 2 commits from reorder-tests into master 2026-10-20 12:38:28 +00:00 AGit
ViniciusCestarii commented 2026-10-20 11:37:15 +00:00 (Migrated from github.com)

After #36439, #36440 and #36446 some tests got much faster.

Move tests that finish faster to run later and move tests that are slow to run earlier.

Timings from master CI run 39389906008:

Test Bucket (before → after) CI median CI max
interface_http.py <30s (late) → <60s (first) 53s 60s (TSan)
feature_maxuploadtarget.py <2m → <30s (first) 10s 44s (Windows native, VS)
feature_torcontrol.py <30s (late) → <30s (early) 17s 20s (macOS native)
wallet_conflicts.py <5m → <30s 4s 11s (TSan)
p2p_node_network_limited.py --v1transport <5m → <30s 6s 18s (TSan)
p2p_node_network_limited.py --v2transport <5m → <30s 6s 17s (TSan)
wallet_backup.py <60s → <30s 8s 17s (TSan)
wallet_address_types.py <60s → <30s 7s 20s (TSan)
p2p_sendheaders.py <60s → <30s 3s 8s (TSan)
feature_maxtipage.py <60s → <30s 5s 11s (TSan)
feature_csv_activation.py <60s → <30s 6s 13s (TSan)
feature_segwit.py --v1transport <60s → <30s 4s 12s (TSan)
feature_segwit.py --v2transport <60s → <30s 4s 14s (TSan)

Locally (test_runner.py -j=18 --randomseed=1) with these changes I got: 84s -> 78s (median of 3 runs)

After #36439, #36440 and #36446 some tests got much faster. Move tests that finish faster to run later and move tests that are slow to run earlier. Timings from master CI run [39389906008](https://github.com/bitcoin/bitcoin/actions/runs/39389906008): | Test | Bucket (before → after) | CI median | CI max | |---|---|---|---| | `interface_http.py` | <30s (late) → <60s (first) | 53s | 60s (TSan) | | `feature_maxuploadtarget.py` | <2m → <30s (first) | 10s | 44s (Windows native, VS) | | `feature_torcontrol.py` | <30s (late) → <30s (early) | 17s | 20s (macOS native) | | `wallet_conflicts.py` | <5m → <30s | 4s | 11s (TSan) | | `p2p_node_network_limited.py --v1transport` | <5m → <30s | 6s | 18s (TSan) | | `p2p_node_network_limited.py --v2transport` | <5m → <30s | 6s | 17s (TSan) | | `wallet_backup.py` | <60s → <30s | 8s | 17s (TSan) | | `wallet_address_types.py` | <60s → <30s | 7s | 20s (TSan) | | `p2p_sendheaders.py` | <60s → <30s | 3s | 8s (TSan) | | `feature_maxtipage.py` | <60s → <30s | 5s | 11s (TSan) | | `feature_csv_activation.py` | <60s → <30s | 6s | 13s (TSan) | | `feature_segwit.py --v1transport` | <60s → <30s | 4s | 12s (TSan) | | `feature_segwit.py --v2transport` | <60s → <30s | 4s | 14s (TSan) | Locally (`test_runner.py -j=18 --randomseed=1`) with these changes I got: 84s -> 78s (median of 3 runs)
DrahtBot commented 2026-10-20 11:37:25 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK maflcko, hebasto
Concept ACK l0rinc

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36582 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36582.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36582#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [maflcko](https://github.com/bitcoin/bitcoin/pull/36582#issuecomment-6290644934), [hebasto](https://github.com/bitcoin/bitcoin/pull/36582#pullrequestreview-5585032972) | | Concept ACK | [l0rinc](https://github.com/bitcoin/bitcoin/pull/36582#issuecomment-6290188462) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--5faf32d7da4f0f540f40219e4f7537a3-->
First-time contributor

Base: 6799119cef7ead71e2b2fc7928a0ea58d720c708
Head: 649e075655c653f0581ba7a28f7bda2b347fad80

I found no actionable issues in this static review.

Full review report

<!-- forgejo-review-bot:bitcoin/bitcoin --> Base: `6799119cef7ead71e2b2fc7928a0ea58d720c708` Head: `649e075655c653f0581ba7a28f7bda2b347fad80` I found no actionable issues in this static review. [Full review report](<https://review.fish.foo/traces/36582-649e075655c653f0581ba7a28f7bda2b347fad80-934-1.html>)
l0rinc commented 2026-10-20 11:50:32 +00:00 (Migrated from github.com)

Concept ACK - thanks for working on these

Concept ACK - thanks for working on these
maflcko commented 2026-10-20 12:17:17 +00:00 (Migrated from github.com)

not sure why feature-maxuploadtarget is moved twice, but this seems fine.

review ACK 649e075655 🦃

Show signature

Signature:

untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}"
RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM=
trusted comment: review ACK 649e075655c653f0581ba7a28f7bda2b347fad80 🦃
Uqjea51dXxNxPK5aSsa5UfiXYj14s2WdoIyedL7tPMBPmeYPMqtWUxNhu8jUhrag6ua+BVDc7e26GsT07Fy7Dw==
not sure why feature-maxuploadtarget is moved twice, but this seems fine. review ACK 649e075655c653f0581ba7a28f7bda2b347fad80 🦃 <details><summary>Show signature</summary> Signature: ``` untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}" RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM= trusted comment: review ACK 649e075655c653f0581ba7a28f7bda2b347fad80 🦃 Uqjea51dXxNxPK5aSsa5UfiXYj14s2WdoIyedL7tPMBPmeYPMqtWUxNhu8jUhrag6ua+BVDc7e26GsT07Fy7Dw== ``` </details>
hebasto (Migrated from github.com) approved these changes 2026-10-20 12:34:33 +00:00
hebasto (Migrated from github.com) left a comment

ACK 649e075655.

ACK 649e075655c653f0581ba7a28f7bda2b347fad80.
l0rinc commented 2026-10-20 12:41:01 +00:00 (Migrated from github.com)

post-merge ACK 649e075655

Reapplied the moves in reverse and confirmed they cancelled the diff.
I haven’t revalidated the timings, but the ordering looks reasonable given the reported measurements, and I expect we’ll adjust these regularly anyway.

post-merge ACK 649e075655c653f0581ba7a28f7bda2b347fad80 Reapplied the moves in reverse and confirmed they cancelled the diff. I haven’t revalidated the timings, but the ordering looks reasonable given the reported measurements, and I expect we’ll adjust these regularly anyway.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36582
No description provided.