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
{{ message }}
Repository navigation
Deploy Dev reports failure on every successful deploy — and it has made helm rollback dangerous #835
So this is a reporting failure in helm's post-apply wait — the client-side rate limiter times out before the wait completes — not a deployment failure. The failing job is Build + push + helm upgrade.
Why this is worth fixing rather than tolerating
helm rollback is now a loaded gun. Because 420/421/422 are all recorded failed, the newest revision helm considers deployed is 419, from Aug 2. A bare helm rollback commonly-dev during an incident would silently revert three days of production — including the two auth fixes (#817, #821) and the heartbeat opt-in (#833). The operator would be reaching for rollback precisely when they are least likely to check which revision it resolves to.
It trains us to ignore red. Three consecutive false failures in one day is enough to make a real failure invisible. The next genuine deploy break will look exactly like the noise we have learned to dismiss.
Shape of a fix
Likely --wait combined with a kubectl/helm client QPS limit too low for the number of resources in the chart, so the rate limiter's own deadline trips before the resources converge. Worth checking in order:
Raise the helm client burst/QPS (HELM_BURST_LIMIT, default 100) in the deploy workflow — cheapest, and matches the error text.
Confirm --timeout is generous enough that the wait is not racing the limiter.
If the wait remains unreliable, drop --wait and gate the job on an explicit kubectl rollout status per deployment, which reports what we actually care about and gives a truthful exit code.
Whatever the fix, the acceptance test is that a successful deploy exits 0 and leaves a deployed helm revision, so that helm rollback resolves to something from this week.
Fourth instance, same day — and this one was observed end-to-end while the issue was open.
Run 30952532468 (ref 9f10aa57, the #817/#821 auth fixes) reported conclusion=failure; helm recorded revision 423 as failed with the identical client rate limiter Wait returned an error: context deadline exceeded. The rollout was nevertheless complete and correct:
Confirmed functionally rather than by tag alone: hq-support (not a member) attempted to join a private pod by guessing its exact name and got 403 pod_name_unavailable with the pod's member count unchanged — the #821 behavior, which only exists in this image.
Timing narrows the cause. All four deployments were already on the new tag and ready well before the workflow gave up, so the failure is entirely in helm's post-apply wait, not in the apply. The rate limiter's deadline expires while it polls resources that have already converged.
Updated state: revisions 420–423 are all failed, and the newest deployed revision is still 419 (Aug 2). The rollback hazard grows with each deploy — a bare helm rollback now reverts four deploys' worth of changes, including both auth fixes and the heartbeat opt-in.
Verified end-to-end on the next deploy after #839 merged (run 30962598850, ref 7ca09471). Three things had to agree, and did:
check
before
after
workflow conclusion
failure ×5
success
helm revision
420–424 all failed
425 deployed
live tags
correct anyway
all four on 7ca09471
The diagnosis in the report above is wrong, and I want the correction attached to it. I proposed raising HELM_BURST_LIMIT first, because the error reads client rate limiter Wait returned an error. But the release already ran --burst-limit 200 --qps 100 from #245 — that "fix" had been in place for months while failing all day. It was never throttling. It was the context deadline expiring while --wait waited on two workloads that can never become ready: litellm (561 restarts over 2d10h) and cloud-codex-cody (Init:CrashLoopBackOff).
A rate-limiter error message that is not about rate limiting. Worth remembering before someone re-derives it from the same string.
Residual — not fixed, not fixable
Revisions 420–424 stay marked failed in helm history permanently. Those five deploys succeeded; the record says otherwise and cannot be rewritten. Anyone doing archaeology on this window will see five failures that were not, so the correction lives here with the evidence.
The rollback hazard is resolved going forward — the newest deployed revision is current rather than three days stale — but a rollback explicitly targeting anything in 420–424 still targets a revision helm believes failed.
Left open deliberately
litellm.enabled and agents.cloudCodex.enabled are both true in values-dev.yaml while both workloads are dead. Turning them off would have fixed this too, and would stop the wasted scheduling — 561 restarts and counting — but that is a call about the native runtime and the cloud-agent tier, not a CI fix. Doing it to make CI green would have been the right change for the wrong reason.
Activity
lilyshen0722 commentedon Aug 4, 2026
Fourth instance, same day — and this one was observed end-to-end while the issue was open.
Run
30952532468(ref9f10aa57, the #817/#821 auth fixes) reportedconclusion=failure; helm recorded revision 423 asfailedwith the identicalclient rate limiter Wait returned an error: context deadline exceeded. The rollout was nevertheless complete and correct:Confirmed functionally rather than by tag alone:
hq-support(not a member) attempted to join a private pod by guessing its exact name and got403 pod_name_unavailablewith the pod's member count unchanged — the #821 behavior, which only exists in this image.Timing narrows the cause. All four deployments were already on the new tag and ready well before the workflow gave up, so the failure is entirely in helm's post-apply wait, not in the apply. The rate limiter's deadline expires while it polls resources that have already converged.
Updated state: revisions 420–423 are all
failed, and the newestdeployedrevision is still 419 (Aug 2). The rollback hazard grows with each deploy — a barehelm rollbacknow reverts four deploys' worth of changes, including both auth fixes and the heartbeat opt-in.ci(deploy): report the deploy that happened, not the cluster's worst …
lilyshen0722 commentedon Aug 5, 2026
Verified end-to-end on the next deploy after #839 merged (run
30962598850, ref7ca09471). Three things had to agree, and did:failure×5successfaileddeployed7ca09471The diagnosis in the report above is wrong, and I want the correction attached to it. I proposed raising
HELM_BURST_LIMITfirst, because the error readsclient rate limiter Wait returned an error. But the release already ran--burst-limit 200 --qps 100from #245 — that "fix" had been in place for months while failing all day. It was never throttling. It was the context deadline expiring while--waitwaited on two workloads that can never become ready:litellm(561 restarts over 2d10h) andcloud-codex-cody(Init:CrashLoopBackOff).A rate-limiter error message that is not about rate limiting. Worth remembering before someone re-derives it from the same string.
Residual — not fixed, not fixable
Revisions 420–424 stay marked
failedin helm history permanently. Those five deploys succeeded; the record says otherwise and cannot be rewritten. Anyone doing archaeology on this window will see five failures that were not, so the correction lives here with the evidence.The rollback hazard is resolved going forward — the newest
deployedrevision is current rather than three days stale — but a rollback explicitly targeting anything in 420–424 still targets a revision helm believes failed.Left open deliberately
litellm.enabledandagents.cloudCodex.enabledare bothtrueinvalues-dev.yamlwhile both workloads are dead. Turning them off would have fixed this too, and would stop the wasted scheduling — 561 restarts and counting — but that is a call about the native runtime and the cloud-agent tier, not a CI fix. Doing it to make CI green would have been the right change for the wrong reason.