Files
loki/scripts/ci/deploy-ready-cd.baseline
T
a58961aac8 fix(ci): deploy-ready gate now checks CD, not just CI — and fixes a live drift it just found (#419)
Two real gaps surfaced by a fleet-wide CI/CD audit, both now closed:

1. This gate only ever verified CI existence. camille-boulangerie had ci.yml
   (verify ran green on every push) and no deploy.yml at all — a green push
   there has never once reached the box. The gate's own stated purpose is
   "absence must not read as success," and it was doing exactly that for CD.
   Fixed in a companion PR (bitbaum/camille-boulangerie#2): the gate now
   detects a Deploy-shaped workflow the same way it detects CI, ratcheted
   independently so a CI regression and a CD regression can never mask each
   other under one shared count. deploy-ready-cd.baseline seeded at 0 — every
   deployed app now genuinely has both, verified fresh, not assumed.

2. apps.conf's `sink` entry pointed at /home/g/dev/aslan-tattoo, which no
   longer exists — some prior autonomous session renamed the checkout to
   /home/g/dev/s-ink and nothing updated the register. Running this gate
   locally caught it immediately (the "drift, not a bare environment" path
   added earlier today). Fixed the path.

Neither of these was visible from CI passing: (1) needs a live check that CI
has never run, and (2) can ONLY be caught locally, since it depends on the
actual fleet checkouts existing — nothing schedules that check anywhere. That
residual gap (no cron ever runs the fleet-inspection half) is reported
separately, not fixed here — it needs a real decision about where such a
check could run unattended, not a quick patch.

scripts/test/deploy-ready-gate.sh gets 4 new cases using synthetic fixture
repos (not the real fleet, which could coincidentally look fine) to prove CI
and CD are detected independently, including camille's exact shape: a repo
with only a CI workflow must be flagged for missing CD, not CI.


Claude-Session: https://claude.ai/code/session_01Y9rKLxddothnXEtY6KDziN

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 10:56:09 +02:00

2 lines
2 B
Plaintext