CodeChain-io / CodeChain-io/codechain
Sharing binary on test using mutl-stage build and cache
未關閉
還沒有人認領這個 Issue。
build
test
- 主要語言
- Rust
- 星號
- 256
- 分支
- 50
- PR 合併指標
- 30 天內沒有已合併 PR
描述
We build CodeChain binary in every task in Travis. It takes about 10-15 mins per task.
- To run clippy and rustfmt
- To make sure it doesn't have a compile error.
- Unit tests and E2E tests.
- Dynamic validator tests 1
- Dynamic validator tests 2.
We at least use a build output from 3 in 4, 5.
We might reuse a build cache from 2 in 3. When many features in clippy and rustfmt are stabilized, we also reuse the cache from 1 in 2.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先定位 Travis CI 設定,以及 issue 中描述的 build、clippy、rustfmt、unit、E2E 和 dynamic validator 測試階段。追蹤目前哪些階段會編譯 CodeChain,並確定階段 3、4 和 5 如何共用 build 輸出或快取。相關階段能夠在不遺失所述檢查的情況下重複使用這些 artifact 或快取,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- rust
- 領域
- build-system, ci-cd
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100