Skip to content

Conversation

@heyjustinai
Copy link
Member

@heyjustinai heyjustinai commented Oct 1, 2025

What does this PR do?

Fixes test suite failures caused by missing utility modules in src/prompt_ops/core/utils/.

The __init__.py file was importing three modules that didn't exist, causing import errors across the test suite. This PR adds the missing modules:

  • strategy_utils.py - Contains map_auto_mode_to_dspy() for mapping user-friendly auto modes to DSPy's internal naming
  • telemetry.py - Contains PreOptimizationSummary dataclass for tracking optimization metadata
  • summary_utils.py - Contains utility functions for creating and displaying pre-optimization summaries

(closes #45 #46)

Test Plan

Verified that previously failing unit tests now pass:

pytest tests/unit/test_migrator.py tests/unit/test_preopt_summary.py \
  tests/unit/test_prompt_processors.py tests/unit/test_summary_utils.py -v

Also verified the full unit + integration test suite runs successfully:

pytest tests/unit tests/integration -v

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 1, 2025
@heyjustinai heyjustinai merged commit 00c5d36 into main Oct 1, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing utility modules cause test failures

2 participants