fix: 隔离 Hook 性能门槛以稳定 CI - #5
Merged
Merged
Conversation
z2z23n0
marked this pull request as ready for review
July 17, 2026 18:12
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.
Mainline Intent
Intent:
int_4b75cf69Status:
proposedTitle: 隔离 Hook 性能门槛以稳定 CI
What changed
在共享包测试阶段显式跳过两条 Hook CLI 墙钟性能测试,并在其他包完成后由 scripts/ci.sh 单独、禁用测试缓存地执行它们;测试自身新增只供共享阶段使用的跳过开关。
Why
GitHub Ubuntu runner 在 go test ./... 的包级并行负载下把 Hook CLI + SQLite 的 p95 放大到 184.8ms,造成与业务改动无关的 CI 失败。隔离执行可以消除跨包资源争抢,同时继续执行原有 50ms 性能契约。
Decisions
Subsystems: cli, scripts