audit_pre_agent_workspace.sh can exceed the 1 MiB step summary limit when toolchains are installed under RUNNER_TEMP/gh-aw/tool-cache
维护者通常 1 天内回复
评估
调研方向
从 actions/setup/sh/audit_pre_agent_workspace.sh 开始,查看缓存目录的排除列表,以及写入 GITHUB_STEP_SUMMARY 的 render_summary_tree。该 issue 提供了三个方案(排除 tool-cache、限制摘要大小,或仅对 RUNNER_TEMP/gh-aw 汇总计数),请先与维护者确认选择。完成标准是:RUNNER_TEMP/gh-aw/tool-cache 下的 .NET 安装不再使摘要超过 1 MiB,同时 /tmp/gh-aw/pre-agent-audit.txt 保留完整列表。
由索引模型根据 Issue 内容生成。
描述
Problem
actions/setup/sh/audit_pre_agent_workspace.sh appends a rendered file tree of every scanned directory to $GITHUB_STEP_SUMMARY (render_summary_tree >> "${GITHUB_STEP_SUMMARY:-/dev/null}") with no size cap. One of the scanned directories is $RUNNER_TEMP/gh-aw. When the "Redirect tool cache and install paths for ARC/DinD" step has put the setup-dotnet and setup-node installs under $RUNNER_TEMP/gh-aw/tool-cache, that directory holds thousands of files and the rendered summary exceeds the per-step limit (1 MiB, see Adding a job summary). GitHub then fails the upload for that step and adds an error annotation.
The run itself succeeds, so this is cosmetic, but every run of such a workflow carries a red error annotation and loses that step's summary.
Evidence
One implement-issue run (gh-aw v0.89.21, Claude engine, a .NET repository with actions/setup-dotnet and actions/setup-node):
- Log:
Pre-agent audit written to /tmp/gh-aw/pre-agent-audit.txt (9992 lines), then##[error]$GITHUB_STEP_SUMMARY upload aborted, supports content up to a size of 1024k, got 1385k. - Of the 9,992 audit lines, 9,941 are under the
gh-aw temp directorysection: 5,751 undertool-cache/dotnetand 3,448 undertool-cache/node. The workspace sections add 51 lines. - A run of another workflow in a different repository without a .NET install had 741 lines in the same section and did not hit the limit.
The script already excludes common cache directories (node_modules, .cache, vendor, ...) from the listing; tool-cache is not among them.
Suggested fixes
Any one of these would avoid it:
- Exclude
tool-cache(and other installed-toolchain directories) from the$RUNNER_TEMP/gh-awscan, as with the existing cache exclusions. - Cap what is written to the step summary (for example the first N lines plus "... M more, see /tmp/gh-aw/pre-agent-audit.txt"), keeping the complete listing in the audit file.
- Write the summary tree only for the workspace and home directories, and only the counts for
$RUNNER_TEMP/gh-aw.
- 主要语言
- Go
- 星标
- 5.4k
- 派生
- 584
- 平均合并
- 3 小时 38 分钟
- 30 天内合并 PR
- 826
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/gh-aw 的其他 Issue
-
ai-inspected
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
goroutineresourceleak (81st linter): paren_unwrap_gap across lock/cancel/channel detection, day one未关闭cookie sergo
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
automation testing
难度 3/5 半天 新手友好度 15/100
维护者通常 1 天内回复
-
agentic-workflows
难度 4/5 1-2 天 新手友好度 22/100
维护者通常 1 天内回复
-
automation testing
难度 1/5 1 小时以内 新手友好度 5/100
维护者通常 1 天内回复
相似的 Issue
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:session-state issue-rating: 🦞 diamond lobster no-stale P2
难度 2/5 1-3 小时 新手友好度 74/100
openclaw/wacli#503 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 81/100
apache/rocketmq-dashboard#6895 ·
维护者通常 3 天内回复
-
agent-butler-finding chore
难度 1/5 1 小时以内 新手友好度 88/100
jordansmall/spindrift#5466 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
open-telemetry/opentelemetry-go-compile-instrumentation#1507 ·
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 87/100
777genius/agent-notifications#490 ·
维护者通常 1 天内回复