Skip to content

FIX: Temporarily allow reviewed Alembic rewrite - #2623

Closed
Richard Lundeen (richlundeen) wants to merge 1 commit into
microsoft:mainfrom
richlundeen:richlundeen-alembic-rewrite-exception
Closed

FIX: Temporarily allow reviewed Alembic rewrite#2623
Richard Lundeen (richlundeen) wants to merge 1 commit into
microsoft:mainfrom
richlundeen:richlundeen-alembic-rewrite-exception

Conversation

@richlundeen

Copy link
Copy Markdown
Contributor

Summary

  • Permit modification of only pyrit/memory/alembic/versions/1b3d5f7a9c2e_persist_scored_expectation.py.
  • Require the after-state to have Git blob ID 3cb40abf25ffafe4cbd1ddfda213e02e54458d91, which is the reviewed file content from PERF: Optimize attack and scenario history #2583 at b949e06a2947fa163a5ed35fa8608b48ec262132.
  • Apply the same check to staged changes, PR diffs, and HEAD~1..HEAD checks. All other migration modifications and all other content for this migration still fail.
  • Mark the exception as temporary in code.

Validation

  • UV_NO_SYNC=1 uv run --frozen pytest tests/unit/build_scripts/test_enforce_alembic_revision_immutability.py -q (26 passed)
  • UV_NO_SYNC=1 uv run --frozen pre-commit run --all-files (all substantive hooks passed; check-added-large-files crashed inside git check-attr when it received the full Windows file list)
  • UV_NO_SYNC=1 uv run --frozen pre-commit run check-added-large-files --files build_scripts/enforce_alembic_revision_immutability.py tests/unit/build_scripts/test_enforce_alembic_revision_immutability.py --verbose (passed)

Required merge sequence

This is a temporary prerequisite for #2583. Merge this PR first. Then update #2583 from main and merge it. Remove this exception immediately after #2583 merges.

Pin the temporary Alembic immutability exception to the exact blob reviewed in microsoft#2583.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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