Repository navigation
ci(midscene): 发布的报告、run summary 与失败评论里给模型名打码 - #2678
Merged
Merged
Conversation
GitHub 只给 job 日志里的 secret 打码。Midscene 把模型名写进报错和报告 dump 的每条 AI 调用记录,于是模型名出现在发布的报告站点、run summary,以及由站点 manifest 生成的 PR 失败评论里。 - 新增 scripts/midscene-redact.mjs:按 MIDSCENE_MODEL_NAME(以及 BASE_URL、 API_KEY,以防报错里带出)打码,含 JSON 转义的地址;过短的值不处理 - 生成发布站点时,manifest、首页和拷贝进来的报告文本文件统一打码(图片、录像不动) - run summary 打码 - 只给报告 job 里生成站点和写 summary 的两个步骤传这三个值 Co-Authored-By: Claude Opus 5.5 <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
November 2, 2026 07:20
Owner
Author
|
作者说明(关于复审提的 P2-1 / P3-1 / P3-2):
所以 #2678 可以按当前 head 合入,这几项不需要在这里改。 |
Owner
Author
|
合后核验(作者侧):主干提交 |
deepcoldy
added a commit
that referenced
this pull request
Nov 3, 2026
维护者决定不打码:模型名和租户地址都不是凭据,拿到了也访问不了; API key 不会出现在报告和评论里,已发布内容中也没有。 撤回 c1febb5(#2678): - 删除 scripts/midscene-redact.mjs 和 test/midscene-redact.test.ts - prepare-midscene-pages.mjs、render-midscene-summary.mjs 恢复原样 - 工作流不再给生成站点、写 run summary 这两步传模型配置 #2673(额度耗尽时跳过用例、不评论)保留,不受影响。 This reverts commit c1febb5. Co-Authored-By: Claude Opus 5.5 <[email protected]>
deepcoldy
added a commit
to fangyeqing/botmux
that referenced
this pull request
Nov 3, 2026
|
🚀 Released in v3.57.0 |
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.
改了什么
GitHub 只给 job 日志里的 secret 打码。Midscene 会把模型名写进报错(
failed to call AI model service (<模型名>): 429 …),也写进报告 dump 里每一条 AI 调用记录(model_name、response_model_name,以及「Models: insight: … planning: …」一行),通过的运行也一样。于是模型名会出现在:本 PR 在生成发布站点那一步统一打码,评论、报告、summary 三处都覆盖:
scripts/midscene-redact.mjs:MIDSCENE_MODEL_NAME打码,替换成***(和 GitHub 日志一致)。MIDSCENE_MODEL_BASE_URL(完整地址、origin、host,含 JSON 转义的\/写法)和MIDSCENE_MODEL_API_KEY也一并打码。prepare-midscene-pages.mjs:先给 manifest 和首页打码再写出;最后扫一遍整个站点目录,把含这些值的文本文件(html / json / js 等)改写,图片和录像不动。PR 评论读的就是这份 manifest,所以评论里不会再出现。render-midscene-summary.mjs:写入 run summary 前打码。已经发出的评论和已经发布的报告不在本 PR 处理范围,由维护者决定如何处理。
影响面
只改 Midscene E2E 的报告生成和工作流里报告 job 的两个步骤,不涉及
src/、主 CI、发版。没有新增或修改 secret,只是把已有的三个传给这两个步骤。没配这些值时(本地、手动生成)站点照原样生成。与 #2673 改的是同一个工作流的不同 job,
git merge-tree核对过两者合并无冲突。测试验证
test/midscene-redact.test.ts(7 例):prepareMidscenePages:manifest、首页、拷贝的报告里都没有模型名,manifest 的失败信息变成(***);打码后报告的 run dump 仍能解析;图片原样拷贝。render-midscene-summary.mjs:summary 的失败列是(***),不含模型名。🤖 Generated with Claude Code