Release CLI artifact deletes runtime-overlays/mdi-native, so every mdi-native recipe fails missing-path
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 75/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- php, typescript
- Lĩnh vực
- build-system, cli
Hướng nghiên cứu
Read scripts/package-release-artifact.ts and packages/cli/src/recipe-sources.ts to trace how packaging removes runtime-overlays/ and where the MDI archive is resolved. Check the packaged tree against BUNDLED_MDI_NATIVE_ARCHIVE and the pinned revision in provenance.json; done means the release artifact contains the matching archive and packaging fails if it is missing.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
The release CLI artifact (wp-codebox-cli-<platform>-<arch>.tar.gz) has no runtime-overlays/mdi-native/ archive. Any recipe using wp-codebox:mdi-native, including wordpress.phpunit --database-type=mdi-native, fails validation:
RecipeValidationError [missing-path] $.inputs.extra_plugins[2].source: File does not exist: …/wp-codebox-cli/runtime-overlays/mdi-native/markdown-database-integration-4cf0a57.zip
Downstream, every homeboy review test data-machine-events run fails with PHPUNIT_ZERO_TESTS_FAILED (195 test files, 0 executed): on main (https://github.com/Extra-Chill/data-machine/actions/runs/46828923017), on Extra-Chill/data-machine#4216, and locally.
Evidence
tar -tzf wp-codebox-cli-linux-x64.tar.gz | grep runtime-overlays on v0.34.5 returns nothing.
Root cause
In scripts/package-release-artifact.ts, materializePinnedPhpWasmOverlay() copies the php-wasm overlays into node_modules/@php-wasm/node-8-x, then runs rm(join(root, "runtime-overlays")). That deletes the whole directory, including runtime-overlays/mdi-native/. But packages/cli/src/recipe-sources.ts resolves BUNDLED_MDI_NATIVE_ARCHIVE to ../../../runtime-overlays/mdi-native/markdown-database-integration-<rev>.zip, relative to packages/cli/dist.
Target state
- The release artifact keeps
runtime-overlays/mdi-native/(the zip plusprovenance.json). Only the php-wasm overlay sources that were moved intonode_modulesget removed. - A packaging assertion (in the packaging script or a test) fails the release build if the archive that
BUNDLED_MDI_NATIVE_ARCHIVEpoints to is missing from the packaged tree. The same check would also catch drift between the pinned revision and the archive file. - Optional: one source of truth for the pinned MDI revision.
recipe-sources.tsandruntime-core/src/recipe-builders.tsboth hard-code it today, andprovenance.jsonalready records it.
Secondary: stale local build
On the shared host, /usr/bin/wp-codebox → /var/lib/datamachine/workspace/wp-codebox/packages/cli/dist/index.js still has the 49ec937 path compiled in, while the source and checked-in zip are 4cf0a57. Rebuilding the checkout fixes that host. This issue is about the release artifact.
- Ngôn ngữ chính
- TypeScript
- Star
- 19
- Fork
- 4
- Merge trung bình
- 35 phút
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Automattic/wp-codebox
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Automattic/wp-codebox#2531 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Automattic/wp-codebox#2467 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Automattic/wp-codebox#2466 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Automattic/wp-codebox#2105 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Automattic/wp-codebox#2061 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Automattic/wp-codebox
Issue tương tự
-
Blocklist addition requestĐang mởblocklist addition
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
MetaMask/eth-phishing-detect#319194 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
continuedev/continue#13533 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 6 ngày
-
bug codex:automation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
genfeedai/genfeed.ai#12060 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bounty good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
fitzss/valun-open#15 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày