Commit 961141a
committed
composefs-gc: Add --assert-no-op flag; use it in readonly smoke test
Regression test for #1808 where
`bootc internals cfs gc` was deleting objects backing live deployments.
Add `--assert-no-op` to `bootc internals composefs-gc` (implies
`--dry-run`) which exits non-zero if GC would remove any objects or
prune any OCI symlinks. This gives tests and health-checks a clean
machine-readable signal without parsing human-readable output.
Use it in the composefs readonly smoke test in place of the previous
approach of capturing stdout and grepping for count strings.
Assisted-by: OpenCode (Claude Sonnet 4.6)
Signed-off-by: Colin Walters <walters@verbum.org>1 parent 5050820 commit 961141a
3 files changed
Lines changed: 41 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
721 | 725 | | |
722 | 726 | | |
723 | 727 | | |
| |||
2201 | 2205 | | |
2202 | 2206 | | |
2203 | 2207 | | |
2204 | | - | |
| 2208 | + | |
| 2209 | + | |
| 2210 | + | |
| 2211 | + | |
2205 | 2212 | | |
2206 | 2213 | | |
2207 | 2214 | | |
| |||
2210 | 2217 | | |
2211 | 2218 | | |
2212 | 2219 | | |
2213 | | - | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
2214 | 2223 | | |
2215 | | - | |
| 2224 | + | |
2216 | 2225 | | |
2217 | 2226 | | |
2218 | 2227 | | |
| |||
2228 | 2237 | | |
2229 | 2238 | | |
2230 | 2239 | | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
2231 | 2254 | | |
2232 | 2255 | | |
2233 | 2256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
185 | 189 | | |
186 | 190 | | |
187 | 191 | | |
| |||
0 commit comments