Repository navigation
fix(ci): Midscene 报告发布时清掉已关闭 PR 的报告,master 只留两次 - #2627
Merged
Merged
Conversation
GitHub Pages 站点超过 1 GB 后构建失败,10-30 21:16 起新发布的报告全部 404。 botmux-midscene/ 下攒了 50 个已合入或关闭 PR 的报告(共 10 GB),master-run 每次 300–400 MB 又保留 5 份。发布时按当前 open 的 PR 清掉其余 pr-<号> 目录 (列 PR 失败时这一轮不清),master-run 只留最近 2 次。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
October 30, 2026 18:13
Co-Authored-By: Claude Code <[email protected]>
deepcoldy
pushed a commit
that referenced
this pull request
Oct 31, 2026
同步最新 master(#2624 sandboxPaths 只读层拒绝覆盖启动器挂载点根目录与 /run、#2633 herdr 中止强杀子进程、#2634 runtime-sweep ENOTDIR、 #2623 codex-app 软链 HOME 用例、#2627 Midscene 报告清理,共 5 提交)。 与本 PR 6 文件自动合并零冲突:#2624 在 bot-default-oncall 路由新增的 sandboxPathsReadOnlyRoot 字段与本 PR advice 字段并列;其 sandboxPaths 保存校验测试与本 PR advice 用例分区不重叠。本 PR 的 sharedSandbox* 建议 链与 sandboxCapable/localSandboxApplies 判定逐行确认未受影响。 Co-Authored-By: Claude Code <[email protected]>
|
@deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。 这次运行覆盖 378fb04…ebf9695be(3 个提交),同批合入的还有 #2634 #2637,失败不一定由本 PR 引起。
|
This was referenced Oct 31, 2026
|
🚀 Released in v3.56.0 |
deepcoldy
pushed a commit
that referenced
this pull request
Nov 11, 2026
Pages 只保留最近两次 master 运行的报告(#2627),run summary 和失败评论里的 链接再合入几次就 404,读者不知道该去哪看。现在 summary 和失败评论会在 Pages 链接旁注明报告会被清理,并指向本次运行的 botmux-midscene-site artifact(保留 7 天,和发布到 Pages 的是同一份站点)。README 里「保留最新五次」也改成了实际 的两次。 Co-Authored-By: Claude Fable 5 <[email protected]>
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.
问题
Midscene 报告(
https://deepcoldy.github.io/botmux-midscene/<key>/)10-30 一度全部 404。gh-pages 上文件已推上去,但 deepcoldy.github.io 的 Pages 构建从 10-30 13:16Z 起连续Page build failed:botmux-midscene/攒到 11.2 GB / 3.5 万个文件,其中 50 个已合入或关闭 PR 的pr-*报告(约 10.2 GB)从不清,单个报告 300–600 MB;发布脚本此前只给master-run-*留最近 5 个。失败与站点膨胀同期发生,但后续实测表明没有清晰的 1 GB 阈值(见下「实测」),所以保留策略按观察到的风险做、不按文档阈值写。改动
scripts/publish-gh-pages.sh:新增可选的PAGES_OPEN_PRS(空格分隔的 open PR 号)。设了就删掉同级目录里不在列表中的pr-<号>;本次发布的目标目录、非pr-<数字>的目录(manual、各 lane、master-run)不动。不设时行为不变。midscene-e2e.yml发布步骤:用gh pr list --state open取 open PR 传进去(job 加pull-requests: read);列失败只打 warning、这轮不清。master-run-*保留数 5 → 2。已做的一次性清理 + 后续时间线
botmux-midscene/只剩 clis-lane、manual、sandbox-lane、master-run-41061703065,约 0.6 GB。errored——所以不是「树小下来立刻恢复」。0f04183/b887514(871 MiB)、2eeeaa8(1087.5 MiB / 4959 文件)、e61ba3f(22:47Z,1391.1 MiB / 6224 文件)均built,报告链接 200。实测(修正早先的错误结论)
dffb1de10:30Z 又成功过一次)。真实边界既不是 1 GB,也不像单一尺寸阈值——可能与文件数、对象库或当时 Pages 后端状态有关,未最终定性。du -s字节预算而非固定个数(2×600 MB 报告会回到 1.5 GB)。gh pr list --limit 1000隐含 open PR 不超过 1000,当前 32 个。验证
test/publish-gh-pages.test.ts新增两条:清掉非 open PR 的报告但保留 open 的、目标目录和其他目录;空列表等于没有 open PR。改动前这两条都红,改动后 6/6 绿。bash -n通过,workflow YAML 能正常解析(6 jobs);bun test test/publish-gh-pages.test.ts test/midscene-e2e-workflow.test.ts15/15 绿。假 gh 探针覆盖 list 正常/空列表/取号失败三条路径,变异 5 枪咬红(含两侧空格的子串匹配守卫)。对老用户
只影响 deepcoldy.github.io 上的报告保留策略,不碰 botmux 运行时。已关闭 PR 的报告链接会 404(原始数据仍在对应 Actions run 的 artifact 里)。
🤖 Generated with Claude Code