In plain words
A smoke test is a short set of checks run against the live app right after a deploy, such as loading the home page, signing in and reaching the API, to catch a broken release within minutes.
Where you see it
Harbor's deploy finishes and the pipeline runs a handful of checks against production: the health endpoint answers, the login page loads, a test account signs in and its invoices list loads. If any check fails, the pipeline rolls back before most customers notice.
What goes wrong
- A health check that checks nothing
An /api/health route that always returns 200 stays green while the database is unreachable. Have it touch what the app needs, such as one cheap database query.
- Smoke tests that change real data
A check that creates an invoice or charges a card in production leaves a mess and can email a real customer. Use a dedicated test account and checks that read rather than write.
- Running the full suite after every deploy
Smoke tests have to finish in a minute or two, or nobody waits for them. Keep the long end-to-end suite for before the deploy.
What to tell your agent
Quick check
Sign in to earn +10 XP for itHarbor's /api/health returns 200 with {"ok": true} no matter what. Last night the database was down for an hour and the smoke test stayed green. What's the fix?