Add migration contract harness#3637
Draft
anth-volk wants to merge 1 commit into
Draft
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3637 +/- ##
==========================================
+ Coverage 78.01% 78.66% +0.65%
==========================================
Files 67 70 +3
Lines 4071 4186 +115
Branches 759 776 +17
==========================================
+ Hits 3176 3293 +117
+ Misses 700 691 -9
- Partials 195 202 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Fixes #3636
Summary
Adds the PR 1 migration safety harness for the API v2 migration plan without changing production behavior by default.
Changes
Testing
python -m pytest tests/contract -q->20 passedFLASK_DEBUG=1 python -m pytest tests/unit/test_migration_flags.py tests/unit/routes/test_migration_context_logging.py tests/unit/test_capture_migration_baseline.py tests/unit/libs/test_simulation_api_modal.py tests/contract -q->82 passed, 1 existing warningruff format --check policyengine_api/api.py policyengine_api/migration_registry.py policyengine_api/migration_flags.py policyengine_api/migration_logging.py scripts/capture_migration_baseline.py tests/unit/test_migration_flags.py tests/unit/routes/test_migration_context_logging.py tests/unit/test_capture_migration_baseline.py tests/contract-> passedruff check policyengine_api/migration_registry.py policyengine_api/migration_flags.py policyengine_api/migration_logging.py scripts/capture_migration_baseline.py tests/unit/test_migration_flags.py tests/unit/routes/test_migration_context_logging.py tests/unit/test_capture_migration_baseline.py tests/contract-> passedNotes
This PR does not shift traffic, add FastAPI, add Cloud Run deployment, migrate schema/storage, or change the public API contract.