Skip to content

feat!: remove auto-fix subsystem (mrt fix, clean-backups) — out of scope#89

Merged
croc100 merged 3 commits into
mainfrom
feat/remove-fixer-v2
Jun 13, 2026
Merged

feat!: remove auto-fix subsystem (mrt fix, clean-backups) — out of scope#89
croc100 merged 3 commits into
mainfrom
feat/remove-fixer-v2

Conversation

@croc100

@croc100 croc100 commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Remove mrt fix command, core/fixer.py, adapters/django_fixer.py, commands/fix.py, commands/clean_backups.py
  • Remove fixer tests (test_fixer.py, test_django_fixer.py, test_django_fixer_e2e.py)
  • Remove fixable field from JSON output and related fixer references
  • Switch CI from coverage run -m pytest to pytest --cov for accurate codecov reporting

Why

Auto-fixing migration files is "transform", not "verify" — outside the core scope of pytest-mrt.
The fixer added ~1100 lines of complexity with non-trivial risk (modifying production migration files).
pytest-mrt's goal: "data survives rollback", nothing more.

Breaking change

mrt fix command is removed. v1.5.0.

croc100 added 3 commits June 14, 2026 00:01
Migration code generation is a transform, not a verify operation, and
does not belong in a rollback-testing tool. Removes ~1100 lines:

- core/fixer.py, adapters/django_fixer.py, commands/fix.py (mrt fix)
- commands/clean_backups.py (mrt clean-backups — only cleaned the
  _mrt_backups table that mrt fix-generated migrations created)
- fixable field from mrt check --format json output
- associated tests and the django_fixer_app test fixture
- docs, roadmap, and contributing references

BREAKING CHANGE: mrt fix and mrt clean-backups commands are gone, and
the JSON findings no longer include a fixable field. Pin pytest-mrt<1.5.0
if you depend on auto-fix. Bumped to 1.5.0.
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@croc100
croc100 merged commit 67c1b51 into main Jun 13, 2026
15 checks passed
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.

2 participants