fix: point the compaction warning at the current docs page (#4913)

Refs #4371

The link checker flags
`https://docs.lancedb.com/performance#compaction-and-cleanup` because
that section no longer exists. Compaction has its own page now, and its
"When to run it" section (`#when`) covers the warning this link is
attached to: tables with many small fragments.

This points `DocLink::Compaction` at `/maintenance/compaction#when` and
updates the two tests that hard-code the URL. The anchor exists on the
published site and in `docs/web/maintenance/compaction.mdx`, so
`test_all_doc_links_resolve_in_repo_docs` still holds.

Tests: `python -m unittest ci.tests.test_extract_sdk_doc_links` and
`cargo test -p lancedb --lib docs::tests::` pass locally.

Co-authored-by: Xuanwo <github@xuanwo.io>
This commit is contained in:
George Khananaev
2026-12-01 22:09:04 +08:00
committed by GitHub
co-authored by Xuanwo
parent fb853bae75
commit ec230318f6
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ def test_python_sdk_utm_content_and_doc_links(tmp_path):
expected_content = f"utm_content=python-{_core_version}"
assert (
compaction_url
== f"https://docs.lancedb.com/performance?utm_source=lancedb_sdk&utm_medium=warning&utm_campaign=compaction&{expected_content}#compaction-and-cleanup"
== f"https://docs.lancedb.com/maintenance/compaction?utm_source=lancedb_sdk&utm_medium=warning&utm_campaign=compaction&{expected_content}#when"
)
db = lancedb.connect(tmp_path)