ate-setup fails on HTTP 618 from GitHub release-asset downloads

Open Beginner friendly
#4,248 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
github, github-actions, go
Domain
cli, devops, networking

Research direction

Start with downloadToFile and the kata download in cmd/ate-setup/internal/steps/microvm.go, then run the Go tests for that package. Update the shared download path to retry network failures, HTTP 408, 429, 5xx, and 618 with backoff for a few minutes while failing immediately for other statuses. The change is done when expired release-asset links recover on retry and the package tests cover both retryable and non-retryable responses.

Written by the indexing model from the issue text.

Description

area/dev-infra kind/bug

Since 2026-11-30, ate-setup deploy ate-system sometimes fails in prepare_microvm_deps:

Error: while downloading https://github.com/cloud-hypervisor/cloud-hypervisor/releases/download/v53.0/cloud-hypervisor-static: unexpected HTTP status 618

It happens intermittently in CI on GitHub-hosted runners; a rerun a few minutes later passes.

github.com redirects a release download to a signed link on release-assets.githubusercontent.com, and it can hand out a cached link that has already expired. That host answers 618 jwt:expired, and a new request a few minutes later gets a fresh link (see microsoft/vcpkg-tool#2191).

downloadToFile and the kata download in cmd/ate-setup/internal/steps/microvm.go (same code on main and release-1.0) try once and fail on any non-200 status.

Proposal: retry network errors, 408, 429, 5xx and 618 with backoff for a few minutes, and fail at once on other statuses. A fix on release-1.0 would need a v1.0.x patch release to reach users pinned to v1.0.0.

I have a branch with the fix and can share it here.

Dominant language
Go
Stars
8.7k
Forks
969
Avg merge
5d 1h
Merged PRs (30d)
128

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from agent-substrate/substrate

All issues in agent-substrate/substrate

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.