A pipeline gate that earns its place
What a layout audit, a post-deploy check and a tag-only release taught me
Good gates check the thing users see, fail with a clear reason, and are exact about what moves production.
Three small pieces of pipeline I now trust, and why.
1. Check what the user sees
A build that type-checks can still overflow horizontally on a phone. An audit that loads each page at 375, 560, 768, 1024 and 1280 px and fails on horizontal overflow catches real regressions. When it flagged an off-screen drawer that was hidden on purpose, the right fix was to teach the audit to skip elements that are not visible, not to disable it. A gate that cries wolf gets ignored.
2. Check after you deploy, not only before
The docs site deploy runs a check against the live privacy page for required wording. Passing tests do not prove the deployed page still says what it must. The post-deploy check is the one that notices.
3. Be exact about what moves production
For the portfolio, production moves only on a v* tag: tests, then promote the release, then deploy. Merging is cheap and safe; releasing is a deliberate act. It also makes the question "what is live?" answerable from one tag.
Optimising the pipeline itself
Rule of thumb
A gate earns its place if it fails for a reason you can read in one line, and if the thing it protects is something a user would notice.