ci: 按 PR 来源分流 Bug Server 构建,避免重复构建 - #2137
Merged
Merged
Conversation
skie1997
approved these changes
Sep 17, 2026
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 会同时执行 Bug Server CI 和 Bug Server PR Bundle 的构建。通过比较 PR head 仓库完整名称与当前仓库名称,为两个构建 job 设置互斥条件:
每个 PR 事件只实际构建一次。同组织的其他仓库也视为外部来源。GitHub 仍可能显示两个 workflow 的运行记录,但另一构建 job 会显示 skipped,不启动 runner。
保留 main push 自动测试、fork PR 的手动来源校验和上传流程,构建命令、runner、Node.js 版本及权限不变。同步更新说明:仓库内 PR 重测时重跑 CI,手动入口依赖 fork PR 的 bundle 产物。
与 VChart #4689 采用相同分流规则;基于最新 develop(98b24a41e)创建分支。
📝 Changelog
☑️ 自测
rush test --only tag:package通过,保留现有跳过用例和测试配置告警;分支已成功推送。构建命令和测试客户端未变,本次未重复完整构建;线上回归结果以本 PR 检查为准。
🚀 Summary
copilot:summary
🔍 Walkthrough
copilot:walkthrough