Testing both `debug` and `release` builds in CI
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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:
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 13
- Fork
- 4
- Merge medio
- 41m
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RustCrypto/meta
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
RustCrypto/meta#38 · 5 commenti ·
-
Proof systemAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
RustCrypto/meta#37 · 3 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
RustCrypto/meta#36 · 8 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
RustCrypto/meta#34 · 8 commenti ·
-
Replace `subtle` with `ctutils`?Forse di nuovo libera @newpavlov l’ha presa 323 giorni fa e non c’è nessuna pull request aperta. Aperta
RustCrypto/meta#29 · 1 commento · 1 assegnatario ·
Tutte le issue di RustCrypto/meta
Issue simili
-
Release: a tag the manifests do not match fails `check`, and every build job still runs to the endApertaCI/CD enhancement need-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
backend bug frontend
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NVIDIA/numba-cuda-mlir#467 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni