Reduce the build and test times of the aggregator

Abierto
#3,741 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
Rust
Estrellas
155
Forks
52
Merge medio
3 d 9 h
PR fusionados (30 d)
33

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de IntersectMBO/mithril

Todos los issues de IntersectMBO/mithril

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.