Reduce the build and test times of the aggregator

Đang mở
#3,741 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust

Hướng nghiên cứu

Start by measuring the aggregator with cargo build --timings, cargo test --no-run, and cargo nextest, then compare the results against the signer and the ci-tests profile. Read the mithril-aggregator and workspace Cargo manifests to trace the listed feature and profile settings. Done means recording the baseline, applying justified optimizations, and measuring gains against it.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

optimization :hammer_and_wrench:

Why

The mithril-aggregator crate is still the slowest unit of the workspace to build and test (unit test binary about 77 s, 13 integration test binaries of 12 to 17 s each, against 16 s and 6 to 9 s for the signer), which slows down the local development loop and the CI.

What

The aggregator build and test times are measured, then reduced by removing the feature flips and the per binary fixed costs that remain after the boxing of the HTTP route filters.

How

  • Measure the current build times (cargo build --timings, cargo test --no-run) and the slowest tests (cargo nextest) of the aggregator to set a baseline
  • Assess possible optimizations:
    • Remove the allow_skip_signer_certification feature flip of the mithril-common dev-dependency, which rebuilds mithril-common and the 13 internal crates depending on it between cargo build and cargo test?
    • Align the features of the shared dependencies (tokio, reqwest, rustls, tower, zstd) at the workspace level to stop the rebuilds when switching between the aggregator and the other packages?
    • Evaluate a reduced debug info level (debug = "line-tables-only") for the local dev profile, as already used by the ci-tests profile?
    • Speed up or move to the slow tier the slowest aggregator tests found by the baseline?
    • TBD
  • Measure the gains against the baseline
Ngôn ngữ chính
Rust
Star
155
Fork
52
Merge trung bình
3 ngày 9 giờ
Pull request đã merge (30 ngày)
33

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của IntersectMBO/mithril

Tất cả issue của IntersectMBO/mithril

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.