A UK healthcare SaaS company

devstack-platform

One control plane replaced two disconnected paths for test environments, then grew into an observability console with logs, traces, errors, metrics, SLOs and cost.

6 tools, 1 consoleLogs, traces, errors, metrics, SLOs and cost in one place

Outcomes

  • Scrubbed production data on demand, behind two-person approval. It replaced a standing performance environment.
  • One control plane replaced both paths: the PHP dashboard with GoCD, and ad-hoc Cloud Build and Terraform runs.
  • 317 test files, held at 85% line and 90% branch coverage.

The problem

Branch test environments ran on two disconnected paths: an old PHP dashboard driving GoCD to build VMs, and ad-hoc Cloud Build and Terraform runs the dashboard could not see.

Environments leaked. One sweep found 77 orphaned load-balancer chains and 88 empty buckets.

What I built

  • A pnpm TypeScript monorepo: a Hono API, a SQLite job-queue worker and a React console.
  • A GitHub App with /devstack PR commands to create, destroy, redeploy, refresh data, snooze and wake environments, and Slack cards that update in place.
  • The worker dispatches GitHub Actions that build each app and Terraform a VM per environment.
  • Lifecycle automation: expiry, a daily snooze at 17:30, stale-failure cleanup and an orphan-VM reaper.
  • On-demand loading of a scrubbed production data copy into staging, behind two-person approval.
  • An observability console: log search with live tail, traces with SQL spans, error tracking, metric explorers, dashboards, SLOs, alert routing, incidents, and cost pages from the billing export.

Architecture and stack

  • TypeScript, Hono, React, TanStack Router and Query, Drizzle, SQLite
  • GitHub App, Slack API, Microsoft Entra sign-in
  • GCP: Cloud Run, Compute Engine, Cloud Monitoring, Cloud Trace
  • Terraform, GitHub Actions, Skaffold