Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

test(e2e): tolerate transient upstream LLM errors in research workflow (#3608)

LearningCircuit039c501dccd7
diff --git a/tests/puppeteer/test_deep_functionality.js b/tests/puppeteer/test_deep_functionality.js
index c6984570a6..e9e34eb61f 100644
--- a/tests/puppeteer/test_deep_functionality.js
+++ b/tests/puppeteer/test_deep_functionality.js
@@ -462,20 +462,31 @@ describe('Deep Functionality Tests', function() {
// Check specifically for search engine configuration error (known CI limitation)
const isSearchEngineError = resultContent.includes('Unable to conduct research without a search engine');
+ // Transient upstream LLM provider failures (rate limits, 429/5xx) are not
+ // code regressions — the research workflow itself reached the results page.
+ const isTransientLlmError = resultContent.includes('API Rate Limit Exceeded') ||
+ resultContent.includes('Error code: 429') ||
+ /Error code: 5\d\d/.test(resultContent);
+
if (hasResearchError) {
console.log(' ❌ Research failed with error');
// Log the error for debugging
const errorMatch = resultContent.match(/Error.*?(?=\n\n|\n#|$)/s);
if (errorMatch) console.log(' Error:', errorMatch[0]);
- if (isSearchEngineError) {
- // This is a known CI limitation - search engines may not be fully configured
- // for new users. We still verified that:
+ if (isSearchEngineError || isTransientLlmError) {
+ // Known CI limitation — either search engines aren't fully configured
+ // for new users, or the upstream LLM provider is transiently
+ // unavailable (rate-limited / 5xx). We still verified that:
// 1. Research can be initiated
// 2. Research ID is assigned
// 3. Progress page is displayed
// 4. Results page is reached
- console.log(' ⚠️ Search engine configuration issue (known CI limitation)');
+ if (isSearchEngineError) {
+ console.log(' ⚠️ Search engine configuration issue (known CI limitation)');
+ } else {
+ console.log(' ⚠️ Transient upstream LLM provider error (known CI limitation)');
+ }
console.log(' ✓ Verified research workflow mechanics work correctly');
} else {
// Other errors should fail the test