Repository navigation
ci(release): run the real-engine check on RC tags with the run's own flagship - #7103
Conversation
…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.
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 |
|
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 I found nothing blocking. The remaining risk is the wiring between workflows, and only a real run can prove that. Please run the 🔍 Technical details
|
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.
…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
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 initfetches 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
GAIA_RC_FLAGSHIP_URLingaia.hub.prereleasereplacesreleases/download/<tag>. It follows theGAIA_HUB_URLprecedent and works withfile://throughcatalog.fetch_bytes.build_core.ymltakes aflagship: artifactinput. A newrc-flagshipjob runsutil/flagship_rc_assets.py releaseon the run'sgaia-agent-*artifacts.real-enginedownloads the result and exports the override. It only does this when the core is an RC, so finals and PRs behave as before.publish.yml'sbuild-desktop-installersnow waits forrc-flagship, matchingtui-installersandwindows-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'sui-rcnow needssidecarand passesflagship: artifact. Before this change it would have hit the same 404.check_workflow_ancestor_skip.pyandcheck_workflow_triggers.pypass.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.pypasses (311 passed). This includes a realinstaller.installfrom afile://directory packed byflagship_rc_assets.py, run on Windows.prerelease.py.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".