Repository navigation
ci: 修 PR 防回退闸在 shallow clone 下 git diff 失败 - #416
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.
PR #415 静态闸红根因:新增的 check_pr_no_regression.py 在 CI shallow clone 下 git diff base..head exit 128(base 对象不在本地)。修复:① static-invariants job checkout 加 fetch-depth: 0;② 脚本 git 失败抛 RefUnavailable、main warn-through 返回 2(不裸崩);③ 3 个新测试含接线守卫与变异自证。本地:30 passed、卫生闸双绿、删 fetch-depth 测试红-绿验证通过。