Skip to content

ci(release): attach the combined Windows setup to release-candidate pre-releases - #4934

Merged
kovtcharov-amd merged 1 commit into
mainfrom
ci/rc-windows-setup
Oct 11, 2026
Merged

kovtcharov-amd merged 1 commit into
mainfrom
ci/rc-windows-setup

Conversation

@kovtcharov-amd

@kovtcharov-amd kovtcharov-amd commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

Release candidates shipped without the combined Windows setup (gaia-<version>-win-x64-setup.exe), the installer 0.25 leads with, because only the Agent Hub publish builds it and that never runs for an RC. Testers couldn't try the headline installer before the final. Now an RC tag builds it as gaia-0.25.0-rc.2-win-x64-setup.exe, around that run's own desktop app build and the committed sidecar pin, and attaches it to the GitHub pre-release only. It never goes to R2. If it fails to build or fails its clean-runner smoke test, the pre-release ships without it, its notes say it is missing, and the run goes red. The RC notes and the website's RC block list it first for Windows. Final releases are unchanged.

🔍 Technical details
  • Version mapping: the setup and the TUI binary it wraps get the npm spelling (0.25.0-rc.2), matching gaia-agent-ui-0.25.0-rc.2-x64-setup.exe. The numeric PE version is the final's 0.25.0.0, which is what electron-builder and gen-winres.sh already write for an RC. build-setup.sh passes it as VERSION_QUAD and still rejects any other suffix.
  • Desktop app source: agent_ui_publish_run_sha: github.sha. fetch_agent_ui_setup.py now maps 0.25.0-rc.2 back to tag v0.25.0-rc2 (release_tag.parse_npm_version), so it takes this RC's own run, never the final's run on the same commit. The job also needs build-desktop-installers, so it never polls.
  • Sidecar: pinned, the same as a final. The lock pins flagship 0.2.0 with real digests and doesn't depend on the core version. A placeholder lock fails the build loudly.
  • No TUI packages: tui_installers.yml gains installers: false (default true), so an RC builds only the binaries. rpm rejects -rc.N, so the .pkg/.deb/.rpm stay final-only.
  • What a final sees: the new rc-* jobs are skipped, github-release waits for them but its if doesn't require them, and the tui-* download pattern is narrowed to tui-{linux,darwin,windows}-*. That matches the same six artifacts as before, and keeps an RC's tui-binaries out of the release and the checksum file.

Test plan

  • python -m pytest tests/unit/test_release_tag.py tests/unit/installer/test_single_installer.py tests/unit/test_installer_artifacts.py tests/unit/test_publish_workflow_contract.py
  • actionlint on publish.yml, tui_installers.yml, windows_setup.yml; python util/lint.py --black --isort --flake8 --workflow-triggers --test-lanes
  • npx vitest run and npx astro check in website/
  • Local makensis build with --version 0.25.0-rc.2 produces gaia-0.25.0-rc.2-win-x64-setup.exe with PE version 0.25.0.0 and string 0.25.0-rc.2; a 0.25.0 build is unchanged
  • CI proof: build_tui.yml dispatched on a scratch branch with an RC-shaped version (stub sidecar) built gaia-0.25.0-rc.1-win-x64-setup.exe and passed the clean-runner smoke test (run)
  • Next RC tag: the pre-release carries gaia-X.Y.Z-rc.N-win-x64-setup.exe and its notes list it first

…re-releases

Release candidates shipped without gaia-<version>-win-x64-setup.exe, the
headline Windows installer, because only release_components.yml builds it and
that workflow never runs for an RC tag. publish.yml now builds it for an RC
with the same reusable workflows (terminal binaries only, then windows_setup)
around the run's own desktop app build and the committed sidecar pin, and
attaches it to the GitHub pre-release only, never to R2.

- RC version mapping: the setup and the TUI it wraps carry the npm spelling
  (0.25.0-rc.2), so the file is gaia-0.25.0-rc.2-win-x64-setup.exe; the PE
  numeric version is the final's 0.25.0.0, as electron-builder and
  gen-winres.sh already do.
- A setup that fails to build or smoke-test is left off, the RC notes say so,
  and rc-windows-setup-missing turns the run red.
- Finals are unchanged apart from the TUI-binaries download pattern, which
  now names build-tui's six artifacts so an RC's setup input stays off the
  release.
@github-actions github-actions Bot added documentation Documentation changes installer Installer changes devops DevOps/infrastructure changes tests Test changes website GAIA website (amd-gaia.ai) labels Oct 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Skill audit

Skill Verdict Claimed tier Cleared tiers Findings Rules
.claude/skills/gaia-release ✅ ALLOW experimental experimental, community none —

✅ All audited skills cleared the tier they claim.

Per-finding detail is withheld here on purpose. Read it in the Security > Code scanning tab, or download the skill-audit-reports artifact from this run. Offending source text is withheld from CI everywhere — reproduce it locally with gaia skill audit <dir> --show-snippets.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Oct 11, 2026
Merged via the queue into main with commit b5b2939 Oct 11, 2026
@kovtcharov-amd
kovtcharov-amd deleted the ci/rc-windows-setup branch October 11, 2026 00:39
grtninja pushed a commit to grtninja/gaia that referenced this pull request Oct 11, 2026
…gent (amd#4939)

Every release candidate so far has run the Agent Hub's flagship agent
(`gaia` 0.2.0, built 2026-09-16, 445 commits before v0.25.0-rc2),
because the hub has no pre-release channel. That build predates tool
approvals and pulls a 0.5 GB embedding model on first answer, so RC
testing never exercised the agent we are about to ship. Now an RC tag
freezes the flagship from its own commit, attaches it to the GitHub
pre-release, and the RC's `gaia init`, `gaia hub install gaia` and
Windows setup install that build. The hub is never a substitute: a
pre-release without its agent makes the install fail with the reason,
and an RC whose flagship freeze fails is never offered for approval.

<details>
<summary>🔍 Technical details</summary>

- The freeze matrix moved verbatim from `release_agent_gaia.yml` into
`build_flagship_sidecar.yml` (`workflow_call` + `workflow_dispatch`);
the flagship release now calls it, so both build the binary the same
way. Dispatching it alone is a no-publish check that main still freezes.
- `publish.yml`: `rc-flagship` is required by `approve-publish` and
`github-release` on an RC (finals unchanged). `rc-windows-setup` passes
`sidecar: artifact`, a new `windows_setup.yml` mode that stages this
run's `gaia-agent-win32-x64` after re-checking its freeze hash.
`util/flagship_rc_assets.py` verifies every build and writes
`gaia-agent-release.json` plus `gaia-agent.yaml` next to the binaries.
- Runtime: `gaia.hub.prerelease` maps an RC core (`0.25.0rc3`) to its
tag and reshapes the release file into a one-version hub manifest
(`0.3.0+v0.25.0-rc3`). `installer.install()` uses it for `gaia` whenever
no explicit version is given, so the CLI, daemon, TUI and Agent UI paths
all go through it. An explicit `--version` still means the hub.
- `gaia init` on an RC compares the installed flagship's sha256 with the
candidate's and reinstalls on mismatch, so a tester who already has the
hub's 0.2.0 gets replaced.
- Builds on amd#4934 (RC Windows setup): only its `sidecar:` input changes.
</details>

## Test plan
- [x] `pytest tests/unit/test_hub_prerelease.py
tests/unit/test_flagship_rc_assets.py` (end to end: packager output → RC
resolver → the real installer, plus a refused hub fallback, malformed
release files, init replace/keep, workflow wiring)
- [x] `pytest
hub/agents/gaia/python/tests/test_freeze_required_modules.py
tests/unit/test_hub_install_sidecar_contract.py tests/unit/installer/
tests/unit/test_init_command.py
tests/unit/test_publish_workflow_contract.py`
- [x] `actionlint` on the four workflows;
`util/check_workflow_ancestor_skip.py` clean for `publish.yml`; `python
util/lint.py --black --isort`
- [ ] Dispatch **Build flagship sidecar** on this branch and confirm all
three required platforms freeze and pass the smoke test (first freeze of
current main since 0.2.0)
- [ ] On the next RC: `gh release view v0.25.0-rcN` lists `gaia-agent-*`
and `gaia-agent-release.json`; on a clean machine `pip install
amd-gaia==0.25.0rcN && gaia init` installs `0.2.0+v0.25.0-rcN` (or the
bumped version), and the Agent UI can approve a file write
grtninja pushed a commit to grtninja/gaia that referenced this pull request Oct 11, 2026
…md#4949)

`main` has failed
`test_an_rc_builds_the_windows_setup_for_its_own_prerelease_only` since
amd#4934 and amd#4939 both merged. amd#4934's test expected the RC Windows setup
to bundle the `pinned` flagship, and amd#4939 deliberately switched it to
`artifact`, the build that RC run freezes. Each PR passed on its own.
The test now expects `artifact`.

## Test plan
- [x] `pytest tests/unit/test_release_tag.py`: 43 passed, where `main`
has 1 failure
- [x] `python util/lint.py --black --isort`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops DevOps/infrastructure changes documentation Documentation changes installer Installer changes tests Test changes website GAIA website (amd-gaia.ai)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant