Compare commits
2 Commits
fix/pagina
...
fix/deploy
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21aadf6d82 | ||
| 35d506df77 |
@@ -187,14 +187,16 @@ trap - ERR
|
||||
|
||||
# ── 7. RPM + smoke ──
|
||||
say "7/7 Build/install CLI RPM + smoke tests"
|
||||
bash scripts/release.sh
|
||||
systemctl --user restart mcplocal && sleep 2
|
||||
if pnpm test:smoke > /tmp/deploy-smoke.log 2>&1; then
|
||||
grep -E "Tests |passed" /tmp/deploy-smoke.log | tail -2
|
||||
# release.sh already restarts mcplocal and runs the smoke suite against the
|
||||
# binary it just installed. This step used to restart and re-run it a second
|
||||
# time, which put two full suites inside a minute and tripped mcpd's rate
|
||||
# limiter: the second run failed with 429s and printed a false
|
||||
# "SMOKE TESTS FAILED — consider rollback" over a perfectly healthy deploy.
|
||||
# One run, one verdict.
|
||||
if bash scripts/release.sh; then
|
||||
say "Deploy complete — $TAG live. Rollback tag: $ROLLBACK_TAG"
|
||||
else
|
||||
tail -40 /tmp/deploy-smoke.log
|
||||
warn "SMOKE TESTS FAILED — system may be unhealthy. Consider rollback:"
|
||||
warn "RELEASE OR SMOKE TESTS FAILED — system may be unhealthy. Consider rollback:"
|
||||
rollback_recipe
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user