Skip to content

fix(test): builtin runtime 测试夹具平台无关化 - #13

Merged
kyomarshal merged 1 commit into
mainfrom
fix/builtin-tests-platform-agnostic
Nov 23, 2026
Merged

kyomarshal merged 1 commit into
mainfrom
fix/builtin-tests-platform-agnostic

Conversation

@kyomarshal

@kyomarshal kyomarshal commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

修 v0.6.5 publish CI 挂的 3 条测试:夹具写死 darwin-aarch64,linux-x86_64 上对不上。

  • mkRuntimeFile 默认 platform 取 runtimeProviderPlatform()
  • 异平台用例改 OTHER_PLATFORM(darwin↔linux 互为异平台)
  • 端点哈希不符用例复用 mkRuntimeFile+endpointKey
  • 追加 bump 0.6.6(npm version,docs/插件清单已同步):v0.6.5 已合并但因测试红没发出去,合并本 PR 后由新 tag v0.6.6 触发 publish

验证:darwin 61/61、模拟 linux-x86_64(冻结 process.platform/arch)61/61、全量 838/838。

v0.6.5 publish CI(linux-x86_64)挂 3 条:夹具写死 darwin-aarch64,
Linux 上夹具目录与生产查找的平台目录对不上,且「异平台」夹具变成命中项。

- mkRuntimeFile 默认 platform 取 runtimeProviderPlatform()(与生产同算法)
- 「异平台」用例改 OTHER_PLATFORM(darwin 上 linux-x86_64,反之亦然)
- endpoint 哈希不符用例复用 mkRuntimeFile + endpointKey 参数

本地 darwin 61/61、模拟 linux-x86_64(冻结 process.platform/arch)61/61、全量 838/838。
@openbotgit
openbotgit Bot force-pushed the fix/builtin-tests-platform-agnostic branch from a1abf6e to a11ba58 Compare November 23, 2026 14:24
@kyomarshal
kyomarshal merged commit f9679a4 into main Nov 23, 2026
5 of 6 checks passed
@kyomarshal
kyomarshal deleted the fix/builtin-tests-platform-agnostic branch November 23, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant