Repository navigation
fix(ci): pause agent PyPI publishing until Agent Hub is ready (+ OIDC test fix) - #1576
Conversation
#1570 migrated publish_agents.yml to OIDC trusted publishing and removed the PYPI_API_TOKEN secret, but test_publish_workflow_exists_and_uses_pypi_action still asserted "secrets.PYPI_API_TOKEN" in the workflow — so the test fails on main and on every open PR current with it. Assert "id-token: write" (the OIDC marker) instead, matching how the workflow actually authenticates now.
|
Approve. This is a correct, minimal CI fix — it realigns a unit test with the OIDC trusted-publishing migration from #1570, restoring green on Summary
I confirmed each assertion against
Issues FoundNone. Strengths
VerdictApprove — no blocking issues, ready to merge. |
…finalized The agent-wheel publish path (#1179) is armed: a v* release tag would fire the publish job (behind a manual gate, against PyPI projects that don't exist yet) before the Agent Hub distribution design is settled. Disable it rather than ship a half-finished release path: remove the v* tag trigger and hard-skip the approve/publish jobs (both commented for one-line re-enable). PR build + twine-check still run so agent wheels stay well-formed. The OIDC test fix in this PR stands as-is — the asserted workflow strings (id-token: write, tag gate, skip-existing, matrix) are all still present.
Why this matters
The agent-wheel publish path (#1179) is armed but not ready: a
v*release tag would fire the publish job — behind a manual gate, againstgaia-agent-*PyPI projects that don't exist yet — before the Agent Hub distribution design is settled. This pauses publishing until we're ready, while keeping the per-PR wheel build +twine checkso agent wheels stay well-formed.It also unblocks CI repo-wide: the OIDC migration (#1570) left
test_agent_pypi_publishasserting a stored token the workflow no longer uses, turningmain's Unit Tests red for every PR touchingsrc/ortests/. This PR fixes that assertion (OIDC) and disables the premature publish path.How publishing is disabled (both clearly commented for one-line re-enable):
push: tags: ['v*']trigger is removed, so a release tag no longer fires the workflow;approve-publishandpublishjobs are hard-gated withif: false && ….Re-enable = restore the tag trigger + drop the two
false &&guards.Test plan
python -c "import yaml; yaml.safe_load(open('.github/workflows/publish_agents.yml'))"parsespytest tests/unit/test_agent_pypi_publish.py→ 10 passed (OIDC assertions hold against the disabled workflow; no skips)publish/approve-publishjobs running on a dispatched run