Skip to content

docs(guides): drop bare uv run from code-index and eval commands - #6900

Merged
kovtcharov-amd merged 2 commits into
amd:mainfrom
burgulvedant:docs/uv-run-code-index-eval
Nov 7, 2026
Merged

kovtcharov-amd merged 2 commits into
amd:mainfrom
burgulvedant:docs/uv-run-code-index-eval

Conversation

@burgulvedant

Copy link
Copy Markdown
Contributor

The code-index test command and the Direct tab of the eval guide used bare uv run, which fails in a checkout with no project table. They now use plain python -m, matching the rest of the dev docs.

Closes #3825

Test plan

  • python -m pytest tests/unit/test_code_index.py tests/unit/test_code_index_sdk.py tests/unit/test_code_index_mixin.py tests/unit/test_code_index_parsers.py -xvs passes in an activated venv (140 passed)
  • python -m gaia.ui.server starts the backend as described in the eval guide

The code-index test command and the eval backend command used bare
uv run, which fails in a checkout without a project table. Use plain
python so they run in the environment the guides already set up.

Closes amd#3825
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

This PR fixes two documented commands that fail when copied as written. In a checkout without an existing .venv, uv run makes an empty virtualenv and then cannot find pytest or gaia. Using plain python -m matches the rest of the dev docs and is correct.

One thing to fix while you're in here: the second eval page (the Agent Eval Benchmark reference) has the same "Direct" tab with the same broken uv run python -m gaia.ui.server line. Change it the same way so the two eval pages agree. Otherwise #3825 closes with a copy of the bug still published.

Real-world evidence

N/A: this PR only changes docs, so no evidence bundle was produced. The PR's test plan says the plain python -m forms work (140 code-index tests passed, and the backend started). The verdict rests on static review.

🔍 Technical details

Issues Found

🟡 Same broken command remains in the sibling eval page (docs/eval.mdx:261). This page is in docs/docs.json navigation and repeats the guide's "Start the Agent UI backend" Direct tab word for word. It fails in the same cold-checkout state #3825 reproduced. One-line fix:

        python -m gaia.ui.server

Not flagged: docs/reference/dev.mdx:227 and CLAUDE.md:569 come after the uv venv && uv pip install -e setup, so .venv already exists and uv run resolves to it. The uv run python -m … lines in docs/guides/mcp/agent-ui.mdx and docs/guides/mcp/tui.mdx have the same cold-checkout exposure, but #3825 doesn't cover them, so leave them out of this PR.

Strengths

  • The change is tightly scoped and fixes exactly the two reproduced failures. Root pyproject.toml has only [tool.*] tables, which confirms the PR's diagnosis.
  • Closes #3825 is present, and the test plan gives the exact commands.

@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Thanks for this fix! I pushed one more line: docs/eval.mdx had the same bare uv run python -m gaia.ui.server, so both eval pages now agree.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 7, 2026
Merged via the queue into amd:main with commit 967e792 Nov 7, 2026
21 checks passed
@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.

The documented uv run commands build a bare .venv in the checkout and then fail (2 guides)

2 participants