Release CLI artifact deletes runtime-overlays/mdi-native, so every mdi-native recipe fails missing-path
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 75/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- php, typescript
- 领域
- build-system, cli
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- TypeScript
- 星标
- 19
- 派生
- 4
- 平均合并
- 35 分钟
- 30 天内合并 PR
- 11
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Automattic/wp-codebox 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
Automattic/wp-codebox#2531 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
Automattic/wp-codebox#2467 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
Automattic/wp-codebox#2466 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
Automattic/wp-codebox#2105 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
Automattic/wp-codebox#2061 ·
维护者通常 1 天内回复
查看 Automattic/wp-codebox 的全部 Issue
相似的 Issue
-
blocklist addition
难度 1/5 1 小时以内 新手友好度 76/100
MetaMask/eth-phishing-detect#319194 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
continuedev/continue#13533 · 1 条评论 ·
维护者通常 6 天内回复
-
bug codex:automation
难度 2/5 1-3 小时 新手友好度 76/100
genfeedai/genfeed.ai#12060 ·
维护者通常 1 天内回复
-
bounty good first issue help wanted
难度 2/5 1-3 小时 新手友好度 78/100
fitzss/valun-open#15 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复