Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de 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

Cerrado Apto para principiantes
#68,496 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@pelikhan ya está trabajando en esto.

Desde el 14/10/2026.

  • #68725 de @copilot-swe-agent — fusionado

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
70/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github-actions, shell
Área
ci-cd

Línea de trabajo

Empieza en actions/setup/sh/audit_pre_agent_workspace.sh, en la lista de exclusión de directorios de caché y en render_summary_tree, que escribe en GITHUB_STEP_SUMMARY. El issue ofrece tres opciones (excluir tool-cache, limitar el resumen o resumir solo recuentos para RUNNER_TEMP/gh-aw), así que confirma primero la elección con un maintainer. Está terminado cuando una instalación de .NET en RUNNER_TEMP/gh-aw/tool-cache ya no hace que el resumen supere 1 MiB, mientras /tmp/gh-aw/pre-agent-audit.txt conserva el listado completo.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Go
Estrellas
5.4k
Forks
584
Merge medio
3 h 59 min
PR fusionados (30 d)
823

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github/gh-aw

Todos los issues de github/gh-aw

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.