Repository navigation
ci: 按改动内容分级跑测试 - #33
Merged
Merged
Conversation
yandy
force-pushed
the
chore/tiered-ci
branch
from
November 22, 2026 11:35
6a8646e to
e134789
Compare
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.
分级测试改造:docs-only 只跑
changesjob,tests-only 跳过全部冒烟,packaging/registry 冒烟受artifact门控,Windows 腿在任何代码改动上保留。设计见
docs/superpowers/specs/2026-11-22-tiered-ci-design.md。验证记录
artifact 档(本 PR:workflow + docs + spec)——run 45017303995 / 45017671985:
整个 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等)。