Repository navigation
ci(tests): remove workspace dependency waits with bounded concurrency - #334
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复
pnpm -r test会让 Vue 等待 core、agent-runtime 的测试依次完成,即使当前 CI job 已经构建了它们。这次新增test:packages:ci:其他包通过--no-sort去掉测试等待链,限制为两个包并发、每包最多三个 Vitest worker;全部成功后再让script-chart独占 runner 完成测试。script-chart在 5s 的现有测试期限内执行完整内置脚本目录。让它与 core transform 或其他脚本执行争抢 CPU 会超时,因此单独保留资源阶段,而不是让所有包完全并行。构建顺序、两个 Node 版本的全量测试、各包 Vitest 配置、文件隔离和超时均保持原样;同步更新 CI 门禁文档和复现方法。本地原有
test:packages命令保留。验证
pnpm type-check(源码与测试)通过;提交前pnpm exec biome check package.json、git diff --check通过。pnpm test:packages:ci均完整通过:9 个包、329 个测试文件、3509 passed / 15 skipped / 1 todo;逐包文件数与测试数一致。TZ=Asia/Shanghai下全量通过,111.68s,其中独占的script-chart为 9.96s。远端收益以 package-test step 的实际耗时为准。远端 本次 CI 四个 job 全部通过;两个 Node 版本的源码类型、测试类型、包测试和 attw 必需门禁均成功。与同一基准提交
8f1ddddb的 main CI 对比,仅统计Run package testsstep:这是两次 runner 执行的实测对照,不包含排队与其他步骤,也不代表每轮都能达到相同降幅。
并发预算经过实测选择:两包 × 两 worker 耗时 125.37s;更高并发的候选会触发超时。最终并行阶段上限六个文件 worker,另有 Vitest host 进程;最后的
script-chart上限三个 worker。没有放宽超时、减少测试、关闭隔离或增加 CI job。Closes #326