Skip to content

Conversation

@shuningc
Copy link
Contributor

@shuningc shuningc commented Nov 5, 2025

The test for opentelemetry-util-genai-emitters-splunk fails with: ModuleNotFoundError: No module named 'opentelemetry.util.genai.emitters.spec'

This happens because emitters-splunk depends on opentelemetry-util-genai being installed first (which contains the emitters.spec module).

Reordered the test steps to install and test the base util-genai package before the packages that depend on it (emitters-splunk, evals, etc.).

The test for opentelemetry-util-genai-emitters-splunk fails with:
ModuleNotFoundError: No module named 'opentelemetry.util.genai.emitters.spec'

This happens because emitters-splunk depends on opentelemetry-util-genai
being installed first (which contains the emitters.spec module).

Reordered the test steps to install and test the base util-genai package
before the packages that depend on it (emitters-splunk, evals, etc.).
@shuningc shuningc requested review from a team as code owners November 5, 2025 00:22
Some tests have cross-dependencies between packages:
- util-genai tests import from util-genai-evals
- emitters-splunk tests import from util-genai

Changed strategy to install all packages first (with --no-deps),
then run each package's tests separately. This ensures all
inter-package dependencies are available during testing.
Changed all 'logger' references to '_LOGGER' to match the module's
logger variable name (line 239 and 245). This fixes the NameError
that was occurring during test execution.
Tests were trying to mock 'handler._load_completion_callbacks' but
the function is actually 'utils.load_completion_callbacks' (imported
from utils module). Updated the mock patch paths to point to the
correct location.
…ctories, update tests to match current implementation
…vals

- Fix 4 instances of handler._load_completion_callbacks -> utils.load_completion_callbacks in test_evaluators.py
- Fix test_evaluation_dynamic_aggregation.py to set _aggregate_results to None instead of False to enable dynamic environment variable reading as per actual implementation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant