Skip to content

ci: 按改动内容分级跑测试 - #33

Merged
yandy merged 5 commits into
mainfrom
chore/tiered-ci
Nov 22, 2026
Merged

yandy merged 5 commits into
mainfrom
chore/tiered-ci

Conversation

@yandy

@yandy yandy commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

分级测试改造:docs-only 只跑 changes job,tests-only 跳过全部冒烟,packaging/registry 冒烟受 artifact 门控,Windows 腿在任何代码改动上保留。

设计见 docs/superpowers/specs/2026-11-22-tiered-ci-design.md。

验证记录

artifact 档(本 PR:workflow + docs + spec)——run 45017303995 / 45017671985:

changes              success
test (ubuntu-latest) success
test (windows-latest) success
test-dist            success
workspace-smoke      success
pack-smoke (20.16.0) success
pack-smoke (24)      success
lockfile-sync        skipped
registry-smoke       skipped

整个 run 的 conclusion 为 success —— 被 if 跳过的 job 不影响结论。

docs-only / tests-only 两档:paths-filter 在 PR 事件上按整个 PR 相对 base 的 diff 算(日志:Fetching list of changed files for PR#33 from GitHub API → Detected 3 changed files),而工作流只在 push: main 与 pull_request: main 触发,所以在 PR 上无法用「同一分支追加探测提交」看到这两档。合入后由第一个只改 docs/** 的 PR(应只剩 changes)与第一个只改 */tests/** 的 PR(应有两条 test、无冒烟)验证;合入前的兜底是过滤器模拟的 10 个用例(docs-only / tests-only / docs+tests 等)。

@yandy
yandy marked this pull request as ready for review November 22, 2026 12:02
@yandy
yandy merged commit 2802ece into main Nov 22, 2026
17 of 18 checks passed
@yandy
yandy deleted the chore/tiered-ci branch November 22, 2026 12:07
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