fix(ops): deploy waits for a running SSG rebuild; gate ignores ssg-worker content state - #698
Merged
Merged
Conversation
…rker content state Two deploys today failed the same way: an SSG rebuild was rendering into dist/ssg-new when the deploy's frontend build emptied dist/, the 08-31 guard failed the job, ssg-worker went unhealthy, and #691's new gate then failed the next deploy on it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What broke (2026-10-04)
dist/ssg-newwhile the fix(security): assistant credential scope, per-client rate-limit keys #693 and chore: delete podcast feature #692 deploys ran Build frontend, which emptiesapps/web/dist. The 2026-08-31 guard (assertBuildSurvived) correctly failed those jobs instead of promoting a half tree →lastRunFailed: true, health check red.DropPodcastmigration had already been applied.Fix
Queued/Running(max 40 min, then proceed with a warning). Only jobs started/created in the last hour count — a row leftRunningby a crash (nothing recovers those; one exists locally) must not cost every deploy 40 min.ssg-worker: its "last rebuild failed" is content state, alarmed byhealth-check.yml, not a broken deploy.Verified
textstack_prod, status stored as text).After merge
Queue one clean full rebuild with nothing deploying →
lastRunFailedresets, health check green.Rollback
Revert.
🤖 Generated with Claude Code