Testing both `debug` and `release` builds in CI
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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:
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 13
- Fork
- 4
- Merge trung bình
- 41 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của RustCrypto/meta
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
RustCrypto/meta#38 · 5 bình luận ·
-
Proof systemĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
RustCrypto/meta#37 · 3 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
RustCrypto/meta#36 · 8 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
RustCrypto/meta#34 · 8 bình luận ·
-
Replace `subtle` with `ctutils`?Có thể làm lại được @newpavlov đã nhận 323 ngày trước và không có pull request nào đang mở. Đang mở
RustCrypto/meta#29 · 1 bình luận · 1 người được giao ·
Tất cả issue của RustCrypto/meta
Issue tương tự
-
Release: a tag the manifests do not match fails `check`, and every build job still runs to the endĐang mởCI/CD enhancement need-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
backend bug frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NVIDIA/numba-cuda-mlir#467 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày