Repository navigation
fix(ci): drop stale gaia-emr smoke check + make PyPI publish idempotent - #1563
Conversation
The post-publish smoke test ran 'gaia-emr --help', but gaia-emr moved to the standalone gaia-agent-emr hub package and is no longer a core-wheel console_script -- so the step failed (exit 127) on every release after the hub migration, which cascaded to skip the GitHub Release job (it needs post-publish-smoke to succeed). Drop the gaia-emr check. Also add skip-existing: true to the PyPI publish so a re-run after a later-stage failure skips the already-uploaded version instead of dying on a duplicate upload -- the publish steps were not idempotent, which is why a failed run could not simply be re-run.
Review: fix(ci): drop stale gaia-emr smoke check + make PyPI publish idempotentApprove. Two small, correct CI fixes that unblock the release pipeline — both verified against the actual codebase, no blocking issues. SummaryThe post-publish smoke test ran Issues FoundNone blocking. 🟢 Minor — Strengths
VerdictApprove — ready to merge. The one open test-plan item (full publish → smoke → GitHub Release path) can only be exercised by the next real release, which is the natural validation point. |
…emoved (#111) The wrapper pinned amd-gaia 0.17.6 (PyPI, 2026-05-07) and hard-coded five console scripts. Two of them no longer exist. Checked against the published wheels' entry_points.txt: 0.17.6 - 0.20.0 gaia gaia-cli gaia-code gaia-emr gaia-mcp 0.21.0 - 0.23.0 gaia gaia-cli gaia-mcp gaia-emr and gaia-code went away in 0.21.0 (changelog: "drop stale gaia-emr smoke check", amd/gaia#1563), so bumping the version alone would have kept generating two wrappers that fail at run time with "executable not found". Why the bump matters beyond the version number: - 0.23.0 is an explicit security release. The confirmation gate that pauses an agent before it sends mail, writes a file or runs a command previously "worked only inside the Agent UI; from a terminal, the local API, or an MCP tool call those actions could run unprompted" -- and CLI entry points are exactly what this package exposes. It also binds the MCP bridge to 127.0.0.1 instead of every interface, enforces its --auth-token instead of ignoring it, launches MCP servers without a shell, and blocks model-supplied SQL from reaching the database agent. - 0.18.0 fixes a RAG-on-PDF timeout its notes attribute by name to 0.17.6, the version pinned here. - 0.20.0 adds the NPU path (--device npu, gaia init --profile npu, FLM backend) and fixes a corrupt-model misdiagnosis that triggered a destructive ~25 GB re-download. The [ui] extra and Requires-Python (>=3.10) are unchanged between the two versions, also read from the wheel metadata. Tested: nix build .#gaia yields gaia-0.23.0 with exactly those three scripts, and each one runs -- gaia --help, gaia-cli --help and gaia-mcp --help all exit 0 against a throwaway uv cache. gaia-mcp now advertises --host and --auth-token, matching the release notes. Not included: adding gaia to scripts/check-updates.sh. It is untracked today, which is how it drifted 121 days, but a version-only sed like the other packages get would silently reintroduce this exact bug the next time upstream changes its entry points. That needs a call on how much to automate, so it belongs in an issue rather than riding along here. Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Why this matters
The v0.20.1 publish shipped the package to PyPI/npm but skipped creating the GitHub Release — the post-publish smoke test ran
gaia-emr --helpand failed withcommand not found(exit 127).gaia-emrmoved to the standalonegaia-agent-emrhub package during the hub migration and is no longer a core-wheel console_script, so this check fails on every release now, and because the GitHub Release jobneedsthe smoke test to pass, the release got skipped (had to be created manually).Before: every release post-hub-migration fails the smoke test → no GitHub Release.
After: the smoke test only verifies core-wheel entry points (
gaia,gaia-mcp), so it passes and the release publishes.Also makes the PyPI publish idempotent (
skip-existing: true): today a failure in any later stage can't be recovered by re-running the workflow, because the publish step dies on a duplicate upload of an already-published version. Withskip-existing, a re-run skips the existing files and proceeds to the downstream stages (smoke test, GitHub Release).Test plan
python -c "import yaml; yaml.safe_load(open('.github/workflows/publish.yml'))"— valid YAMLgaia-emris absent from coreconsole_scripts(setup.py) — it ships withhub/agents/python/emr(gaia_agent_emr.cli:main)Note: npm publish has the same non-idempotency (no clean
skip-existing), left out of scope here.