Skip to content

ci(release): run the real-engine check on RC tags with the run's own flagship - #7103

Merged
kovtcharov-amd merged 2 commits into
mainfrom
fix/rc-real-engine-flagship
Nov 10, 2026
Merged

kovtcharov-amd merged 2 commits into
mainfrom
fix/rc-real-engine-flagship

Conversation

@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

v0.26.0-rc14's publish run failed on every "Real engine" row: Ubuntu, Fedora, macOS and Windows, in both the desktop and terminal installer builds. On a tag, the frozen core is a release candidate, so gaia init fetches its flagship agent from the pre-release, and that pre-release is what this same run publishes. The fetch 404'd. PR builds passed only because their core isn't an RC. Now an RC run packs the flagship it just froze, using the same packager the release uses, and the RC core installs that build. The real engine still starts and answers a chat turn, and the release file must still name this core's tag and match each binary's sha256.

🔍 Technical details
  • New GAIA_RC_FLAGSHIP_URL in gaia.hub.prerelease replaces releases/download/<tag>. It follows the GAIA_HUB_URL precedent and works with file:// through catalog.fetch_bytes.
  • build_core.yml takes a flagship: artifact input. A new rc-flagship job runs util/flagship_rc_assets.py release on the run's gaia-agent-* artifacts. real-engine downloads the result and exports the override. It only does this when the core is an RC, so finals and PRs behave as before.
  • On an RC, publish.yml's build-desktop-installers now waits for rc-flagship, matching tui-installers and windows-setup. In rc13's timings the desktop path finished about 14 minutes before the terminal path, so the extra wait should not lengthen the run.
  • release_train_dryrun.yml's ui-rc now needs sidecar and passes flagship: artifact. Before this change it would have hit the same 404.
  • check_workflow_ancestor_skip.py and check_workflow_triggers.py pass.

Test plan

  • pytest tests/unit/test_hub_prerelease.py tests/unit/test_flagship_rc_assets.py tests/unit/test_release_train_dryrun_workflow.py tests/unit/test_rc_terminal_installers.py tests/unit/test_check_release_ci.py tests/unit/test_release_train.py tests/unit/installer/test_single_installer.py tests/unit/installer/test_core_freeze_webui.py tests/unit/installer/test_bundled_lemonade.py passes (311 passed). This includes a real installer.install from a file:// directory packed by flagship_rc_assets.py, run on Windows.
  • The new prerelease tests fail on main's prerelease.py.
  • Simulate a tag build: gh workflow run release_train_dryrun.yml --repo amd/gaia --ref fix/rc-real-engine-flagship -f rc_tag=v0.26.0-rc15. Check that every "Real engine" row passes under "Agent UI installers (rc)", "Terminal (rc)" and "Windows setup (rc)", and that each log prints "installs this run's flagship from file:///…" and "Installed 'gaia' from v0.26.0-rc15".
  • Next RC tag: every "Real engine" row in publish.yml passes.

…flagship

v0.26.0-rc14's publish failed on every "Real engine" row: on a tag the frozen
core is a release candidate, so `gaia init` fetches the flagship from the
pre-release that this same run publishes, and gets a 404.

The run now packs the flagship it froze (rc-flagship) with the same packager
the release uses, and the real-engine check points the RC core at it through a
new GAIA_RC_FLAGSHIP_URL override. The release file must still name the core's
tag, and every binary is still checked against its sha256. The desktop
installers wait for rc-flagship on an RC, as the terminal installers and the
Windows setup already did.
…stallers on its inputs

A plain-http override let anyone on the path swap the release file and its
checksums together. build-installers.yml now runs when the files build_core
reads to pack the RC flagship change, which the path-coverage lint required.
@github-actions github-actions Bot added documentation Documentation changes devops DevOps/infrastructure changes tests Test changes labels Nov 10, 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 —
hub/agents/email/npm ✅ ALLOW experimental experimental, community 2 medium, 1 info code.suppression, supply.undeclared_dependency

✅ 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.

@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve

This fixes the cause of the rc14 failure. A release candidate's real-engine check now installs the flagship that its own run just froze, through the same packager and release file the pre-release uses, so the check no longer 404s on a pre-release that doesn't exist yet. Finals and PR builds behave as before, because the new step is skipped unless the core is an RC. The override accepts only https:// and file:// URLs, and the release file still has to name this core's tag and match each binary's sha256, so the change adds no new way to swap in a different agent.

I found nothing blocking. The remaining risk is the wiring between workflows, and only a real run can prove that. Please run the release_train_dryrun.yml item in the test plan before the next RC tag.

🔍 Technical details
  • Platform coverage: every real-engine row (win32-x64, darwin-arm64, linux-x64 on Ubuntu and Fedora) has a matching build_flagship_sidecar.yml matrix key, so no row asks for a flagship build that was never produced.
  • Artifact names: ${artifact_prefix}rc-flagship-release stays unique per caller: rc-flagship-release, tui-… and winsetup-… in publish.yml; rc-… and rc-tui-… in the dry run. It doesn't match the gaia-agent-* attach pattern in publish.yml. In the dry run it does match the rc-* download in validate-artifacts, but that only adds an unused directory.
  • Tag derivation: tui-final passes sidecar: artifact with a non-RC version, so rc-flagship is skipped there as intended. The TUI and winsetup callers derive the tag with ${VERSION/-rc./-rc}, the same mapping the RC core uses.
  • URLs: the file:///${dir#/} form gives file:///home/… on Linux and file:///D:/… on Windows after cygpath -m.
  • real-engine condition: the new if: keeps the old outcome when freeze fails (the job is skipped). It also skips cleanly when rc-flagship fails, rather than falling back to reading the pre-release.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit 6e56e84 Nov 10, 2026
98 of 106 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the fix/rc-real-engine-flagship branch November 10, 2026 02:30
kovtcharov-amd added a commit that referenced this pull request Nov 12, 2026
Main gave the terminal packages and the Windows setup a frozen-core build
(#6783, #7103) that installs the run's own flagship on an RC, so the split's
explicit !cancelled() gates now also require needs.core to succeed; without
that clause a failed core would no longer stop the packages or the setup.
The #6612 leftovers (contributor-triage skill, verified-run skip, the dry
run's ui-rc waiting on the sidecar) take main's side.
kovtcharov-amd added a commit to kovtcharov/gaia that referenced this pull request Nov 12, 2026
…d#6613)

On every release the Windows setup waited for the terminal's macOS and
Linux packages and their smoke tests, which it never uses, plus an
Ubuntu job that only re-uploads an artifact from the same run. This PR
takes both off its path, for publish and the dry run alike: the setup
now starts as soon as the desktop app installer and the six terminal
binaries exist. Since amd#7103 the setup's own frozen-core check also needs
the run's sidecar, so the saving is smaller than first measured: on
main's last nightly the terminal packages finished ~4 min after the RC
desktop app, and that is the wait this removes. Part of amd#6611.

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

- **Binaries first.** `tui_installers.yml` gains `build_binaries`
(default true). Release callers run it twice: once binaries-only (no
sidecar, no core, starts at t≈0), and once packages-only, which reuses
those binaries. The setup, the lock and the reproducibility check need
only the binaries.
- **No fetch hop.** With `agent_ui_artifact`, `windows_setup.yml` skips
the Ubuntu fetch job and the Windows build job runs the same name, PE
and size check itself. `publish.yml` passes its own `windows-installer`
artifact instead of polling its own run by SHA; same bytes, same gate
(`needs: build-desktop-installers`).
- **Gates.** The packages job and the setup's build job now use explicit
`!cancelled()` conditions, so each names every job it needs, including
main's new `core`; a unit test fails if any need drops out. `smoke`/`ok`
and `tui-installers-smoke`/`installers-ok` get explicit success
conditions so a skipped fetch or binaries build can't skip them. Publish
still refuses to go ahead unless every terminal package installed
cleanly (`tui-installers-complete`) and, for a final, the setup
verified.
- **Other callers are unchanged.** `build_tui.yml` (the PR gate) and
`release_components.yml` keep the defaults.
- **The remaining long pole** on an RC: the setup's own frozen-core
freeze only starts once the whole RC desktop app workflow finishes (~7
min serial). Starting it right after the sidecar is a follow-up.
</details>

## Test plan
- [x] `pytest tests/unit/test_release_train_dryrun_workflow.py
tests/unit/test_rc_terminal_installers.py tests/unit/test_release_tag.py
tests/unit/test_flagship_rc_assets.py
tests/unit/installer/test_single_installer.py
tests/unit/test_release_train.py`
- [x] `actionlint`, `util/check_added_lines.py`,
`check_workflow_ancestor_skip.py`, `check_workflow_triggers.py`,
`check_ci_path_coverage.py`, `check_test_lane_coverage.py`
- [x] [Dry run of the merged
branch](https://github.com/amd/gaia/actions/runs/43168442577) passes:
binaries built at t≈2 min, the duplicate TUI build and the fetch hop
skipped, the RC setup started right after the RC desktop app, manifest
written
- [ ] The first RC after merge: compare the publish run's timeline with
the previous RC's
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 tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant