audit_pre_agent_workspace.sh can exceed the 1 MiB step summary limit when toolchains are installed under RUNNER_TEMP/gh-aw/tool-cache
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 70/100
Hướng nghiên cứu
Bắt đầu từ actions/setup/sh/audit_pre_agent_workspace.sh, tại danh sách loại trừ các thư mục cache và tại render_summary_tree, hàm ghi vào GITHUB_STEP_SUMMARY. Issue đưa ra ba phương án (loại trừ tool-cache, giới hạn kích thước bản tóm tắt, hoặc chỉ tóm tắt số lượng cho RUNNER_TEMP/gh-aw); hãy xác nhận phương án với một maintainer trước. Hoàn thành khi một lần cài đặt .NET trong RUNNER_TEMP/gh-aw/tool-cache không còn làm bản tóm tắt vượt quá 1 MiB, và /tmp/gh-aw/pre-agent-audit.txt vẫn giữ danh sách đầy đủ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 5.4k
- Fork
- 584
- Merge trung bình
- 3 giờ 56 phút
- Pull request đã merge (30 ngày)
- 810
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/gh-aw
-
goroutineresourceleak (81st linter): paren_unwrap_gap across lock/cancel/channel detection, day oneĐang mởcookie sergo
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
agentic-workflows cascade-suspected
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
Maintainer thường phản hồi trong vòng 1 ngày
-
agentic-workflows cascade-suspected
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 18/100
Maintainer thường phản hồi trong vòng 1 ngày
-
agentic-workflows cascade-suspected
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 18/100
Maintainer thường phản hồi trong vòng 1 ngày
-
agentic-workflows cascade-suspected
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 15/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
perf(translator): Claude→Responses stream re-validates the whole request body on every SSE chunkĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
router-for-me/CLIProxyAPI#6665 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
superplanehq/superplane#8557 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
copilot-api domain:platform go
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
docs: clarify gh api -f vs -F and @-file expansion in the gh skillCó thể đã có người làm @MatiasOlivera đã nhận hôm nay. Đang mởenhancement
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày