Skip to content

Stable releases are 'Latest' for ~6-7 minutes before their assets exist, breaking install.sh #3759

Open

Description

@KuSh

Problem

Every stable release opens a window of roughly 6–7 minutes during which
https://github.com/rtk-ai/rtk/releases/latest resolves to a published
release that has no assets yet
. Any curl -fsSL … | sh install started in
that window fails.

install.sh resolves the version from exactly that redirect and then downloads
by name:

# install.sh:53
VERSION=$(curl -sI "https://github.com/${REPO}/releases/latest" ... )
# install.sh:92
DOWNLOAD_URL="https://github.com/${REPO}/releases/download/${VERSION}/${BINARY_NAME}-${TARGET}.tar.gz"

So during the window the version resolves fine and the tarball 404s.

Evidence

Release publish time vs. first asset upload, for the last six stable releases:

Tag Published First asset Window
v0.46.0 19:07:43 19:14:55 7m12s
v0.45.0 09:41:43 09:48:19 6m36s
v0.44.2 16:47:18 16:53:01 5m43s
v0.44.1 13:51:32 13:59:04 7m32s
v0.44.0 12:39:04 12:45:55 6m51s
v0.43.0 08:55:20 09:02:07 6m47s

Reproduce:

gh release view v0.46.0 --json publishedAt,assets \
  --jq '"\(.publishedAt) vs \(.assets | map(.createdAt) | sort | .[0])"'

Root cause

release-please creates the GitHub Release as published (not a draft) the
moment the release PR merges. The multi-platform build in release.yml only
starts afterwards and takes ~6–7 minutes to upload assets. GitHub points
/releases/latest at the newest published, non-prerelease release, so it
switches to the new tag immediately.

Proposed fix

Have release-please create a draft and promote it only once assets are
verified:

  1. Add "draft": true to release-please-config.json.
  2. After the verify-assets job in release.yml passes, publish it:
    gh release edit "$TAG" --draft=false.

Drafts are excluded from /releases/latest, so the redirect keeps pointing at
the previous complete release until the new one is genuinely installable. The
failure mode also inverts usefully: if the build breaks, the release stays a
draft rather than becoming a broken "Latest".

Worth checking as part of this: update-latest-tag force-pushes the latest
git tag on a separate path, so the two "latest" mechanisms should be made to
agree.

Related

Branch ci/path-filtering-189 adds a verify-assets job that demotes an
incomplete release to prerelease on failure. That bounds the damage (the
redirect falls back to the last good tag) but does not close this window,
because the release is already published before that job runs.

Activity

  1. rtk-release-bot commented on Nov 30, 2026

    @rtk-release-bot
    Contributor

    This issue has been automatically marked as stale due to 90 days of inactivity. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions