You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): sweep only the previews that still hold a slot
The nightly reconcile listed every environment that had ever taken a preview
deployment, with no filter on what became of it. A preview torn down months ago
stayed a candidate for ever, so each night it was re-assessed, handed to Coolify
as a close event for a stack that no longer exists, and re-retired.
The bound made that worse rather than containing it. Candidates were sorted
ascending and truncated to the first hundred, so as soon as more than a hundred
pull requests had ever been previewed, the sweep would spend its whole budget on
the oldest — the ones already dealt with — and never reach a preview that had
actually leaked. The safety net would have stopped catching anything, quietly.
Candidates now come from the same reckoning admission uses: the environments
still holding a slot. Nothing dealt with is swept, and the bound is reached only
if teardown is genuinely failing, which is when a bound is worth having.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017VKWqbmrPJFv8aKZBp36uD
0 commit comments