Reduce the duration of the Rust unit tests in the CI
Maintainer thường phản hồi trong vòng 3 ngày
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
- 48/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github-actions, rust
- Lĩnh vực
- ci-cd, performance
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Rust
- Star
- 155
- Fork
- 52
- Merge trung bình
- 3 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 33
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 IntersectMBO/mithril
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
IntersectMBO/mithril#1605 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
IntersectMBO/mithril#3748 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
feature :rocket:
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
IntersectMBO/mithril#3743 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
feature :rocket:
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
IntersectMBO/mithril#3742 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
optimization :hammer_and_wrench:
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
IntersectMBO/mithril#3741 ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của IntersectMBO/mithril
Issue tương tự
-
triage: failed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
oxc-project/tsrs#1277 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
autofixer: follow-up triage: bug triage: classified triage: correctness triage: has-reproducer
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
tursodatabase/turso#13221 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update Wasmtime to 48.0.11 for RUSTSEC-2026-0648Có thể đã có người làm @flyingrobots đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
flyingrobots/edict#457 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100