Files
Davanum Srinivas a014a8280b fix(deploy): retry a chart download refused with a 429 or a 6xx (#2553)
On 2026-11-30 and 2026-12-01 GitHub's release downloads refused chart
downloads with "618 jwt:expired". helm_install retried only a 5xx, so the
install failed at the first try and the CI job failed with it. The cause of
the 618 is not known.

helm_install now retries a 429 and a 6xx too. It makes up to 4 tries, not 3,
and waits 5, 20 and 60 seconds between them, not 5 each time. In one job the
download worked again a second after the fault, so the first wait stays
short. In another job the same chart failed four times in 3.5 minutes, so
the later waits are longer. The log line names the code and the wait.

The worst case for one chart is 85 seconds of waiting before helm's error
and exit code are returned. A fault that lasts longer still fails the
install. An install that passes can wait that long for each chart it
downloads: 255 seconds for the three charts of the e2e deploy paths. That
stays inside the 15 minutes that deploy-stack.sh waits for the controller
chart's CRDs.

The deploy tests run the install against a stand-in helm and sleep.

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
2026-12-01 08:44:09 -05:00
..