LCORE-1496: Inference providers e2e tests failing (Watson, Vertex, Azure, RHAIIS, RHELAI)#1358
LCORE-1496: Inference providers e2e tests failing (Watson, Vertex, Azure, RHAIIS, RHELAI)#1358are-ces wants to merge 6 commits intolightspeed-core:mainfrom
Conversation
WalkthroughThis PR updates GitHub Actions workflow triggers to run on Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip You can customize the tone of the review comments and chat replies.Configure the |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
tests/e2e/configs/run-watsonx.yaml (1)
157-162:⚠️ Potential issue | 🔴 CriticalDuplicate
vector_storeskey will break vector store registration.Same issue as in
examples/watsonx-run.yaml- thevector_stores: []at line 162 overwrites the FAISS configuration above it.🐛 Proposed fix - remove the duplicate key
vector_stores: - embedding_dimension: 768 embedding_model: sentence-transformers/all-mpnet-base-v2 provider_id: faiss vector_store_id: ${env.FAISS_VECTOR_STORE_ID} - vector_stores: [] datasets: []🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@tests/e2e/configs/run-watsonx.yaml` around lines 157 - 162, The YAML contains a duplicate top-level key "vector_stores" which causes the configured FAISS entry (the block with embedding_dimension, embedding_model, provider_id, and vector_store_id) to be overwritten by the later empty `vector_stores: []`; remove the trailing duplicate `vector_stores: []` so the FAISS configuration block remains the sole "vector_stores" entry (same fix as in examples/watsonx-run.yaml).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@examples/watsonx-run.yaml`:
- Around line 157-162: The YAML contains a duplicate top-level key
"vector_stores" which causes the configured FAISS block (embedding_dimension,
embedding_model, provider_id, vector_store_id with ${env.FAISS_VECTOR_STORE_ID})
to be overwritten by the later "vector_stores: []"; remove the redundant
"vector_stores: []" entry so the FAISS vector store configuration remains (keep
the block containing embedding_dimension, embedding_model, provider_id,
vector_store_id).
---
Outside diff comments:
In `@tests/e2e/configs/run-watsonx.yaml`:
- Around line 157-162: The YAML contains a duplicate top-level key
"vector_stores" which causes the configured FAISS entry (the block with
embedding_dimension, embedding_model, provider_id, and vector_store_id) to be
overwritten by the later empty `vector_stores: []`; remove the trailing
duplicate `vector_stores: []` so the FAISS configuration block remains the sole
"vector_stores" entry (same fix as in examples/watsonx-run.yaml).
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 761aed89-4a09-46d4-b1c2-c76b08c57a02
📒 Files selected for processing (10)
.github/workflows/e2e_tests_providers.yaml.github/workflows/e2e_tests_rhaiis.yaml.github/workflows/e2e_tests_rhelai.yamlexamples/azure-run.yamlexamples/vertexai-run.yamlexamples/watsonx-run.yamltest.containerfiletests/e2e/configs/run-azure.yamltests/e2e/configs/run-vertexai.yamltests/e2e/configs/run-watsonx.yaml
| vector_stores: | ||
| - embedding_dimension: 768 | ||
| embedding_model: sentence-transformers/all-mpnet-base-v2 | ||
| provider_id: faiss | ||
| vector_store_id: ${env.FAISS_VECTOR_STORE_ID} | ||
| vector_stores: [] |
There was a problem hiding this comment.
Duplicate vector_stores key will cause the FAISS configuration to be silently overwritten.
In YAML, duplicate keys result in the later value overwriting the earlier one. The vector_stores: [] at line 162 will override the FAISS vector store configuration defined at lines 157-161, effectively removing the vector store registration and breaking RAG functionality.
🐛 Proposed fix - remove the duplicate key
vector_stores:
- embedding_dimension: 768
embedding_model: sentence-transformers/all-mpnet-base-v2
provider_id: faiss
vector_store_id: ${env.FAISS_VECTOR_STORE_ID}
- vector_stores: []
datasets: []📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| vector_stores: | |
| - embedding_dimension: 768 | |
| embedding_model: sentence-transformers/all-mpnet-base-v2 | |
| provider_id: faiss | |
| vector_store_id: ${env.FAISS_VECTOR_STORE_ID} | |
| vector_stores: [] | |
| vector_stores: | |
| - embedding_dimension: 768 | |
| embedding_model: sentence-transformers/all-mpnet-base-v2 | |
| provider_id: faiss | |
| vector_store_id: ${env.FAISS_VECTOR_STORE_ID} |
🧰 Tools
🪛 YAMLlint (1.38.0)
[error] 162-162: duplication of key "vector_stores" in mapping
(key-duplicates)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@examples/watsonx-run.yaml` around lines 157 - 162, The YAML contains a
duplicate top-level key "vector_stores" which causes the configured FAISS block
(embedding_dimension, embedding_model, provider_id, vector_store_id with
${env.FAISS_VECTOR_STORE_ID}) to be overwritten by the later "vector_stores:
[]"; remove the redundant "vector_stores: []" entry so the FAISS vector store
configuration remains (keep the block containing embedding_dimension,
embedding_model, provider_id, vector_store_id).
Description
Several issues are addressed in this PR:
srcto the PYTHONPATHType of change
Tools used to create PR
Identify any AI code assistants used in this PR (for transparency and review context)
Related Tickets & Documents
Checklist before requesting a review
Testing
e2e tests passing for the providers.
Summary by CodeRabbit
New Features
Chores