CI as the Default Shape for Engineering

CI tests on every PR. The norm.

CI is the default shape

CI as the default is the discipline of running every change through automated checks before merge. Without it, code quality drifts and trust in main erodes; with it, the merge gate is the contract rather than the engineer's vigilance.

Standard pipeline shape

The standard pipeline shape is five stages: lint, tests, integration, build, security. The order is cost-ascending and dependency-driven; cheap stages fail fast, expensive ones gate on prior pass.

CI speed targets

Speed is its own discipline. Lint plus unit under five minutes; full pipeline under fifteen. Above that, devs context-switch and the feedback loop dies; the metric matters because the engineering culture depends on it.

Flake handling

Flaky tests destroy CI trust faster than anything. Quarantine fast, track flake rate, do not auto-retry; each retry trains the team to dismiss real failures as flakes.

How to install the discipline

Installation needs three pieces: branch protection, visibility, and parallel PR/main runs. Without all three, the discipline depends on individual conscientiousness and erodes under schedule pressure.