You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[aw-failures] Smoke CI hard-fails at config generation — EACCES writing chroot 'hosts' file (awf-bundle writeConfigs), on main +
[Content truncated due to length] #44827
Fix the rootless permission on the per-run chroot dir — the AWF bundle cannot write hosts into /tmp/awf-<ts>/chroot-XXXX/ and hard-fails Smoke CI at config generation, on main and PR branches.
Problem statement
Smoke CI aborts at the Execute GitHub Copilot CLI step during [INFO] Generating configuration files..., before any agent turn runs:
[ERROR] Fatal error: Error: EACCES: permission denied, open '/tmp/awf-1783709757445/chroot-Tdqr8K/hosts'
at Object.openSync (node:fs:560:18)
at Object.writeFileSync (node:fs:2444:35)
at Object.JL [as writeConfigs] (/home/runner/.local/lib/awf/awf-bundle.js:794:3010)
errno: -13, code: 'EACCES', syscall: 'open',
path: '/tmp/awf-1783709757445/chroot-Tdqr8K/hosts'
The run fails closed with exit code 1 and produces no safe output. It reproduces on both main and PR branches, so this is a committed/runtime regression, not a branch artifact.
Correlated signal across the same window: multiple runs also log [WARN] Rootless artifact permission repair failed for ... (exit 1) (e.g. Smoke Copilot Small §29116716332, PR Triage Agent §29115410581), pointing at the same rootless UID/permission handling.
Probable root cause
Under --network-isolation (rootless Docker, no host iptables/sudo), writeConfigs in awf-bundle.js creates the per-run chroot directory /tmp/awf-<ts>/chroot-XXXX/ but the node process UID lacks write permission to drop the generated /etc/hosts there — the directory (or its hosts entry) is created with ownership the AWF process cannot write. The recurring Rootless artifact permission repair failed warnings indicate the rootless UID-mapping / permission-repair path is broken in the current AWF bundle.
Proposed remediation
In the config-generation path, mkdir the chroot dir with a mode/owner writable by the AWF process UID before writeConfigs, or write hosts with the effective UID (avoid inheriting root-owned mounts under rootless).
Fix or gate the Rootless artifact permission repair step so chroot/artifact dirs are chown/chmod'd to the runtime UID prior to write.
Add a fast pre-flight assertion (writable temp probe in the chroot) that surfaces a clear error instead of a mid-run EACCES fatal.
Success criteria / verification
Smoke CI passes on main with no EACCES ... chroot-*/hosts in the Execute GitHub Copilot CLI step.
No Rootless artifact permission repair failed warnings on green Smoke CI runs.
Config generation completes and at least one agent turn executes.
Parent: #44735. Analyzed runs: 29116138962, 29116066895 (last 6h).
Related to #44735
Activity
github-actions commentedon Jul 10, 2026
🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
provider.openai.apiKeyfrom opencode.jsonc (OpenCode 1.2.14 ConfigInvalidError [Content truncated due to length] #44907gh pr checksGraphQL op blocked by CLI proxy (403), idle-watchdog kills the run #44908github-actions commentedon Jul 17, 2026
🎉 Automatically closed by Sub-Issue Closer
All sub-issues have been completed. This parent issue is now closed automatically.
Sub-issues status: 2/2 closed (100%)