Skip to content

docs(eval): install the ui extra in the CI guide workflows - #6933

Merged
kovtcharov-amd merged 2 commits into
amd:mainfrom
tharunsridhar:fix/eval-ci-guide-install-ui-extra
Nov 7, 2026
Merged

kovtcharov-amd merged 2 commits into
amd:mainfrom
tharunsridhar:fix/eval-ci-guide-install-ui-extra

Conversation

@tharunsridhar

Copy link
Copy Markdown
Contributor

Summary

The Quick Start workflows in the eval CI guide install .[eval] and then start gaia.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.mdx runs uv pip install -e ".[eval]" and then uv run python -m gaia.ui.server &. src/gaia/ui/server.py imports fastapi at module import, and setup.py declares fastapi and uvicorn only in the api and ui extras, not in eval. Anyone who copies a workflow gets ModuleNotFoundError: No module named 'fastapi'. Because the server is backgrounded, the job keeps going and fails later at the eval pre-flight with Agent 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 by python -m gaia.ui.server (Quick Start, baseline compare, PR core eval, full eval).
  • The architecture-audit job keeps .[eval]: it only runs gaia eval agent --audit-only and 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 plus setup.py, where fastapi/uvicorn are only in the api/ui extras.
  • (reviewer) copy the Quick Start workflow into a repo and confirm "Start Agent UI backend" now binds localhost:4200.

(Evidence section deleted: docs-only change.)

Checklist

  • Linked issue above (Closes #3424).
  • Described why, not just what.
  • Linting/tests: docs-only change, no code touched, so I did not run python util/lint.py --all or pytest tests/unit/.
  • Docs updated (this is the docs change).

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
@github-actions github-actions Bot added the documentation Documentation changes label Nov 7, 2026
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

The fix is right: the eval CI guide's example workflows installed only the eval extra and then started the Agent UI backend, which needs the web-server packages that only the ui (and api) extras carry. Anyone copying a workflow hit a crash that surfaced later as a misleading "Agent UI not reachable". All four workflows that start the backend now install ui too, and the audit-only job, which never starts it, is correctly left alone.

  • The same broken setup is in two more eval pages. The main eval guide and the eval framework page both tell readers to install only the eval extra and then start the backend, so a reader following them from a clean install hits the same crash. Worth fixing in this PR, since it's the same one-word change; otherwise file a follow-up.

Real-world evidence

N/A — docs-only change. No evidence bundle was produced, so this verdict rests on static review. I checked the claim against setup.py: fastapi and uvicorn are only in the api and ui extras, not eval.

🔍 Technical details

Issues Found

🟡 Follow-up: Install .[eval,ui] in the remaining eval prerequisite steps (docs/guides/eval.mdx:31, docs/eval.mdx:237)

Both pages are in docs/docs.json navigation. Each gives uv pip install -e ".[eval]" as the only install step, then a "Start the Agent UI backend" step running gaia chat --ui / python -m gaia.ui.server (docs/guides/eval.mdx:75-95, docs/eval.mdx just below line 237). From a clean environment that import fails on fastapi, the same failure #3424 reports. The same change fixes both:

    uv pip install -e ".[eval,ui]"

docs/reference/eval.mdx:315 mentions .[eval] only for the gaia eval retrieval scale tiers and doesn't start the backend, so it's fine as is.

Strengths

  • Scoped precisely: every .[eval] install followed by gaia.ui.server was changed, and the --audit-only job (docs/guides/eval-ci.mdx:279) correctly keeps the lighter extra.
  • The PR description states the root cause and is honest about what wasn't run.

docs/guides/eval.mdx and docs/eval.mdx install only .[eval] and then
start the Agent UI backend, which needs fastapi and uvicorn from the ui
extra. Same fix as the CI guide, per review on #6933.

Refs #3424
@tharunsridhar

Copy link
Copy Markdown
Contributor Author

Thanks for the review. I pushed a second commit that applies the suggestion: docs/guides/eval.mdx and docs/eval.mdx now install .[eval,ui] too, since both start the Agent UI backend right after the install step. docs/reference/eval.mdx and the --audit-only job keep .[eval].

I also ran the real check I had not done before: a fresh Python 3.12 venv, pip install -e ".[eval,ui]", then python -m gaia.ui.server. It starts and GET /api/health returns 200 ({"status":"ok","service":"gaia-agent-ui",...}). Note for anyone reproducing the issue's probe: the health route is /api/health, not /health.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 7, 2026
Merged via the queue into amd:main with commit f87bb1d Nov 7, 2026
14 checks passed
kovtcharov-amd added a commit to huong8373tt-beep/gaia that referenced this pull request Nov 7, 2026
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]>
@kovtcharov-amd kovtcharov-amd mentioned this pull request Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

All three CI workflows install only ".[eval]", which does not ship fastapi/uvicorn, so their own Start Agent UI backend step crashes

2 participants