Commit 95a3de3
fix: restructure smoke-chroot workflow to avoid Docker-in-Docker (#508)
* feat: add build test workflows for external test repos
Add 7 agentic workflows that clone and test external repositories to
validate firewall network rules work correctly for different language
ecosystems:
- Node.js: clsx, execa, p-limit (npm install/test)
- Go: color, env, uuid (go mod download/test)
- Rust: fd, zoxide (cargo build/test)
- Java: gson, caffeine (mvn compile/test)
- C++: fmt, json (cmake/make)
- Deno: oak, std (deno test)
- Bun: elysia, hono (bun install/test)
Each workflow:
- Triggers on pull_request and workflow_dispatch
- Uses appropriate network allowlists (defaults, github, language-specific)
- Reports results via PR comments with pass/fail tables
- Adds language-specific labels on success
Also updates postprocess-smoke-workflows.ts to include the new workflows
for local build patching in CI.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: restructure smoke-chroot workflow to avoid Docker-in-Docker
The smoke-chroot workflow had a design incompatibility where it attempted
to run `awf --enable-chroot` commands from within an AWF sandbox container.
This creates a nested Docker-in-Docker scenario that is not supported
(Docker-in-Docker was removed in AWF v0.9.1, PR #205).
This fix restructures the workflow to:
1. Run all chroot tests in the frontmatter `steps:` section, which executes
directly on the GitHub Actions runner BEFORE the agent sandbox starts
2. Save test results to files in /tmp/gh-aw/chroot-test/
3. Have the agent (running inside AWF) simply read the results and post
PR comments/labels
The workflow now:
- Sets up Go (for consistent version testing)
- Captures host versions (Python, Node, Go)
- Builds local containers
- Runs chroot version tests via `awf --enable-chroot`
- Compares versions and saves results
- Agent analyzes results and posts to PR
This approach avoids the Docker-in-Docker problem while still validating
the chroot feature end-to-end.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* chore: merge main and regenerate smoke-chroot workflow
Regenerate smoke-chroot.lock.yml with gh-aw v0.42.0 after merging
origin/main to resolve conflicts.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: add awf build steps before chroot version tests
The smoke-chroot workflow was trying to run `sudo -E awf` commands
before the awf CLI was built and installed. This adds the necessary
npm ci, npm run build, and awf binary installation steps before
the chroot version tests.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: improve version extraction in chroot smoke tests
- Quote values in host-versions.env to prevent bash interpretation
- Extract version patterns directly with grep instead of using tail -1
(which captured awf's exit message instead of the version)
- Simplify comparison logic since chroot versions are already extracted
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 42bc5c7 commit 95a3de3
2 files changed
Lines changed: 165 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
54 | 156 | | |
55 | 157 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 158 | + | |
61 | 159 | | |
62 | | - | |
| 160 | + | |
63 | 161 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 162 | + | |
69 | 163 | | |
70 | | - | |
| 164 | + | |
71 | 165 | | |
72 | 166 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
81 | 170 | | |
82 | 171 | | |
83 | | - | |
| 172 | + | |
84 | 173 | | |
85 | | - | |
| 174 | + | |
86 | 175 | | |
87 | | - | |
88 | 176 | | |
89 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
90 | 183 | | |
91 | | - | |
| 184 | + | |
92 | 185 | | |
93 | | - | |
| 186 | + | |
0 commit comments