Skip to content
Prompt Words
History Member

Smoke test

Also called: smoke check.

A short set of checks that runs right after a deploy and tries the few paths that matter most, such as the health endpoint, logging in and placing an order. If one fails, the pipeline rolls back to the last good version; run it on the idle side of a blue-green deploy, before traffic moves, and the bad version never gets users at all. It checks a few key paths, not everything, so it never replaces the full test suite.

Deploy v2 and a smoke test checks 3 key paths in production right after: a few, not everything. Deploy a broken v2 to see a failed check roll it back. Minutes are shortened to seconds here.

Live: v1 · Checks passed: 0 of 3 · Rollbacks: 0

v1 is live. Deploy v2, and a smoke test checks a few key paths right after.

    v1 live

    Say it in a prompt

    After each production deploy of the shop, run a Playwright smoke test from the GitHub Actions deploy job against https://shop.example.com: GET /health returns 200, log in as the test account smoke@example.test, then place a test order with a test card and cancel it. Keep it under 2 minutes. If any check fails, run kubectl rollout undo deployment/shop to go back to the last good version, and post the failed check in the on-call channel.

    Vague vs precise prompt

    Vague prompt

    check the site still works after we deploy

    Typical resultAdds a step that loads the home page once and calls it done, so a deploy that breaks login or checkout passes. Or it writes a 40-minute end-to-end suite that places real orders with a real customer account in production.

    Precise prompt

    After each deploy, run a smoke test under 2 minutes: GET /health, log in as the test account, place a test order and cancel it. On any failure, roll back to the last good version and alert on-call.

    Typical resultA broken checkout is caught within minutes of the deploy and rolled back by itself. The test uses its own account and cancels its order, so no real stock or money moves, and the full test suite still runs before the merge.

    Seen on

    • Microsoft Engineering Playbook: Smoke tests cover only the most critical application path, a few quick calls the app should always answer correctly; they do not aim to cover everything. They are used as a gate, including after production deployments.
    • Azure DevOps Blog: Running smoke tests automatically after each deployment surfaces deployment failures early and confirms that the deployment, configuration and resources all work.
    • AWS CodeDeploy docs: A deployment can run validation tests in lifecycle hooks before traffic moves to the new version (BeforeAllowTraffic) or after it does (AfterAllowTraffic); a failed result can trigger a rollback.
    • AWS CodeDeploy docs: With automatic rollback turned on, a failed deployment redeploys the last known good revision, as a new deployment.

    You might describe it as

    • check the main pages still work right after a deploy
    • a quick test run against production after each release
    • make sure checkout works before we call the deploy done

    Not to be confused with

    • Health check

      A smoke test walks a few main user paths once, right after a deploy; a health check asks each pod "are you alive and ready?" every few seconds, all the time.