Repository navigation
fix(hub): ship starter skills in flagship wheel - #6080
kovtcharov-amd merged 9 commits into
Conversation
|
Verdict: Approve with suggestions A plain Nothing blocks the merge. Three small, optional hardening points are below. Real-world evidenceNo evidence bundle for this PR (packaging/CI only, no CLI, API or UI surface). The workflow that runs the new check is manual-dispatch only, so it never ran on this PR. I ran the build in a fresh venv during review: The skill's own tool module also ships ( 🔍 Technical detailsIssues found 🟢 Cleanup failures are swallowed ( 🟢 The test writes into the real source tree ( 🟢 Only the CI path stages the skills. A maintainer running Strengths
|
|
Thanks @huong8373tt-beep, this is a careful fix: the staging only removes what it copied, and the wheel check reads the real zip, so it can't be fooled by the source tree. I built it here and confirmed all 16 starter skills land in the wheel and the checkout stays clean. One gap before this closes #6078: the only build that stages the pack is the manual "Share Agent Package" workflow. The install route GAIA actually tells users to run is 🔍 Technical detailsReproduced on the PR head (7bbfa44), checked with your
One way to cover it: a small The bot's earlier note still applies too: let the cleanup |
7bbfa44 to
d20a464
Compare
|
Addressed the maintainer follow-up in commit
Verification:
The local pytest run still emits the known Windows Slai Agent Runtime assisted with investigation, implementation, and test execution. The account owner reviewed and authorized this contribution and is responsible for the submitted content. |
`python -m build` builds the sdist first and the wheel from it, and the sdist had no hub/skills beside it, so that wheel still shipped only the package's own three skills. An `sdist` hook now carries the pack into the sdist, and the `build_py` hook covers pip-from-git and `pip wheel`. With both hooks in place the source-tree staging step is redundant, so the shared CI action builds the flagship like every other agent and the wheel check guards that real path. A reused build/ directory can no longer ship a stale skill copy, bytecode caches stay out of the wheel, and a package-owned skill still wins over a starter of the same name.
|
Thanks @huong8373tt-beep. Your One path was still missing them, and I pushed a fix for it (01dcc43): 🔍 Technical detailsVerified on 01dcc43 in a fresh venv, temp HOME:
What changed in 01dcc43:
Flagship suite: 849 passed, 1 failed. The failure is |
The starter-skill build tests import the setuptools build hooks and run real builds, but the uv-created CI environments have no setuptools, so the module failed to collect. Install it in both jobs that run the flagship package tests and list it in the package's test extra.
The build hook now only reads the repo's own skills folder: it requires the checkout layout and repo markers, skips the copy when building from an unpacked sdist (which already carries the pack), and refuses symlinked skill files or folders. Adds the AMD copyright header to the two new packaging files.
|
Pushed 3203c01: the build hook now only reads the repo's own skills folder. I also added the AMD copyright header to the two new packaging files and refreshed the PR description, which now covers 17 skills and no longer mentions the removed staging helper. |
# Conflicts: # .github/workflows/release_agent_gaia.yml # .github/workflows/test_gaia_agent.yml
## Why this matters v0.25.4 is cut for Arabic support: the Agent UI runs right to left in Arabic, and people can ask about Arabic, English or mixed documents in either language (amd#6165). It also adds a local-only mode that keeps every AI request on the PC, image indexing, and email thread reading for the GAIA agent. Among the fixes, chats no longer get stuck on "Waiting for the GPU", and file paths resolve to the chat's folder and the real Documents folder. 59 commits since v0.25.3; the notes are in `docs/releases/v0.25.4.mdx` and credit 7 outside contributors. This is a patch carrying 8 `feat` commits, approved as v0.25.4 for the Arabic RC. ## Test plan - [x] `python util/validate_release_notes.py docs/releases/v0.25.4.mdx --tag v0.25.4` passes, and with `--tag v0.25.4-rc1` - [x] `mintlify validate` (from `docs/`) passes - [x] `python util/release_versions.py --check`, `python util/check_doc_links.py --internal-only` and `python util/check_doc_versions.py` pass - [x] `python util/check_component_core_api.py --release-version 0.25.4` passes - [x] `pytest tests/unit/test_docs_json_release.py tests/unit/test_check_component_core_api.py tests/unit/test_release_tag.py tests/unit/test_hub_core_version_gate.py tests/unit/test_release_versions.py hub/agents/gaia/python/tests/test_npm_doc_min_version.py`: 230 passed - [x] Re-run the above after amd#6165 merged and main was merged in - [ ] CI green on the merge commit - [ ] `release_train_dryrun.yml` passes on that commit before the RC tag ## Evals to re-run on the RC tag LLM-affecting PRs merged without per-PR evals; run these on `v0.25.4-rc1`: - `rag_quality` and `real_world` (amd#6165, amd#6057) - `gaia_rag` and `gaia_media` (amd#5651) - `gaia_email` (amd#6124) - `gaia_skills_tasks` and `gaia_skills_lifecycle` (amd#5450, amd#5454, amd#6080) - `gaia_files` and `gaia_shell` (amd#6069, amd#6074, amd#6120) - `gaia_code` (amd#6056) - `gaia_core` and `context_retention` (amd#6152) - `gaia_data` and `tool_selection` (amd#6053, amd#6130) - `memory` and `gaia_memory` (amd#6127, amd#6081) - `gaia_tool_selection` for tool confirmations (amd#5541) ## Release checklist - [ ] Keep amd#6114 unmerged until v0.25.4 is tagged, so main stays on 0.25.4 - [ ] Freeze main, wait for green CI on the exact commit, pass `release_train_dryrun.yml`, then push `v0.25.4-rc1` (the RC freezes its own flagship; no agent release needed) - [ ] Before the final: release the flagship from the release commit (`agent-pkg-gaia-v<next>`), merge its pin-lock PR, and pass `check_flagship_release.py` - [ ] Extend the changelog if main gains commits before the tag
## Why this matters The flagship wheel gate had no test, so a wrong skill path could silently turn the #6080 guard into a pass on an empty wheel or a permanent build failure. It now has focused coverage for valid wheels, missing skills, legacy paths, empty wheels and README-only skill directories, so a regression in the gate fails in unit tests before a release build does. The flagship CI lane also runs when the build action changes, so a later edit cannot quietly remove the gate while staying green. ## Linked issue Closes #8934 ## Test plan - [x] `PYTHONPATH=src /Users/bniladridas/gaia-8713/.venv/bin/python -m pytest --noconftest hub/agents/gaia/python/tests/test_check_wheel_starter_skills.py -q` -> `7 passed in 0.03s` - [x] `PYTHONPATH=src /Users/bniladridas/gaia-8713/.venv/bin/python -m pytest --noconftest tests/unit/test_flagship_ci.py hub/agents/gaia/python/tests/test_check_wheel_starter_skills.py -q` -> `38 passed in 0.37s` - [x] `PYTHONPATH=hub/agents/gaia/python uvx --offline --with setuptools --with pytest --with pytest-asyncio pytest --noconftest hub/agents/gaia/python/tests/test_starter_skill_build.py -q` -> `14 passed in 2.61s` - [x] `/Users/bniladridas/gaia-8713/.venv/bin/python util/lint.py --all` -> `17 passed, 0 failed, 1 non-blocking warning` and `ALL QUALITY CHECKS PASSED` - [x] `git diff --check` -> no output, exit 0 - [x] Read-only review with mutation checks -> no blocking findings ## Evidence - [ ] **Agent exposed in the Agent UI** (Chat, Email, ...): N/A, no UI behavior changed. - [ ] **MCP tools / servers**: N/A, no MCP behavior changed. - [ ] **CLI**: N/A, no CLI behavior changed. - [ ] **HTTP API / REST**: N/A, no API behavior changed. ## Checklist - [x] I have linked a GitHub issue above (`Closes #8934`). - [x] I have described why this change is being made, not just what changed. - [x] I have run linting and tests locally (`python util/lint.py --all`, `pytest tests/unit/`). - [x] I have attached real-world evidence matched to the surface I changed, or marked each surface N/A. - [x] I have updated documentation if user-visible behavior changed (N/A, no user-visible behavior changed). --------- Signed-off-by: Niladri Das <[email protected]>
Closes #6078.
A plain
pip installof the flagshipgaia-agent-gaiapackage shipped only the three skills insidegaia_agent/skills. The 17 starter skills underhub/skillswere missing, so a user who installed from git could not loadrss-digest,github-triageand the rest. Every build path now ships all 17: pip-from-git,pip wheel, andpython -m build(which builds the wheel from the sdist). The build hook only reads the repo's own skills folder.Test plan
python -m pytest hub/agents/gaia/python/tests/test_starter_skill_build.pypasses. It builds real wheels and an sdist in a temp copy of the package and fails on main.pip install "gaia-agent-gaia @ git+https://github.com/amd/gaia@<sha>#subdirectory=hub/agents/gaia/python"puts 20 skills insite-packages/gaia_agent/skills(17 starters + 3 package-owned).python -m build hub/agents/gaia/python: the sdist and the wheel both carry all 20 skills.python hub/agents/gaia/python/packaging/check_wheel_starter_skills.py <wheel>passes on that wheel.Disclosure and authorization
Slai Agent Runtime performed the investigation, implementation, and test execution. The account owner authorized this contribution and is responsible for its content.