Operate and improve CI/CD
Finish the pipeline review
Run the complete repository path from pull request through deployment, failure, cancellation, rollback, and credential revocation.
9 minute lesson
The final evidence maps triggers, permissions, artifacts, environments, deployments, logs, limits, owners, and runbooks. This is a small part of a GitHub repository whose workflow tests, builds, packages, and deploys a small site through a protected environment, but the boundary it creates affects everything that follows.
A pipeline is complete when its trust boundaries and recovery are tested, not when the happy path shows green. The useful target is not encyclopedic coverage. Make one deliberate choice, observe its consequences, and know which requirement would make you revise it.
Watch for one shortcut in particular: trying to add more automation while nobody can explain token authority or restore the previous release. It makes later failures harder to locate. Instead, review the pipeline as code and infrastructure, exercise every critical failure path, and record remaining risks honestly. Prefer an implementation you can explain from the outside before optimizing it.
Keep the wider goal in view: Operate the pipeline as a production system with useful signals, bounded cost, maintenance ownership, and recovery. A short observation with concrete evidence is more useful than a confident sentence with no reproduction path.
Use one final scenario that includes a fork PR, failed test, rapid pushes, approval, bad staging result, fixed release, and rollback. Hand the result to someone else and see whether the behavior is clear without an oral explanation.
Lesson completed