Commit 8d65635
authored
Guard registry-build sync against partial extracts (#66137)
`aws s3 sync` exits 0 silently when its source directory is missing or
empty, so a partial `breeze registry extract-data` failure (one provider
errors mid-run, Eleventy still produces a tree, sync uploads stale or
empty JSON) would currently report green while leaving the live registry
in an inconsistent state.
This adds the same pre-sync content guards `registry-backfill.yml` got
in PR #66027: for incremental builds, assert each target provider's HTML
directory + API directory + `versions.json` exist and are non-empty;
for full builds, assert the top-level `index.html`, `api/providers.json`
listing, and at least one provider subtree under `api/providers/` are
present. Any missing artifact aborts the sync with `::error::` before
S3 is touched.1 parent 046b490 commit 8d65635
1 file changed
Lines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
263 | 309 | | |
264 | 310 | | |
265 | 311 | | |
| |||
0 commit comments