Reduce the build and test times of the aggregator

オープン
#3,741 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Rust
スター
155
フォーク
52
平均マージ
3日 9時間
マージ済み PR(30日)
33

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

IntersectMBO/mithril のほかの issue

IntersectMBO/mithril の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。