CI/Release Workflows: Fix validation bypass and wasm-tools version mismatch

Đang mở
#965 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
56/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust, wasm
Lĩnh vực
build-system, ci-cd

Hướng nghiên cứu

Read .github/workflows/publish.yml and .github/actions/install-tools/action.yml to compare the wasm-tools versions. Then inspect the CI workflow's dorny/paths-filter conditions and .github/scripts/validate-proposals.js, which reads docs/ComponentModelFeatures.md. Done means the tool versions are consistent and validation runs for changes to the scripts or feature document; the issue does not name tests to run.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

wasm-tools Version Mismatch (publish.yml vs install-tools/action.yml)
Issue: There is a discrepancy in the wasm-tools version used across different jobs, which can break tooling dependent on newer Component Model features (like cm-map and cm-implements introduced in WASI 0.3.1).
Cause: The upload-wit-tarball job inside .github/workflows/publish.yml installs [email protected]. Meanwhile, .github/actions/install-tools/action.yml installs [email protected].
Impact: Version 1.214.0 is outdated and lacks support for recent Component Model features. This mismatch risks publishing failures or improper validation.

Issue: The CI workflow silently skips validation when changes are made to .github/scripts/** or docs/ComponentModelFeatures.md.
Cause: The workflow is correctly configured to trigger on changes to .github/scripts/** and .github/workflows/ci.yml. However, the dorny/paths-filter step only matches proposals/*/wit/**. Because the "Install tools" and "Validate changed proposals" steps are conditionally bound to if: steps.changes.outputs.wit == 'true', a PR that only modifies the validation scripts or the ComponentModelFeatures.md file (which is read by validate-proposals.js to check GATE_FEATURES) will never actually run the validation.

Ngôn ngữ chính
Rust
Star
5.8k
Fork
339
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của WebAssembly/WASI

Tất cả issue của WebAssembly/WASI

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.