Skip to content

Conversation

@chrisguidry
Copy link
Collaborator

Summary

Fixed a failing unit test that was hardcoding the Prefect image version. The test expected prefecthq/prefect:3.1.13-python3.12 but the default version was updated to 3.4.14 in recent changes.

Changes

  • Updated the PrefectServer controller test to use the DEFAULT_PREFECT_VERSION constant instead of hardcoding 3.1.13
  • Added .envrc file to automatically activate mise environment when available

This makes the test compatible with automatic Prefect version bumps and should prevent similar failures in the future.

Related: https://github.com/PrefectHQ/prefect-operator/actions/runs/17404451439/job/49405070158

🤖 Generated with Claude Code

The test was expecting prefecthq/prefect:3.1.13-python3.12 but the
default version was updated to 3.4.14. Updated the test to dynamically
use DEFAULT_PREFECT_VERSION constant instead of hardcoding the version,
making it compatible with automatic version bumps.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@chrisguidry chrisguidry merged commit 28bae45 into main Sep 2, 2025
8 checks passed
@chrisguidry chrisguidry deleted the fix-unit-test-failures branch September 2, 2025 14:09
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.

3 participants