Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

audit_pre_agent_workspace.sh can exceed the 1 MiB step summary limit when toolchains are installed under RUNNER_TEMP/gh-aw/tool-cache

Đã đóng Phù hợp với người mới
#68,496 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@pelikhan đang làm issue này rồi.

Từ ngày 14/10/2026.

  • #68725 của @copilot-swe-agent — đã merge

Đá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
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, shell
Lĩnh vực
ci-cd

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ả

ai-inspected

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 directory section: 5,751 under tool-cache/dotnet and 3,448 under tool-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-aw scan, 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

Mở trong Codespaces

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.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/gh-aw

Tất cả issue của github/gh-aw

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.