Repository navigation
chore(ci): 合并后不再重跑测试 - #287
Merged
Merged
Conversation
main 只接受 PR 合并,strict 策略保证 PR 头包含最新 main,合并提交的树就是 刚刚通过检查的树;push 到 main 再跑一遍不设任何门槛。nightly 与 release tag 仍是完整门槛。 Co-Authored-By: Claude Code <noreply@anthropic.com>
补充合并提交复用 PR 结果的依据,并说明 CI configuration 为什么保留 push 触发。 Co-Authored-By: Claude Code <noreply@anthropic.com>
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.
为什么
main上现在每次合并都会把 Engine / Windows / Git read / Examples / Readiness 再跑一遍。这趟不设任何门槛:
strict_required_status_checks_policy要求 PR 头包含最新 main,用 merge commit 合并时合并提交的树就是刚刚通过检查的那棵树。重复跑只制造噪音。
改了什么
engine.yml、windows.yml、git-read.yml、examples.yml、readiness.yml删除push: branches: [main],保留workflow_dispatch。release.yml(tag 触发)、nightly.yml(每日全量)、site.yml(push 到 main 是GitHub Pages 部署)、
ci-config.yml(需要在 settings 变更后校验线上 ruleset)。docs/agent/validation.md、develop.md、releasing.md同步说明新的覆盖模型。配套的仓库设置(不在本 PR 内)
同一个变更还包含两项仓库设置,合并前应用:
Require a pull request before merging(0 个批准,允许作者自合并),并把允许的合并方式限定为 merge commit。这是删掉 push 触发器的前提:直推 main 现在
会被拒绝,否则直推就没有任何 CI 覆盖。
delete_branch_on_merge。实际执行的验证
未跑:
actionlint本地未安装;工作流的真实执行由本 PR 自己的检查覆盖。🤖 Generated with Claude Code