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 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 70/100
調査の方向性
actions/setup/sh/audit_pre_agent_workspace.sh を開き、キャッシュディレクトリの除外リストと、GITHUB_STEP_SUMMARY に書き込む render_summary_tree を確認してください。Issue には3つの案があります(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分
- マージ済み PR(30日)
- 826
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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
github/gh-aw#68591 · コメント 1 件 ·
メンテナーはふだん 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
-
bug frontend grammar sev-3
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
-
connector docs good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
soma-intelligence/open-health-sync#134 ·
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 3 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
oss/0 pending team/container-integrations
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DataDog/datadog-agent#58323 ·
メンテナーはふだん 1 日以内に返信