bytecodealliance / bytecodealliance/ComponentizeJS
Reproducible builds
- Ngôn ngữ chính
- Rust
- Star
- 391
- Fork
- 53
- Merge trung bình
- 3 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
I have used ComponentizeJS in 3 different projects
I'm seeing with every project that the wasm file output is not reproducible from one build to the next
For example: https://github.com/rhodey/lock.host-wasm-js
I have `npm run bundle` and `npm run build`
I run `sha256sum dist/bundle.js` and determine the same js bundle is being produced
I run `sha256sum dist/bundle.wasm` and determine the wasm file is different with every run of `componentize-js`
It is not hard to imagine that more than 1 thing would need to change to get reproducible builds
A first thought is I think from what I have read that ComponentizeJS is doing something like snapshot of the JS Runtime memory in order to get faster boots. And so that is suspicious as an area of non determinism.
I will much appreciate any help with achieving reproducible builds and if it can be achieved quicker by disabling some features and losing some speed it would be acceptable for my purposes
Thanks!!
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Tái hiện vấn đề bằng các lệnh npm run bundle và npm run build đã được báo cáo, sau đó so sánh sha256sum dist/bundle.js và dist/bundle.wasm giữa các lần chạy componentize-js lặp lại. Điều tra đường dẫn build của componentize-js và hành vi snapshot runtime JavaScript bị nghi ngờ; được xem là hoàn tất khi đầu ra wasm có cùng checksum giữa các build, hoặc xác định được một chế độ build có thể tái lập được ghi chép rõ ràng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, rust, wasm
- Lĩnh vực
- build-system
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100