Testing both `debug` and `release` builds in CI
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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:
- Linguagem predominante
- Sem dados de linguagem
- Estrelas
- 13
- Forks
- 4
- Merge médio
- 41min
- PRs com merge (30d)
- 1
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de RustCrypto/meta
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
RustCrypto/meta#38 · 5 comentários ·
-
Proof systemAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
RustCrypto/meta#37 · 3 comentários ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
RustCrypto/meta#36 · 8 comentários ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 32/100
RustCrypto/meta#34 · 8 comentários ·
-
Replace `subtle` with `ctutils`?Talvez livre de novo @newpavlov assumiu há 323 dias e não há nenhum pull request aberto. Aberta
RustCrypto/meta#29 · 1 comentário · 1 responsável ·
Todas as issues de RustCrypto/meta
Issues semelhantes
-
Release: a tag the manifests do not match fails `check`, and every build job still runs to the endAbertaCI/CD enhancement need-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
Mantenedores costumam responder em até 1 dia
-
backend bug frontend
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 5 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
NVIDIA/numba-cuda-mlir#467 · 1 comentário ·
Mantenedores costumam responder em até 3 dias