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