Repository navigation
ci(release): attach the combined Windows setup to release-candidate pre-releases - #4934
Merged
Merged
Conversation
…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.
Contributor
Skill audit
✅ 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 |
This was referenced Oct 11, 2026
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`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 asgaia-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
0.25.0-rc.2), matchinggaia-agent-ui-0.25.0-rc.2-x64-setup.exe. The numeric PE version is the final's0.25.0.0, which is what electron-builder andgen-winres.shalready write for an RC.build-setup.shpasses it asVERSION_QUADand still rejects any other suffix.agent_ui_publish_run_sha: github.sha.fetch_agent_ui_setup.pynow maps0.25.0-rc.2back to tagv0.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 needsbuild-desktop-installers, so it never polls.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.tui_installers.ymlgainsinstallers: false(defaulttrue), so an RC builds only the binaries. rpm rejects-rc.N, so the .pkg/.deb/.rpm stay final-only.rc-*jobs are skipped,github-releasewaits for them but itsifdoesn't require them, and thetui-*download pattern is narrowed totui-{linux,darwin,windows}-*. That matches the same six artifacts as before, and keeps an RC'stui-binariesout 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.pyactionlinton publish.yml, tui_installers.yml, windows_setup.yml;python util/lint.py --black --isort --flake8 --workflow-triggers --test-lanesnpx vitest runandnpx astro checkinwebsite/--version 0.25.0-rc.2producesgaia-0.25.0-rc.2-win-x64-setup.exewith PE version 0.25.0.0 and string 0.25.0-rc.2; a0.25.0build is unchangedbuild_tui.ymldispatched on a scratch branch with an RC-shaped version (stub sidecar) builtgaia-0.25.0-rc.1-win-x64-setup.exeand passed the clean-runner smoke test (run)gaia-X.Y.Z-rc.N-win-x64-setup.exeand its notes list it first