Commit a35b4ce
committed
[CELL-293] cache-publish now runs even when an earlier build step failed, so a partial
- feat(infra): `Stream-publish /nix volume to GHCR cache image` in both `build.dev.yml` and `build.release.yml` now uses `if: !cancelled() && inputs.skip_nix_cache != true`. A flaky cache.nixos.org download or any other transient build failure no longer throws away the derivations that *did* land in the volume — retry runs hydrate the partial cache and finish faster
- feat(infra): add an inline `du -s /nix` guard before each publish — if the volume is under 1 GB, the step exits early. Protects the healthy cache from being overwritten by an empty-volume publish when the hydrate step itself failed
- feat(infra): expose `skip_nix_cache` as a `workflow_dispatch` input on `build.release.yml` (it already existed on `build.dev.yml`). Setting it to `true` skips both hydrate AND publish — operators can manually flush a poisoned cache by re-running with that flag, then re-running normally to publish a fresh one/nix volume hydrates the next run instead of starting from zero — cache-bust available via the skip_nix_cache workflow input1 parent 9c3294b commit a35b4ce
2 files changed
Lines changed: 32 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
193 | 199 | | |
| 200 | + | |
194 | 201 | | |
195 | 202 | | |
196 | 203 | | |
197 | 204 | | |
198 | 205 | | |
199 | 206 | | |
200 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
201 | 215 | | |
202 | 216 | | |
203 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
| |||
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
| 93 | + | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
| |||
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
129 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
130 | 138 | | |
| 139 | + | |
131 | 140 | | |
132 | 141 | | |
133 | 142 | | |
134 | 143 | | |
135 | 144 | | |
136 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
137 | 154 | | |
138 | 155 | | |
139 | 156 | | |
| |||
0 commit comments