Skip to content

fix: requeue manual deployments when bakeStatus is Deploying#46

Merged
LittleChimera merged 1 commit into
mainfrom
fix/manual-deploy-bake-requeue
May 19, 2026
Merged

fix: requeue manual deployments when bakeStatus is Deploying#46
LittleChimera merged 1 commit into
mainfrom
fix/manual-deploy-bake-requeue

Conversation

@LittleChimera
Copy link
Copy Markdown
Contributor

Summary

  • Bug: When handleBakeTime transitions a manual deployment from DeployingInProgress, the refetched rollout may still show Deploying due to informer cache lag. The manual deployment monitor only checked == BakeStatusInProgress, so it logged "No requeue needed" and dropped the 10s requeue — causing a 60+ second gap before bake started.
  • Fix: Accept both BakeStatusDeploying and BakeStatusInProgress in the condition at rollout_controller.go:319, so the controller continuously polls (every 10s) from deployment until health checks clear and bake starts.
  • Test: Added "should requeue manual deployment when bake is still Deploying (health checks not healthy)" which failed before the fix and passes after.

Test plan

  • make test passes in rollout-controller
  • On cluster: set wantedVersion to trigger manual deploy, verify "Manual deployment bake active, requeuing to monitor" appears in logs with bakeStatus: "Deploying" and requeueAfter: "10s" immediately after deployment
  • Bake starts within ~10s of health checks clearing (vs 65+ seconds before)

🤖 Generated with Claude Code

When handleBakeTime transitions Deploying→InProgress, the refetched
rollout may still show Deploying due to informer cache lag. The manual
deployment monitor only checked for InProgress, so it logged "No requeue
needed" and dropped the 10s requeue from handleBakeTime entirely.

Accept both BakeStatusDeploying and BakeStatusInProgress in the monitor
condition so bake is continuously polled (every 10s) from the moment of
deployment until health checks clear and bake starts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@LittleChimera LittleChimera merged commit 2958dc1 into main May 19, 2026
3 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant