AI Engineering · Practice

One Toolchain, Local and CI Identical

Across the backend and frontend services I own, "works on my machine" and "works in CI" are the same command, run the same way, on the same pinned tool versions — not two workflows that happen to usually agree.

← All AI engineering work
Lint → Type check → Unit tests → Integration (real DB) → UI tests (sharded)
▸ Implementation notes
  • Fail-fast ordering: lint, format, and type-check run first and gate everything else, so CI rejects trivially-broken code in seconds, not minutes
  • Integration tests hit a real containerized database, never mocks, for anything touching persistence — the extra runtime buys a suite that can't lie about a schema mismatch
  • UI tests run browser-driven and sharded across CI runners, so end-to-end coverage doesn't become the bottleneck as the suite grows
  • Secret scanning runs as a pre-commit gate, not a CI afterthought — leaked credentials get caught before they ever reach a remote branch
  • Toolchain pinning: a version manager and task runner (e.g. mise) pins exact language/runtime and package-manager versions in a lockfile, and every workflow — setup, lint, test tiers, migrations, build — is defined as a task, so a developer and CI run the identical command. A declarative task file (e.g. Taskfile) plays the same role on projects that predate or don't need that tool — different runner, same principle
Next project Federated ADMET / Toxicity Sandbox →