Testing both `debug` and `release` builds in CI
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Read the discussion in this issue and the linked PR #186, then inspect the CI workflows in the RustCrypto projects cited here. Work out how to add debug and release test coverage to the relevant CI boilerplate, including feature combinations, and check that both build modes run successfully. Done means the CI setup tests both debug and release builds.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Note: some past discussion in https://github.com/RustCrypto/MACs/pull/186
Several of our projects test --release builds in CI: https://github.com/search?q=org%3ARustCrypto+cargo+test+--release+language%3AYAML&type=code&l=YAML
Many of our projects currently test release builds exclusively. I think where we're not testing debug builds, we probably should, in order to test debug assertions. We can probably do things like cargo hack and feature-by-feature testing in debug builds. But I think we should still include something like cargo test --release --all-features to test release builds, possibly as its own job which can run in parallel.
Debug versus release builds involve conditional compilation, so testing debug builds exclusively doesn't give you a full picture of what happens in a release build. Only testing the release build can do that, and IMO release builds are what actually matter. This is why I originally included testing --release builds in the CI boilerplate. In general we test many other combinations as we're attempting to produce high-assurance software, so testing both debug and release builds seems like standard practice to me.
Some examples of other Rust cryptography projects which test release builds in CI:
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 13
- Forks
- 4
- Merge medio
- 41 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 RustCrypto/meta
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
RustCrypto/meta#38 · 5 comentarios ·
-
Proof systemAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
RustCrypto/meta#37 · 3 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
RustCrypto/meta#36 · 8 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 32/100
RustCrypto/meta#34 · 8 comentarios ·
-
Replace `subtle` with `ctutils`?Quizá libre de nuevo @newpavlov la tomó hace 323 días y no hay ningún pull request abierto. Abierto
RustCrypto/meta#29 · 1 comentario · 1 asignado ·
Todos los issues de RustCrypto/meta
Issues similares
-
Release: a tag the manifests do not match fails `check`, and every build job still runs to the endAbiertoCI/CD enhancement need-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
backend bug frontend
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NVIDIA/numba-cuda-mlir#467 · 1 comentario ·
Los mantenedores suelen responder en 3 días