Repository navigation
docs(eval): install the ui extra in the CI guide workflows - #6933
Conversation
The Quick Start workflows install only .[eval] and then run python -m gaia.ui.server, but fastapi and uvicorn ship in the ui extra, so the backend step dies with ModuleNotFoundError. Install .[eval,ui] in the four workflows that start the backend. The architecture-audit job only runs --audit-only and never starts the server, so it keeps .[eval]. Closes #3424
|
Verdict: Approve with suggestions The fix is right: the eval CI guide's example workflows installed only the
Real-world evidenceN/A — docs-only change. No evidence bundle was produced, so this verdict rests on static review. I checked the claim against 🔍 Technical detailsIssues Found 🟡 Follow-up: Install Both pages are in
Strengths
|
|
Thanks for the review. I pushed a second commit that applies the suggestion: I also ran the real check I had not done before: a fresh Python 3.12 venv, |
The eval guides install `.[eval,ui]` (since amd#6933) but not the flagship agent package. The default `gaia` agent lives in `hub/agents/gaia/python`, and no extra pulls it in. Anyone following the guide gets the Agent UI backend running, then hits a `ModuleNotFoundError` when the eval tries to create a session. This adds `-e hub/agents/gaia/python` to every eval install line that starts the backend, the same install GAIA's own eval workflow uses. The audit-only job stays on `.[eval]` because it only reads source. Follows amd#6933, which fixed the missing web stack for amd#3424. ## Test plan - [ ] `docs/guides/eval.mdx` and the four backend-starting jobs in `docs/guides/eval-ci.mdx` install `-e ".[eval,ui]" -e hub/agents/gaia/python`; the audit job installs `.[eval]` - [ ] Optional: run the Quick Start workflow from a clean checkout and confirm a `rag_quality` scenario creates its session --------- Co-authored-by: Kalin Ovtcharov <[email protected]>
Summary
The Quick Start workflows in the eval CI guide install
.[eval]and then startgaia.ui.server. That extra does not ship fastapi or uvicorn, so the backend step crashes. This installs.[eval,ui]in the four workflows that start the backend.Why
docs/guides/eval-ci.mdxrunsuv pip install -e ".[eval]"and thenuv run python -m gaia.ui.server &.src/gaia/ui/server.pyimports fastapi at module import, andsetup.pydeclares fastapi and uvicorn only in theapianduiextras, not ineval. Anyone who copies a workflow getsModuleNotFoundError: No module named 'fastapi'. Because the server is backgrounded, the job keeps going and fails later at the eval pre-flight withAgent UI not reachable at http://localhost:4200, which points the reader at the wrong problem.Linked issue
Closes #3424
Changes
docs/guides/eval-ci.mdx:.[eval]->.[eval,ui]at the four install steps that are followed bypython -m gaia.ui.server(Quick Start, baseline compare, PR core eval, full eval)..[eval]: it only runsgaia eval agent --audit-onlyand never starts the backend.Test plan
pip install --dry-run -e ".[eval,ui]"resolves with no errors (Python 3.14). I have not started the server myself; the cause is taken from the failing transcript in the issue plussetup.py, where fastapi/uvicorn are only in theapi/uiextras.localhost:4200.(Evidence section deleted: docs-only change.)
Checklist
Closes #3424).python util/lint.py --allorpytest tests/unit/.