Better build orchestration
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 25/100
- Issue 類型
- 重構
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- ruby, wasm
- 領域
- build-system
研究方向
先閱讀 lib/ruby_wasm/build.rb,以及 lib/ruby_wasm/build/product/baseruby.rb 和 crossruby.rb 中的產品實作。追蹤進入點 rake npm:ruby-head-wasm-wasi:build 及其 PIC 與非 PIC 成品。完成標準是建置快取能處理多個成品和部分命中,並能處理原始碼修訂版本與配方的變更,而不會還原錯誤的結果。
由索引模型根據 Issue 內容生成。
描述
The underlying build system of rbwasm build is quite messy.
- Each build step has to have its ad-hoc up-to-date check like followings:
https://github.com/ruby/ruby.wasm/blob/a5d06a01873130fda0f07f4401a3b018c6f1d753/lib/ruby_wasm/build/product/baseruby.rb#L26 https://github.com/ruby/ruby.wasm/blob/a5d06a01873130fda0f07f4401a3b018c6f1d753/lib/ruby_wasm/build/product/crossruby.rb#L171 - Uses of build product and cache key computation are placed far, so we often forget to update the cache key and get a wrong cache restored.
https://github.com/ruby/ruby.wasm/blob/a5d06a01873130fda0f07f4401a3b018c6f1d753/lib/ruby_wasm/build.rb#L78 - The current cache mechanism cannot restore two or more artifacts produced within a single rake task job. This usually happens for PIC & non-PIC builds invoked by
rake npm:ruby-head-wasm-wasi:build - Our cache mechanism does not allow partial cache-hit, so even if we change only crossruby source revision, we have to rebuild openssl from scratch.
- Our cache mechanism is not sensitive to recipe changes. For instance, even if we change CFLAGS value, crossruby product will not be rebuilt.
- 主要語言
- Ruby
- 星號
- 875
- 分支
- 68
- 平均合併
- 9 天 5 小時
- 30 天內合併 PR
- 1
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
ruby/ruby.wasm 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
-
難度 5/5 一週以上 新手友好度 35/100
-
難度 4/5 3-5 天 新手友好度 35/100
-
難度 5/5 一週以上 新手友好度 25/100
-
難度 5/5 一週以上 新手友好度 25/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 70/100
-
bug
難度 1/5 1 小時以內 新手友好度 90/100
riscv/riscv-unified-db#2626 ·
-
Component: GLib
難度 2/5 1-3 小時 新手友好度 70/100
-
ds-drift
難度 2/5 1-3 小時 新手友好度 70/100
we-promise/sure#3693 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
simp/pupmod-simp-simp#395 ·