ci: add manual Bug Server validation for fork PRs - #4688
Merged
Merged
Conversation
skie1997
approved these changes
Sep 17, 2026
8 tasks
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.
💡 问题与解决方案
外部 fork PR 的自动运行无法获得
BUG_SERVER_TOKEN,维护者缺少直接验证其 Bug Server 用例的入口。本次增加手动触发流程:输入 PR 编号和已审查的完整 head SHA,复用该提交的 PR 构建产物完成验证。参考 VisActor/VRender#2134 的最终产物方案:
pull_request上下文检出准确 head SHA,沿用 VChart 的 macOS / Node.js 18 和四步构建,上传保留 7 天的命名产物。workflow_dispatch。可信脚本校验 PR 当前 head、来源 workflow、事件、成功状态、仓库、分支及 SHA,选择对应的唯一未过期产物。index.js,最大 64 MiB,按固定路径写入字节,防止产物覆盖可信脚本。BUG_SERVER_TOKEN仅注入最后的可信客户端 step。保留原有自动入口以及图片、性能测试行为。from的 import,并补齐共享 ESLint 配置和中文使用说明。🤔 变更类型
🔗 相关 PR
🐞 Bugserver 用例 id
不适用:本次修改 CI 验证入口,未修改图表渲染行为。
☑️ 验证
git diff --check通过。rush test --only tag:package通过:VChart 87 个测试套件 / 482 项测试、vutils-extension 1 项测试。node --check通过。使用 macOS / Node.js 24.19.0 和已有依赖,未重新安装全部 Rush 依赖;CI 继续使用 Node.js 18。使用与影响
合入
develop后,先等待目标 PR 的 Bug Server PR Bundle 成功,再从 Actions → Bug Server CI → Run workflow 选择develop,填写pr_number和head_sha。旧 PR 需要新的 PR 事件触发新增工作流;产物缺失或过期时需重跑 bundle 构建。外部 fork 运行可能需要维护者批准。每次 PR 事件会新增一个 bundle 构建任务。手动运行的 summary 记录 PR、SHA 和来源构建链接,不自动添加 PR 评论或额外 check。
📝 Changelog