Repository navigation
feat(release): publish release candidates from vX.Y.Z-rcN tags - #4856
Conversation
A release could only be tested from a CI artifact that needs admin access and expires in a week. A vX.Y.Z-rcN tag now runs the same publish pipeline, behind the same approval, and lands on pre-release channels only: a GitHub pre-release, PyPI X.Y.ZrcN, and npm X.Y.Z-rc.N under the `next` dist-tag. The website offers it in a collapsed entry under the stable downloads while it is newer than the latest release. A vX.Y.Z final takes the same path as before. - util/release_tag.py classifies the tag and stamps the RC version at build time, so version.py stays X.Y.Z and the final can reuse the RC's commit. - Agent Hub R2 publishing is skipped for RCs: the catalog has no pre-release channel and would serve an RC as the latest version. - The desktop app keeps the rc suffix when it reads the installed backend's version, so a final app upgrades an RC backend instead of keeping it. Fixes amd#4845
|
Verdict: Approve with suggestions A One small thing to fix before the first RC goes out:
Real-world evidenceN/A: release tooling, CI workflows, and docs. No evidence bundle was produced for this PR. The new classify/stamp logic is covered by unit tests, and the PR description has a dry-run table for 🔍 Technical details🟡 Desktop fast-path never matches for an RC ( 🟢 🟢 The RC npm publish is never checked afterwards ( 🟢 The Strengths
|
…ut from (amd#4868) On a release candidate, the command GAIA prints to install or repair an agent names a git tag that doesn't exist, so following it fails. Since amd#4588 the command pins to `v<installed core version>`; an RC installs as `0.25.0rc1` but is tagged `v0.25.0-rc1` (amd#4856). The pin now uses the tag the core was actually released from, and a dev build, which has no tag, keeps tracking trunk. Final releases are unchanged. This needs to be in before the first `v0.25.0-rc` tag, or every RC tester who needs the chat or flagship agent is handed a command that errors. ## Test plan - [x] `pytest tests/unit/agents/test_install_hints.py` — 39 passed; covers final, four-part, RC and dev versions, and checks the RC mapping against `util/release_tag.py` so the two can't drift - [x] `pytest tests/unit -k "install_hint or not_installed or source_install or release_tag"` — 95 passed - [ ] On an RC install with no agent wheel, `gaia chat` prints a command ending in `@v0.25.0-rc1#subdirectory=…` and that command installs
Today the only way to test a release before users get it is a CI artifact that needs admin access and expires in a week. With this change a
vX.Y.Z-rcNtag publishes a real release candidate that anyone can install from GitHub,pip,npm, or a small collapsed entry on the website. Nothing changes for users who don't ask for it. A finalvX.Y.Ztag runs the same jobs and publishes the same artifacts as before; the RC behaviour only switches on for-rcNtags.What an RC tag does differently (same approval gate):
X.Y.ZrcN, which plainpip install amd-gaiaskips. npm: publishes@amd-gaia/[email protected]undernext, solatestdoesn't move.version.pystaysX.Y.Zand the RC suffix is added from the tag at build time. That means the final can be tagged on the RC's own commit with no second version bump.docs/releases/vX.Y.Z.mdx. The validator accepts-rcNtags; finals are checked as strictly as before.releasebranch update, and Agent Hub R2. The hub catalog has no pre-release channel and picks the highest version, so publishing an RC there would make it the default download.Not in this PR:
.pkg/.deb/.rpmpackages: not built for RCs. They need a numeric-only version (NSIS, rpm), and changing their build scripts right before tonight's release was too risky.@amd-gaia/gaiaon npm: releases on its ownagent-pkg-gaia-*tags and pulls its terminal binary from R2, so it can't ship an RC until R2 has a channel. Both are follow-ups.Test plan
Dry-run tag classification (
python util/release_tag.py classify <tag>):v0.25.00.25.00.25.0(latest)v0.25.0.mdxv0.15.4.10.15.4.10.15.4.1(latest)v0.15.4.1.mdxv0.25.0-rc10.25.0rc10.25.0-rc.1(next)v0.25.0.mdxv0.25.0-rc120.25.0rc120.25.0-rc.12(next)v0.25.0.mdxv0.25.0-rc.1,v0.25.0rc1,v0.25.0-rc0,v0.25.0-beta1validatepython -m pytest tests/unit -k "release or version or docs_json or publish or workflow": 737 passed. Includes the newtests/unit/test_release_tag.py, which covers classification, stamping, the validator, and the workflow wiring (including which workflows an RC tag starts).npx jest backend-installerintests/electron: 48 passed. An RC app pinsamd-gaia==X.Y.ZrcN, and a final app upgrades an RC backend instead of keeping it.npx vitest runinwebsite/: 247 passed.npm run buildwith the live catalog shows no RC entry, which is correct since no RC exists.python util/lint.py --black --isortis clean.v0.25.0-rc1run: pre-release created, PyPI0.25.0rc1,npm view @amd-gaia/agent-ui dist-tagsshowslatestunchanged, and noPublish Hub Components (R2)run.Fixes #4845