audit_pre_agent_workspace.sh can exceed the 1 MiB step summary limit when toolchains are installed under RUNNER_TEMP/gh-aw/tool-cache
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 70/100
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
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.
- Lenguaje dominante
- Go
- Estrellas
- 5.4k
- Forks
- 584
- Merge medio
- 3 h 59 min
- PR fusionados (30 d)
- 823
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de github/gh-aw
-
goroutineresourceleak (81st linter): paren_unwrap_gap across lock/cancel/channel detection, day oneAbiertocookie sergo
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
agentic-workflows cascade-suspected
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
Los mantenedores suelen responder en 1 día
-
agentic-workflows cascade-suspected
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
Los mantenedores suelen responder en 1 día
-
agentic-workflows cascade-suspected
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
Los mantenedores suelen responder en 1 día
-
agentic-workflows cascade-suspected
Dificultad 4/5 1-2 días Aptitud para principiantes 15/100
Los mantenedores suelen responder en 1 día
Todos los issues de github/gh-aw
Issues similares
-
Say in the changelog that the text-index update cannot be rolled backPosiblemente ocupada @praetorianer777 la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
praetorianer777/GoTome#275 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
SAP/crossplane-provider-btp#1118 ·
Los mantenedores suelen responder en 1 día
-
benchmark: `make setup` fails because audit-exporter builds with Go 1.25.0 while go.mod requires 1.26.0Posiblemente ocupada @xsvm la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
volcano-sh/volcano#6097 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area/infra backlog bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
praetorianer777/Stator#417 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día