From 623777389ee47e28292ec0e3919e301a9f04fe96 Mon Sep 17 00:00:00 2001 From: Lucia Cerchie Date: Wed, 2 Dec 2026 06:59:55 -0700 Subject: [PATCH] fix(docs): unblock nightly eval preparation for Firecrawl (#5309) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The nightly Agent Evals workflow stops during documentation preparation because the Firecrawl example names a fixed Enterprise edition. Use the unversioned integrations URL and regenerate the snippet so the development composer accepts the example. This fixes the preparation error in [run 46482397051](https://github.com/lancedb/docs/actions/runs/46482397051). The public URL currently redirects to the same integrations page. ## Checks completed - Reproduced the composer failure with the exact three source revisions from the failed run. - Passed documentation assembly, development composition, and skill packaging after the change. - Passed Ruff formatting, Ruff lint, and `git diff --check`. - Confirmed that the public URL redirects and returns HTTP 200. The live Firecrawl example and full eval suite were not run. The Firecrawl example requires a personal API key and consumes service credits. ## Clicktesting Required tools: Git, GitHub CLI, GNU Make, uv, Node.js 20 or later, and npm. Use your own GitHub account with read access to `lancedb/docs` and `lancedb/sophon`. No service secrets are required for these documentation checks. Start in an empty directory. Authenticate with your own account, then obtain the branch and the build inputs: ```bash gh auth login gh repo clone lancedb/lancedb lancedb git -C lancedb switch --track origin/fix/nightly-firecrawl-url gh repo clone lancedb/docs docs git -C docs checkout 1a2a108f590405ae7dcec16da098c8c94f75469b gh repo clone lancedb/sophon sophon git -C sophon checkout d471a248ab3e80e08b92c432c969027643dee33e npm install --global mint@4.2.888 uv python install 3.13 cd docs export LANCEDB_DOCS_ROOT=../lancedb/docs/web export SOPHON_DOCS_ROOT=../sophon/docs/web make assemble uv run --no-project --python 3.13 --with pyyaml python scripts/compose.py --development build/site --output build/nightly make package-skill ``` Expected result: all three build commands succeed. Composition must not report that Firecrawl code uses another edition. Start the documentation application from the generated directory: ```bash cd build/nightly mint dev --port 3000 ``` Open `http://localhost:3000/enterprise/development/integrations/data/firecrawl`. Find “Crawl a site.” Confirm that its Python example uses `https://docs.lancedb.com/integrations`. In a second terminal, check the live destination: ```bash curl -sSL -o /dev/null -w '%{http_code} %{url_effective}\n' https://docs.lancedb.com/integrations ``` Expected result: HTTP 200 and the current edition's integrations URL. Co-authored-by: Lucia Cerchie --- docs/web-tests/py/test_firecrawl.py | 2 +- docs/web/snippets/firecrawl.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/web-tests/py/test_firecrawl.py b/docs/web-tests/py/test_firecrawl.py index 70594539d..5f7601833 100644 --- a/docs/web-tests/py/test_firecrawl.py +++ b/docs/web-tests/py/test_firecrawl.py @@ -27,7 +27,7 @@ def test_firecrawl_crawl_and_search() -> None: firecrawl = Firecrawl(api_key=os.environ["FIRECRAWL_API_KEY"]) crawl = firecrawl.crawl( - "https://docs.lancedb.com/enterprise/v1-14-0/integrations", + "https://docs.lancedb.com/integrations", limit=10, scrape_options={"formats": ["markdown"], "only_main_content": True}, integration="_lancedb", diff --git a/docs/web/snippets/firecrawl.mdx b/docs/web/snippets/firecrawl.mdx index dd66f6146..5115f8c97 100644 --- a/docs/web/snippets/firecrawl.mdx +++ b/docs/web/snippets/firecrawl.mdx @@ -2,7 +2,7 @@ export const PyFirecrawlChunk = "def chunk_markdown(markdown: str, max_chars: int = 1000) -> list[str]:\n chunks, current = [], \"\"\n for paragraph in markdown.split(\"\\n\\n\"):\n if current and len(current) + len(paragraph) > max_chars:\n chunks.append(current.strip())\n current = \"\"\n current += paragraph + \"\\n\\n\"\n if current.strip():\n chunks.append(current.strip())\n return chunks\n"; -export const PyFirecrawlCrawl = "import os\n\nfrom firecrawl import Firecrawl\n\nfirecrawl = Firecrawl(api_key=os.environ[\"FIRECRAWL_API_KEY\"])\n\ncrawl = firecrawl.crawl(\n \"https://docs.lancedb.com/enterprise/v1-14-0/integrations\",\n limit=10,\n scrape_options={\"formats\": [\"markdown\"], \"only_main_content\": True},\n integration=\"_lancedb\",\n)\npages = [page for page in crawl.data if page.markdown]\nprint(f\"Crawled {len(pages)} pages\")\n"; +export const PyFirecrawlCrawl = "import os\n\nfrom firecrawl import Firecrawl\n\nfirecrawl = Firecrawl(api_key=os.environ[\"FIRECRAWL_API_KEY\"])\n\ncrawl = firecrawl.crawl(\n \"https://docs.lancedb.com/integrations\",\n limit=10,\n scrape_options={\"formats\": [\"markdown\"], \"only_main_content\": True},\n integration=\"_lancedb\",\n)\npages = [page for page in crawl.data if page.markdown]\nprint(f\"Crawled {len(pages)} pages\")\n"; export const PyFirecrawlQuery = "results = (\n table.search(\"How do I query a LanceDB table with SQL?\")\n .select([\"title\", \"source_url\", \"text\", \"_distance\"])\n .limit(3)\n .to_list()\n)\nfor row in results:\n print(f\"{row['_distance']:.3f}\", row[\"source_url\"])\n";