Skip to main content

Dev Ops

How do you ship code safely, repeatedly, and fast?

DevOps is the union of people, process, and products to enable continuous delivery of value. Three pillars: automate the build, secure the pipeline, measure the flow.

The Pipeline

CODE → BUILD → TEST → DEPLOY → MONITOR → FEEDBACK
│ │ │ │ │ │
▼ ▼ ▼ ▼ ▼ ▼
Git Types Vitest Vercel PostHog Improve
CI E2E Preview Alerts Process
StageToolWhat It CatchesDepth
Typechecktsc --noEmitType errors, missing importsCI Infrastructure
Unit + IntegrationVitestLogic bugs, DB contract violationsTesting Strategy
E2EPlaywrightAuth flows, critical user journeysTesting Tools
DeployVercelPreview per PR, production via mergeCloud Orchestration
MonitorPostHogUsage patterns, errors, performancePerformance Metrics

Security

Running unvetted code on machines with private keys, GitHub credentials, and personal files is the primary attack surface.

ThreatMitigation
Supply chain attacks (compromised packages)Lock dependencies, audit before upgrade
Malicious code repos (interview scams)Run in unmounted Docker containers
Key leaks (env vars in logs, git history).env in .gitignore, rotate on exposure
Smart contract audit trapsIsolated environment, never run on host

Emergency response: docker kill <container> → close all windows → remove container entirely.

Git Practices

PracticeStandard
Commit messagesConventional Commits
Branch strategyFeature branches → PR → main
HooksPre-push validation (GitHub)
Feature flagsfeatbit
Release automationRelease It

Monorepo CI

NX affected commands skip unchanged projects. Computation caching reuses previous results. Together they cut CI time by 60-80% on a 10-project monorepo. See Monorepo Build Tools.

Dig Deeper

  • CI Testing Infrastructure — Two-loop pipeline design, preview deploy testing, signal hierarchy, cost controls
  • Dev Environment — Docker isolation, container security, safe execution of untrusted code
  • GitHub — Source control, hooks, actions, branch protection
  • CI Strategy Audit — Gap analysis: three critical gaps, four-phase fix plan, benchmark alignment
  • Deploy Checklist — What happens after tests pass — pre-deploy, deploy, post-deploy gates
  • Logging Checklist — Structured logging standards, what to log, what not to log

Context

Questions

What breaks first when your lone DevOps person is unavailable for a week?

  • Which step in your pipeline has the highest false-failure rate — and what does that cost in developer trust?
  • If you measured time-from-commit-to-production, where is the bottleneck?
  • What security assumption are you making that hasn't been tested?