Reduce the duration of the Rust unit tests in the CI
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- github-actions, rust
- Área
- ci-cd, performance
Línea de trabajo
Start by reading the CI cargo profile configuration and the test-rust job, then identify which dependencies dominate the test time. Compare cached CI runs after a cache cleanup to weigh build time against test time. Also locate the certificate chain tests that use CertificateChainBuilder and assess where pre-built certificates and chains can replace generated fixtures; done means the Rust test jobs approach their previous duration.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Why
Since the snark feature is enabled by default (https://github.com/IntersectMBO/mithril/pull/3650), the Rust test jobs of the CI are about twice as slow on every runner (for example 6m 9s to 10m 15s on ubuntu-24.04 and 4m 36s to 10m 57s on ubuntu-24.04-arm), and they now hold back the later stages of the CI (Docker builds and infrastructure deployment tests).
What
Bring the test-rust job times back close to what they were before snark was enabled by default, mainly by making the certificate chain fixtures cheaper and by tuning how the dependencies are optimized in the CI cargo profiles.
How
- Tune the optimization of the dependencies in the CI cargo profiles
- Apply
opt-level = 3only to the dependencies that dominate the test time, instead of all dependencies ([profile.ci-tests-snark.package."*"]) - Decide whether the workspace jobs use this profile, comparing the build time increase with the test time reduction after a CI cache cleanup
- Apply
- Create test assets (pre-built certificates and certificate chains) for the certificate chain tests, used in place of
CertificateChainBuilderwhere real fixture generation is not needed
- Lenguaje dominante
- Rust
- Estrellas
- 155
- Forks
- 52
- Merge medio
- 3 d 9 h
- PR fusionados (30 d)
- 33
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de IntersectMBO/mithril
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
IntersectMBO/mithril#1605 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
IntersectMBO/mithril#3748 ·
Los mantenedores suelen responder en 3 días
-
feature :rocket:
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
IntersectMBO/mithril#3743 ·
Los mantenedores suelen responder en 3 días
-
feature :rocket:
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
IntersectMBO/mithril#3742 ·
Los mantenedores suelen responder en 3 días
-
optimization :hammer_and_wrench:
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
IntersectMBO/mithril#3741 ·
Los mantenedores suelen responder en 3 días
Todos los issues de IntersectMBO/mithril
Issues similares
-
triage: failed
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
oxc-project/tsrs#1277 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
autofixer: follow-up triage: bug triage: classified triage: correctness triage: has-reproducer
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
tursodatabase/turso#13221 ·
Los mantenedores suelen responder en 1 día
-
Update Wasmtime to 48.0.11 for RUSTSEC-2026-0648Posiblemente ocupada @flyingrobots la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
flyingrobots/edict#457 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100