Repository navigation
Description
Analysis
Under runner.topology: arc-dind, rewriteArcDindEngineCommand() (pkg/workflow/awf_arc_dind.go) rewrites every /tmp/gh-aw occurrence in the engine command to ${RUNNER_TEMP}/gh-aw:
func rewriteArcDindPath(path string) string {
return strings.ReplaceAll(path, constants.TmpGhAwDir, awfArcDindRootPathExpr)
}For pi this includes the streaming log that buildPiCommand() (pkg/workflow/pi_engine.go) pipes to:
... pi ... 2>&1 | tee /tmp/gh-aw/pi-streaming.jsonl # PiStreamingLogFile
→ ... pi ... 2>&1 | tee ${RUNNER_TEMP}/gh-aw/pi-streaming.jsonl # compiled, arc-dind
But the agent container mounts ${RUNNER_TEMP}/gh-aw read-only; appendArcDindMountSettings() (pkg/workflow/awf_command_builder.go) only adds rw mounts for ${RUNNER_TEMP}/gh-aw/home and ${RUNNER_TEMP}/gh-aw/sandbox/agent:
--mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro"
--mount "${RUNNER_TEMP}/gh-aw/home:${RUNNER_TEMP}/gh-aw/home:rw"
--mount "${RUNNER_TEMP}/gh-aw/sandbox/agent:${RUNNER_TEMP}/gh-aw/sandbox/agent:rw"
So tee fails to open its file, and the step's set -o pipefail turns pi's success into exit 1. The agent job fails and safe outputs the agent already emitted are never processed.
Secondary: GH_AW_AGENT_OUTPUT / the log parser still point at /tmp/gh-aw/pi-streaming.jsonl (not rewritten), while artifact upload uses ${{ runner.temp }}/gh-aw/pi-streaming.jsonl, so parsing and upload disagree on arc-dind.
Reproduction
- gh-aw v0.89.21 (AWF v0.28.23), ARC DinD,
DOCKER_HOST=tcp://127.0.0.1:2375,runner.topology: arc-dind,engine: { id: pi, model: copilot/claude-sonnet-5 }, one MCP server, oneadd-commentsafe output. - Compile the same workflow with and without
runner.topology: the tee target is${RUNNER_TEMP}/gh-aw/pi-streaming.jsonlvs/tmp/gh-aw/pi-streaming.jsonl. - Run log: pi completes normally (model 200s, MCP tool call,
add_commentaccepted,agent_settled), then:
tee: /home/runner/_work/_temp/gh-aw/pi-streaming.jsonl: Read-only file system
[pi-harness] attempt 1: process closed exitCode=1 duration=8s stdout=121082B stderr=904B
##[error]Agent execution exited with code 1
- With the workaround below applied (run green), the step-summary parser still misses the file:
Parse agent logs for step summary GH_AW_AGENT_OUTPUT: /tmp/gh-aw/pi-streaming.jsonl
Log path not found: /tmp/gh-aw/pi-streaming.jsonl
Implementation Plan
- Write the pi streaming log to an arc-dind writable path (
pkg/workflow/pi_engine.go): whenisArcDindTopology(workflowData), use${RUNNER_TEMP}/gh-aw/sandbox/agent/pi-streaming.jsonl(already rw) for theteetarget, or exempt the tee target fromrewriteArcDindPathand keep a path the agent can write. - Keep producer and consumers consistent:
GetLogFileForParsing(),GetDeclaredOutputFiles(),GH_AW_AGENT_OUTPUT, and artifact upload paths should all resolve to that same file under arc-dind. - Audit other engines for the same pattern: any engine command writing to
/tmp/gh-aw/<file>outsidehome/orsandbox/agent/breaks the same way afterrewriteArcDindEngineCommand(). - Tests (
pkg/workflow/awf_arc_dind_test.go/pi_engine_test.go): for pi + arc-dind, assert the tee target sits under a path thatappendArcDindMountSettings()mounts rw, and that parser/upload paths match it.
Workaround (verified end-to-end on ARC DinD)
Pre-create the file and mount it rw over the ro parent:
steps:
- name: Pre-create pi streaming log
run: touch "${RUNNER_TEMP}/gh-aw/pi-streaming.jsonl"
sandbox:
agent:
mounts:
- "${{ runner.temp }}/gh-aw/pi-streaming.jsonl:${{ runner.temp }}/gh-aw/pi-streaming.jsonl:rw"(${RUNNER_TEMP} doesn't work in mounts:: the compiler single-quotes it, so it's never expanded.)
Activity
lpcox commentedon Sep 29, 2026
🔗 AWF tracking issue: github/gh-aw-firewall#9183
ekbritecore commentedon Sep 29, 2026
Found a sibling instance of this same root-cause class (hardcoded
/tmp/gh-awliteral, never rewritten forrunner.topology: arc-dind) in a different file:actions/setup/js/parse_token_usage.cjs— affectsgh-aw.aic/gh-aw.turns/gen_ai.usage.*on the summary spans and the Step Summary token table, not the pi streaming log this issue covers. Filed as #64344 with the same Analysis/Reproduction/Implementation-Plan structure, since it's a distinct file/fix even though it's the same underlying gap.pelikhan commentedon Oct 1, 2026
@copilot review status
pelikhan commentedon Oct 1, 2026
@ekbritecore file new (linked) issues so we track #63717 (comment) otherwize it does not fit in the machinery.
pelikhan commentedon Oct 1, 2026
AND THANKS FOR REPORTING ISSUES!!!!