Commit 19a68ae
fix(lib): build ':latest' tutorial agents with --no-cache to stop shipping stale source
The tutorial-agent build/publish pipeline could silently republish a stale
image to the moving ':latest' tag. 'agentex agents build' invoked
'docker.buildx.build' with no cache control, so a cached layer could ship
source that no longer matched the checkout -- e.g. the merged 'mcp<2' pin for
the 020_state_machine agent never reached ':latest', leaving integration tests
pulling a months-old image and failing on the mcp 2.0.0 'McpError' rename.
- add a 'cache' param to build_agent() -> passes cache=False (buildx
--no-cache) through to the build
- expose '--cache/--no-cache' on 'agentex agents build' (default: cache on, so
local dev and immutable SHA builds stay fast)
- build-and-push-tutorial-agent.yml uses --no-cache only for the ':latest'
publish path; SHA-tagged validation builds keep the cache
Related: build-provenance work (#454) records a working-tree hash and could
later provide a more surgical cache-key-based fix; this is the immediate,
guaranteed prevention.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 2b7649c commit 19a68ae
3 files changed
Lines changed: 21 additions & 1 deletion
File tree
- .github/workflows
- src/agentex/lib/cli
- commands
- handlers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
191 | 194 | | |
| 195 | + | |
| 196 | + | |
192 | 197 | | |
193 | 198 | | |
194 | 199 | | |
| |||
197 | 202 | | |
198 | 203 | | |
199 | 204 | | |
200 | | - | |
| 205 | + | |
201 | 206 | | |
202 | 207 | | |
203 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
130 | 136 | | |
131 | 137 | | |
132 | 138 | | |
| |||
155 | 161 | | |
156 | 162 | | |
157 | 163 | | |
| 164 | + | |
158 | 165 | | |
159 | 166 | | |
160 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
| 93 | + | |
88 | 94 | | |
| 95 | + | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
| |||
0 commit comments