fix(tests): use crawler-friendly search query in Exa integration test#7746
Merged
yuhongsun96 merged 1 commit intomainfrom Jan 24, 2026
Merged
fix(tests): use crawler-friendly search query in Exa integration test#7746yuhongsun96 merged 1 commit intomainfrom
yuhongsun96 merged 1 commit intomainfrom
Conversation
The previous query "latest ai research news" returned URLs from news sites that block web crawlers with bot protection, causing flaky test failures. Changed to "wikipedia python programming" which returns Wikipedia URLs that are reliably crawlable.
Contributor
Greptile OverviewGreptile SummaryFixes flaky integration test by replacing a search query that returned bot-protected news URLs with one that returns crawler-friendly Wikipedia URLs.
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Test as test_web_search_endpoints_with_exa
participant ExaAPI as Exa Search Provider
participant SearchLite as /web-search/search-lite
participant Crawler as Onyx Web Crawler
participant OpenURLs as /web-search/open-urls
participant Search as /web-search/search
participant Wikipedia as Wikipedia URLs
Test->>ExaAPI: Activate Exa provider
ExaAPI-->>Test: Provider ID
Test->>SearchLite: POST {"queries": ["wikipedia python programming"], "max_results": 3}
SearchLite->>ExaAPI: Search query
ExaAPI->>Wikipedia: Find matching pages
Wikipedia-->>ExaAPI: Return Wikipedia URLs
ExaAPI-->>SearchLite: Search results with URLs
SearchLite-->>Test: Exa search results
Test->>Test: Extract URLs from results
Test->>OpenURLs: POST {"urls": [url1, url2]}
OpenURLs->>Crawler: Fetch content from URLs
Crawler->>Wikipedia: GET url1
Wikipedia-->>Crawler: Page content (bot-friendly)
Crawler->>Wikipedia: GET url2
Wikipedia-->>Crawler: Page content (bot-friendly)
Crawler-->>OpenURLs: Crawled content
OpenURLs-->>Test: Results with content
Test->>Search: POST search request (combined)
Search->>ExaAPI: Search query
ExaAPI->>Wikipedia: Find matching pages
Wikipedia-->>ExaAPI: Return Wikipedia URLs
ExaAPI-->>Search: Search results
Search->>Crawler: Fetch content from URLs
Crawler->>Wikipedia: GET URLs
Wikipedia-->>Crawler: Page content
Crawler-->>Search: Full content
Search-->>Test: Combined search + content results
Test->>Test: Assert all responses valid
|
yuhongsun96
approved these changes
Jan 24, 2026
jmelahman
pushed a commit
that referenced
this pull request
Jan 25, 2026
jmelahman
pushed a commit
that referenced
this pull request
Jan 25, 2026
1 task
jmelahman
pushed a commit
that referenced
this pull request
Jan 27, 2026
jmelahman
pushed a commit
that referenced
this pull request
Jan 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes flaky
test_web_search_endpoints_with_exaintegration test. The previous search query "latest ai research news" returned URLs from news sites (e.g., chemistryworld.com) that block web crawlers with bot protection, causing consistent test failures.Changed to "wikipedia python programming" which returns Wikipedia URLs that are reliably crawlable without bot protection.
How Has This Been Tested?
The test was failing consistently on PR #7745 due to chemistryworld.com blocking the crawler. Wikipedia URLs should be reliably fetchable.
Additional Options
Summary by cubic
Fixes flaky Exa integration test by using a crawler-friendly query that returns Wikipedia pages. Replaced "latest ai research news" with "wikipedia python programming" to avoid bot-protected news sites.
Written for commit fa233cb. Summary will update on new commits.