Staging Smoke Test
FeaturedOn demandAbout Staging Smoke Test
This manually triggered loop runs for up to 6 rounds. Each round runs npm run smoke:staging, fixes whatever failed, then runs the same command again to confirm the result is green.
Key features
- 01Same smoke command for checking and confirming
- 02Exit code gives a clear pass or fail
- 03Capped at 6 rounds to avoid endless retries
- 04Supports Cursor
Use cases
- 01Quick verification after a deploy to staging
- 02Rechecking after fixing a staging issue
- 03A final check before releasing to production
- Goal
- The staging smoke checklist passes in full.
- Exit when
- Stop when the smoke command exits 0, or after 6 rounds if it still fails.
- Between iterations run
- npm run smoke:staging
Launch prompt
Paste into Cursor. The agent repeats the steps below until the exit condition is met.
Start the "Staging Smoke Test" loop. Goal: The staging smoke checklist passes in full. Max iterations: 6. Step 1: Run the smoke checklist — Execute npm run smoke:staging and note the failing checks and error output. If the exit code is 0, move straight to confirmation. `npm run smoke:staging` Step 2: Locate and fix failures — Use the output to find the cause of each failure and change the relevant code or configuration. Address only what relates to the failing checks. Step 3: Confirm green — Run npm run smoke:staging again and verify the exit code is 0. If it still fails, start the next round. `npm run smoke:staging` Between iterations run: `npm run smoke:staging` Exit when: Stop when the smoke command exits 0, or after 6 rounds if it still fails.
Steps
Each round runs in order; if the exit condition isn’t met, another round starts, up to 6.
Execute npm run smoke:staging and note the failing checks and error output. If the exit code is 0, move straight to confirmation.
npm run smoke:stagingUse the output to find the cause of each failure and change the relevant code or configuration. Address only what relates to the failing checks.
Run npm run smoke:staging again and verify the exit code is 0. If it still fails, start the next round.
npm run smoke:stagingSupported agents
Coding agents that can run this loop directly.