fix(evaluators): configure Luna scorer API URL#237
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
namrataghadi-galileo
approved these changes
Jun 17, 2026
- Verify TLS against an optional CA bundle (ca_file arg or GALILEO_LUNA_CA_FILE) so internal API endpoints with internally-issued certificates work in internal auth mode. - Bound connection pooling (keepalive expiry 1s, connection limits) so requests do not reuse sockets the server already closed, and retry the idempotent scorer invoke once on connection errors. - Deprecate GALILEO_LUNA_AUTH_MODE; the auth mode is inferred from the configured credential, and setting both credentials remains an explicit error. - Trim whitespace when resolving API base URLs from the environment. - Update the Luna example README and cover URL precedence, TLS, retry, and deprecation with tests.
44185bb to
1a18fcc
Compare
galileo-automation
pushed a commit
that referenced
this pull request
Jun 17, 2026
## [3.1.0](ts-sdk-v3.0.0...ts-sdk-v3.1.0) (2026-06-17) ### Features * **engine:** add evaluation runtime tuning ([#239](#239)) ([2f1e5fe](2f1e5fe)) * **server:** bound database connection pool ([#236](#236)) ([80aea8f](80aea8f)) ### Bug Fixes * **evaluators:** configure Luna scorer API URL ([#237](#237)) ([fc516f0](fc516f0)) * **server:** use plain psycopg with OS libpq ([#241](#241)) ([45a33a5](45a33a5))
Collaborator
|
🎉 This PR is included in version 3.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Summary
GALILEO_LUNA_API_URLbeforeGALILEO_API_URLfor scorer API calls.GALILEO_LUNA_AUTH_MODEsupported but undocumented.Validation
uv run ruff check evaluators/contrib/galileo/src/agent_control_evaluator_galileo/luna/client.py evaluators/contrib/galileo/tests/test_luna_evaluator.pyenv PYTHONPATH=evaluators/contrib/galileo/src:evaluators/builtin/src:models/src uv run pytest evaluators/contrib/galileo/tests/test_luna_evaluator.py::TestGalileoLunaClient::test_client_warns_when_deprecated_auth_mode_env_is_set/api/v1/agents/initAgentand/api/v1/agents/{agent_name}are registered under CI DB env.GitHub CI currently has one red
cijob inserver/tests/test_init_agent.py::test_init_agent_route_exists; rerun reproduced it. That server assertion is outside this PR diff.