Skip to content

fix(docs): add /docs/ prefix to broken amd-gaia.ai links - #6066

Merged
kovtcharov-amd merged 3 commits into
amd:mainfrom
muzman123:fix/amd-gaia-docs-links-4433
Oct 30, 2026
Merged

kovtcharov-amd merged 3 commits into
amd:mainfrom
muzman123:fix/amd-gaia-docs-links-4433

Conversation

@muzman123

Copy link
Copy Markdown
Contributor

Summary

Fixes broken amd-gaia.ai links in the bug-report template, CLAUDE.md and the eval presentation, and widens the URL test so it checks those files too.

Why

FAQ/troubleshoot links in CLAUDE.md and the eval presentation return 404s. The docs site serves /docs/ pages, but URL tests cover only /src/gaia/.

Linked issue

Closes #4433

Changes

  • Added /docs/ to broken-link checks in the bug-report template, CLAUDE.md, and eval presentation.
  • Expanded URL tests to scan scripts/, installer/, .github/, and CLAUDE.md, including .ps1, .sh, .yaml/.yml, and .nsi files.
  • Allowlisted valid /docs and /#install links.
  • Fixed the roadmap link and updated CLAUDE.md to reflect the expanded test scope.
  • No install-ui changes needed; those scripts no longer exist. The presentation fix in docs(core): retire legacy plans and refresh harness and TUI docs #3812 was closed unmerged.

Test plan

  • pytest tests/unit/test_amd_gaia_urls.py passes
  • Removing /docs from the bug-report FAQ link makes the test fail and name that line (the old test passed with it)
  • Every changed link returns 200 on amd-gaia.ai; the old bare paths return 404

Evidence

N/A: docs and test-only change; no Agent UI, MCP, CLI or API surface touched. Link checks: amd-gaia.ai/reference/faq → 404, amd-gaia.ai/docs/reference/faq → 200 (same pattern for every changed link).

Checklist

  • I have linked a GitHub issue above (Closes #N / Fixes #N / Refs #N).
  • I have described why this change is being made, not just what changed.
  • I have run linting and tests locally (black, isort and flake8 on the changed test; pytest tests/unit/test_amd_gaia_urls.py).
  • I have attached real-world evidence matched to the surface I changed (see Evidence above), or marked each surface N/A.
  • I have updated documentation if user-visible behavior changed (see CONTRIBUTING.md).

@github-actions github-actions Bot added documentation Documentation changes devops DevOps/infrastructure changes tests Test changes labels Oct 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

This fixes four broken amd-gaia.ai links (in the bug-report template, CLAUDE.md and the eval presentation) and widens the link test so it also checks scripts, the installer, GitHub files and CLAUDE.md. It looks correct, and with the PR's own CLAUDE.md in place the widened test passes. Nothing blocks the merge. The three small points below are optional cleanups.

  • CLAUDE.md still says only the site root and install scripts are allowed without /docs/, but the test now also allows /docs and /#install. One sentence brings it up to date.
  • If someone renames or removes scripts/ or installer/, the test quietly stops checking it and still passes. An existence check would catch that.

Real-world evidence

N/A: this PR only touches docs, an issue template and a test, so it has no CLI, API, MCP or Agent UI surface. The author's link checks are in the PR description (old bare paths return 404, the new /docs/ paths return 200). I ran the widened test locally: it passes against the PR's CLAUDE.md. The CI workspace replaces CLAUDE.md with the base-branch copy, and against that copy the test correctly flags the four old links. The verdict rests on that run plus a static review.

🔍 Technical details

Issues

🟢 Allowlist doc is out of date (CLAUDE.md:213–214). The test's _ALLOWLIST now includes https://amd-gaia.ai/docs and https://amd-gaia.ai/#install, but the text still says only the root and install scripts are allowlisted.

not a cleanup. Only the site root, `/#install`, `/docs`, and the install scripts
(`/install.ps1`, `/install.sh`) are allowlisted without the prefix.

🟢 A missing scan path is skipped silently (tests/unit/test_amd_gaia_urls.py:49–52). If an entry in _EXTRA_SCAN_PATHS doesn't exist, it falls through to [path], and is_file() then drops it. Renaming installer/ would shrink coverage without any failure, which goes against the repo's fail-loudly rule.

def _scan_paths():
    yield from _SRC.rglob("*")
    for name in _EXTRA_SCAN_PATHS:
        path = _SRC.parents[1] / name
        assert path.exists(), f"URL scan path {path} no longer exists — update _EXTRA_SCAN_PATHS"
        yield from path.rglob("*") if path.is_dir() else [path]

🟢 The test name no longer matches what it does. test_amd_gaia_urls_in_src_use_docs_prefix now scans beyond src/. Something like test_amd_gaia_urls_use_docs_prefix would fit better. The assertion message also still cites only #1058; #4433 could be added.

Side note: the CLAUDE.md "never" example drops https:// (never amd-gaia.ai/guides/...) so the scanner doesn't flag the counter-example. That works, and since the regex requires the scheme it stays safe.

Strengths

  • The fix and the regression guard ship together: the widened scan would have caught every link fixed here. The author also showed it fails, naming the line, when /docs is removed.
  • Small and well scoped: the extension list covers the script and installer formats (.ps1, .sh, .nsi, .yml), and docs/, hub/ and README.md (not scanned) contain no bare-path offenders today.

A renamed scan directory would have silently shrunk link-check coverage; the test now fails instead. Also documents the new /docs and /#install allowlist entries in CLAUDE.md and renames the test now that it scans beyond src/.
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Thanks @muzman123, this is a clean fix. Every changed link now returns 200 and the old paths 404. I pushed one small follow-up that takes the review bot's three suggestions, so this is ready once CI is green.

One request: could you retitle the PR in conventional-commit style, e.g. fix(docs): add /docs/ prefix to broken amd-gaia.ai links?

🔍 Technical details
  • _scan_paths() now asserts each _EXTRA_SCAN_PATHS entry exists, so renaming installer/ fails the test instead of quietly dropping coverage.
  • CLAUDE.md's allowlist sentence now names /#install and /docs.
  • The test is renamed test_amd_gaia_urls_use_docs_prefix, and the failure message cites docs: bare amd-gaia.ai links outside src/gaia 404 (issue template, install-ui scripts, CLAUDE.md) #4433.
  • I also merged origin/main into the branch.
  • I checked that the new allowlist entries are exact matches only: https://amd-gaia.ai/docsx in a .nsi file and /guides/foo in .github/ are both still flagged.

@muzman123 muzman123 changed the title fix broken amd-gaia.ai links and check other files for them fix(docs): add /docs/ prefix to broken amd-gaia.ai links Oct 29, 2026
@muzman123

Copy link
Copy Markdown
Contributor Author

Thanks @muzman123, this is a clean fix. Every changed link now returns 200 and the old paths 404. I pushed one small follow-up that takes the review bot's three suggestions, so this is ready once CI is green.

One request: could you retitle the PR in conventional-commit style, e.g. fix(docs): add /docs/ prefix to broken amd-gaia.ai links?

🔍 Technical details

Thanks for reviewing. Sorry about that, title should be good now!

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Oct 30, 2026
Merged via the queue into amd:main with commit 7d13eac Oct 30, 2026
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops DevOps/infrastructure changes documentation Documentation changes tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: bare amd-gaia.ai links outside src/gaia 404 (issue template, install-ui scripts, CLAUDE.md)

2 participants