Skip to content

docs CI: revert search-mode filtering + harden flaky external-service tests#467

Merged
g-despot merged 4 commits into
mainfrom
testing-ci
Jul 7, 2026
Merged

docs CI: revert search-mode filtering + harden flaky external-service tests#467
g-despot merged 4 commits into
mainfrom
testing-ci

Conversation

@g-despot

@g-despot g-despot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #464 (already merged). Full docs test suite is green on testing-ci.

Changes

Revert the Query Agent search-mode filtering requirement. #464 documented filtering as required and added filtering="recall" to every search-mode snippet. The Query Agent service no longer requires it (confirmed against the live service — qa.search(...) without filtering no longer 422s), so this reverts the guide wording (back to "recall (default)") and the snippet changes across Python + TypeScript.

Transient-retry hardening for flaky external-service snippet tests. The generative/hybrid search tests and the agents tests intermittently red the suite on transient blips against the shared test cluster + LLM APIs. Added utils.retry_on_transient (narrow marker set: gRPC UNAVAILABLE, deadline exceeded, read timeouts, connection resets, 429/5xx, "overloaded", Weaviate Cloud connection errors) around the Python / TypeScript / C# / agents runners. Real failures (assertion/logic/syntax) still fail immediately — only transient error messages are retried.

Indexability test fixes.

  • test_llms_txt_accessible + test_claude_can_fetch_llms_txt: /llms.txt 301-redirects to weaviate.io; allow that domain for the fetch, use a browser UA, and treat a transient network reset as an inconclusive skip.
  • test_claude_can_fetch_llms_txt: the asserted agents/cloud sections no longer exist as top-level llms.txt headings — assert on the actual stable sections (quickstart, the weaviate stack); bump max_tokens to avoid truncated responses.
  • test_chatgpt_can_search_code_tabs: web_search paraphrases code, so verify ChatGPT identifies the text2vec-weaviate vectorizer (normalized) instead of requiring verbatim lines, and remove the vectorizer hint from the prompt so the check proves the code tabs were actually read from the site. (Verbatim per-language extraction stays hard-verified by test_claude_can_fetch_code_tabs via direct web_fetch.)

Verification

All suites green on testing-ci: Docs Code Tests (Agents 27, Python 96, TypeScript 59, Java 37, C# 36), llms.txt (3), Indexability (7 + 63). The ChatGPT test was also run locally to confirm it passes by reading the live page.

g-despot added 4 commits July 6, 2026 14:24
…network reset

/llms.txt 301-redirects to weaviate.io/llms.txt. Add weaviate.io to the Claude
web_fetch allowed_domains so it can follow the redirect, and make
test_llms_txt_accessible use a browser UA and treat a transient connection
reset/timeout as an inconclusive skip (matching test_llms_txt_code.py) rather
than a hard failure.
The generative/hybrid search snippet tests and the Claude llms.txt fetch test
intermittently red the suite on transient blips (gRPC UNAVAILABLE, deadline
exceeded, read timeouts, 429/5xx) against the shared test cluster + LLM APIs.
Add a narrow transient-error retry (utils.retry_on_transient) around the Python,
TypeScript, and C# snippet runners, and retry the Claude fetch up to 3x. Real
failures (assertion/logic/syntax errors) still fail immediately — only messages
matching a small transient-marker set are retried.
- Retry transient Weaviate Cloud connection blips in the agents runner (wrap
  execute_py_script_as_module; add connection-error transient markers).
- test_claude_can_fetch_llms_txt: fix stale section assertion (llms.txt no
  longer has 'agents'/'cloud' top-level sections -> check 'quickstart' + 'the
  weaviate stack'), bump max_tokens 2048->4096 to avoid truncated responses.
- test_chatgpt_can_search_code_tabs: web_search paraphrases code, so verify the
  vectorizer is identified (normalized text2vec-weaviate) instead of requiring
  verbatim lines, and drop the vectorizer hint from the prompt so the check
  actually proves the code tabs were read from the site.

@orca-security-eu orca-security-eu Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@g-despot g-despot merged commit 7140f00 into main Jul 7, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant