Skip to content

ci(release): publish index.json with every stable release - #104

Open
Vect0rM wants to merge 1 commit into
devfrom
ci/publish-release-index
Open

Vect0rM wants to merge 1 commit into
devfrom
ci/publish-release-index

Conversation

@Vect0rM

@Vect0rM Vect0rM commented Nov 24, 2026

Copy link
Copy Markdown
Member

Why

Atomic Chat reads the engine catalog from releases/latest/download/index.json first (app ADR 2026-08-05). No release ever published that file, so the app always fell back to the /releases/latest redirect and guessed asset names.

After the rename to atomic-engine, that redirect takes two hops (301 old name → new name, then 302 → tag). Core ≤ 0.24.7, which ships in Atomic Chat 2.4.7, reads only the first hop. It then fell back to the stale atomic-chat-conf manifest and offered b10269-1.7.0 instead of b10298-2.1.0.

As a hotfix, an index.json was uploaded by hand to b10298-2.1.0. Core is getting the redirect fix in AtomicBot-ai/atomic-chat-core#135. This PR makes every future stable release carry the file, so released apps don't depend on the redirect at all.

What

A new Write release index step in publish-release runs right before Create release:

  • Writes release-index/index.json in schema 1: one release entry with tag, published_at, commit, prerelease: false and title. Each variant gets id, asset, size and sha256, computed from the archives being published.
  • Takes variant ids from the archive names. Windows uses .zip and every other platform uses .tar.gz, which matches the asset names the app and its build script already default to.
  • Optional: if a TURBOQUANT_MIN_APP_VERSION file exists, its value becomes min_app_version. Set it whenever llama-server drops or renames a flag the app passes.
  • gh release create uploads index.json together with the archives, so the release never becomes latest without it.
  • Fails the job when no archive could be listed.

Checked

  • Dry-ran the step's script locally on fake archives, with and without TURBOQUANT_MIN_APP_VERSION. Core's parseTurboquantReleaseIndex accepts the output, and the min_app_version gate hides the release from older apps.
  • The workflow still parses. actionlint reports the same 96 existing findings as on dev, and none are new.
  • Not run in Actions: the step only runs on a release tag.

🤖 Generated with Claude Code

Atomic Chat resolves the engine catalog from releases/latest/download/index.json
first. No release ever published it, so the app relied on the /releases/latest
redirect; after the repo rename that redirect is two hops and core <= 0.24.7
read only the first, falling back to a stale conf manifest (b10269-1.7.0).

The publish job now writes index.json (schema 1: variant ids, asset names,
sizes, sha256, optional min_app_version from TURBOQUANT_MIN_APP_VERSION) and
uploads it in the same gh release create call as the archives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant