Reduce the duration of the Rust unit tests in the CI
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 重构
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- github-actions, rust
- 领域
- ci-cd, performance
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Rust
- 星标
- 155
- 派生
- 52
- 平均合并
- 3 天 9 小时
- 30 天内合并 PR
- 33
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
IntersectMBO/mithril 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
IntersectMBO/mithril#1605 · 2 条评论 ·
维护者通常 3 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
IntersectMBO/mithril#3748 ·
维护者通常 3 天内回复
-
feature :rocket:
难度 4/5 3-5 天 新手友好度 52/100
IntersectMBO/mithril#3743 ·
维护者通常 3 天内回复
-
feature :rocket:
难度 5/5 一周以上 新手友好度 25/100
IntersectMBO/mithril#3742 ·
维护者通常 3 天内回复
-
optimization :hammer_and_wrench:
难度 5/5 一周以上 新手友好度 35/100
IntersectMBO/mithril#3741 ·
维护者通常 3 天内回复
查看 IntersectMBO/mithril 的全部 Issue
相似的 Issue
-
triage: failed
难度 2/5 1-3 小时 新手友好度 68/100
oxc-project/tsrs#1277 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
autofixer: follow-up triage: bug triage: classified triage: correctness triage: has-reproducer
难度 2/5 1-3 小时 新手友好度 67/100
tursodatabase/turso#13221 ·
维护者通常 1 天内回复
-
Update Wasmtime to 48.0.11 for RUSTSEC-2026-0648可能已有人在做 @flyingrobots 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 67/100
flyingrobots/edict#457 ·
-
难度 1/5 1 小时以内 新手友好度 72/100