Repository navigation
ci: add manual Bug Server PR screenshot workflow - #5338
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.
🤔 这个分支是...
🔗 相关 issue 连接
BOE 联调对象:VTable #5320。本 PR 接入测试入口,不修改或合并该 PR 的业务代码。
💡 问题的背景&解决方案
外部 fork PR 无法获得项目
BUG_SERVER_TOKEN,因此无法沿用现有 CI 的 Bug Server 提交步骤。新增Bug Server Manual PRworkflow,让 bugserver 页面创建冻结 head SHA 的截图任务后,从默认分支develop调用可信控制脚本。prepare读取服务端冻结的任务,尝试复用有效 artifact。build-bundle在 GitHub 托管 runner 的独立 Docker 容器中构建冻结的 PR head;只挂载源码,不传 runner/cache 凭据或 Docker socket,容器退出后严格校验普通文件、实际路径和大小,再上传 artifact。submit固定 checkout workflow 控制提交;严格提取 ZIP 中唯一的普通index.js,将 JS 当作数据上传,复用已有 SCM 和截图链路。workflow_runreporter 回报取消、超时和失败;最终结果及负责人通知由 bugserver 服务端处理。输入仅接受服务端任务 UUID
task_id和environment(cn/boe,默认cn)。BOE 使用固定回报地址及:boerun-name 后缀,正式任务保留既有公网 CI 入口。沿用仓库已有BUG_SERVER_TOKEN;GitHub App 私钥只保存在 bugserver 服务端。本次新增 2 个 workflow、控制脚本及测试、严格提取器及测试,共 6 个文件;现有
Bug Server CI保留。新增入口只运行截图测试。📝 Changelog
☑️ 自测
验证结果:
node --test .github/scripts/bug-server-manual.test.cjs:6/6 通过。python3 -B -m unittest discover -s .github/scripts -p 'test_extract_bug_server_bundle.py':6/6 通过。git diff --check通过。Cannot find module 'typescript',未执行截图,不计为通过。部署及联调条件:bugserver BOE 服务需部署对应 API、配置 App 私钥与项目 token、开放 VTable 产品,并确认 GitHub 托管 runner 可访问固定 BOE CI 地址。合入
develop后再用 #5320 验证真实构建、SCM、截图及通知;这些步骤尚未实测;本机无 Docker,尚未执行真实容器构建。接入提交包含
[skip ci],避免准备阶段自动启动既有正式 Bug Server CI;本 PR 保持 Draft,待审阅和部署条件就绪后合并。🚀 Summary
copilot:summary
🔍 Walkthrough
copilot:walkthrough