test: Add granite-embedding-125m model to integration tests#31
Conversation
WalkthroughAdded an extra pytest flag to the integration test runner script to specify an embedding model alongside the existing text model parameter. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 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 |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
tests/run_integration_tests.sh (1)
56-56: Parameterize embedding model (symmetry with INFERENCE_MODEL).Hardcoding makes local overrides harder. Mirror the INFERENCE_MODEL pattern.
Apply this diff:
@@ INFERENCE_MODEL="${INFERENCE_MODEL:-meta-llama/Llama-3.2-1B-Instruct}" +EMBEDDING_MODEL="${EMBEDDING_MODEL:-granite-embedding-125m}" @@ - --embedding-model=granite-embedding-125m \ + --embedding-model="$EMBEDDING_MODEL" \
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
tests/run_integration_tests.sh(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: build-test-push (linux/amd64)
🔇 Additional comments (1)
tests/run_integration_tests.sh (1)
53-57: Confirm embedding provider prefix matches run.yaml.distribution/run.yaml declares the embedding as provider_id: sentence-transformers, model_id: granite-embedding-125m (provider_model_id: ibm-granite/granite-embedding-125m-english). Update tests/run_integration_tests.sh (lines 53–57) to pass the provider-prefixed model (sentence-transformers/granite-embedding-125m) for --embedding-model if the pytest plugin expects provider/model; otherwise verify the plugin accepts bare model IDs.
Enabling granite-embedding-125m will allow the embedding tests to run. Signed-off-by: Derek Higgins <derekh@redhat.com>
88ce050 to
3d508c6
Compare
Enabling granite-embedding-125m will allow the embedding tests to run.
Summary by CodeRabbit