Cold-start: fresh germination can stall on the ci-builder CI build (orphaned run, KEDA won't re-scale a runner) #19
Labels
No labels
bug
discussion
duplicate
enhancement
goal
help wanted
horizon:backlog
horizon:governance
horizon:mvp
invalid
operator-decision
question
roadmap
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-platform/mitosis#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while validating clone-and-go on a fresh colima cluster. A fresh
nix run .#upgermination intermittently stalls inbuild_and_verifywaiting forplat/ci-builder:0.1.0to land. The ci-builder CI run wedges in a "running" state with no runner pod executing it, and KEDA'sforgejo-runnerScaledJob staysActive=False(it only scales for queued jobs, not orphaned "running" ones), so nothing re-picks it up. germinate retries the build 4× (35m budget each) and each attempt re-orphans — ~2h then FATAL.Symptoms observed (cold.local, this run):
forgejo-runnerScaledJob:Active=False,lastActiveTimefrozen ~when the early CI steps finished; 0 runner pods.…waiting for plat/ci-builder:0.1.0 (Nm left, CI=running)counting down across attempts 1→3.Suspected cause: the ephemeral runner pod that claims the ci-builder job exits/terminates mid-build (heavy toolchain image), leaving the Forgejo run marked "running" forever; KEDA's postgres trigger counts only queued tasks, so it never spawns a replacement runner. germinate's re-trigger creates a run that's immediately claimed-then-orphaned again.
Fix directions:
build_and_verify: detect an orphaned/stuck "running" CI run (no progress for N min) and cancel + re-queue it (so KEDA sees a queued job), rather than just waiting out the 35m timeout.Note: intermittent — germination succeeded cleanly multiple times this session (plat.local, gc.local). The secrets stack itself is unaffected (the re-seeded bundle verifiably carries mcp 0.23.15 + secrets-cli + the gitops pins). This is cold-start reliability hardening, tracked toward #10.