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

  • Measure which step dominates before touching anything. A slow audit across dozens of pages is a cost you pay on every PR; run the full sweep where it matters and keep a fast path for the rest.
  • When one CI fix applies to several open branches, apply the same commit to each rather than three slightly different fixes.
  • Squash merges keep history readable, but rebase safely (--force-with-lease) so you never overwrite someone else's push.
  • 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.

    Tagged: ci, pipelines, testing, deploy, optimization

    Area: Pipelines and Optimization

    Related notes

    עברית