← Back to issue list

Migrate to Pydantic 2

View original Github issue

Metadata

Project
rockcraft
Number
#657
Type
issue
State
closed
Author
tigarmo
Labels
—
Created
Updated
Closed

Current evaluation

Rockcraft was migrated to Pydantic 2 by merged PR #663, which updated the models and removed the redundant Platform model.

Resolution: closed resolved

Reason: PR #663, titled "chore!: migrate to pydantic 2", was merged and explicitly states that it fixes #657. Maintainer tigarmo also closed the issue with "Fixed in #663."

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done Update the models, schema etc to Pydantic 2 ### Why it needs to get done Pydantic 1 is going to EOL eventually

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Rockcraft was migrated to Pydantic 2 by merged PR #663, which updated the models and removed the redundant Platform model.
stealth/space-bunny-alpha — closed resolved Migrated the codebase to Pydantic 2 in merged PR canonical/craft-parts#771 (commit 6b155294); the issue’s #663 reference points to an unrelated, unmerged PR.
stealth/space-bunny-alpha — closed resolved Migrated models and schema to Pydantic 2; merged PR canonical/rockcraft#663 resolved the migration ahead of Pydantic 1 EOL.
qwen/qwen3.6-35b-a3b — — Migrated models and schema to Pydantic 2 ahead of Pydantic 1 EOL. Resolved and merged via pull request #663.
qwen/qwen3.6-35b-a3b — — Migrated models and schema to Pydantic 2 ahead of Pydantic 1 EOL. The request was resolved and merged in pull request #663.
qwen/qwen3.6-35b-a3b — — Migrated models and schema to Pydantic 2 to address Pydantic 1 EOL. The update was completed and merged via pull request #663.
qwen3.6-35b-a3b-mtp-q6 — — Migrated to Pydantic 2 by updating models and schemas. Closed after being fixed in pull request #663.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/rockcraft#663 (confidence 100%)

    Merged migration PR explicitly states that it fixes #657.

Related issues

Issue Project State Summary Similarity
#663 chore!: migrate to pydantic 2 rockcraft merged Merged PR #663 migrated Rockcraft to Pydantic 2, adopted craft-application's Platform, and fixed #657; migration work includes commit f1681ea1.
85%
#672 merge feature/pydantic-2 rockcraft merged Merged feature/pydantic-2 into main, completing Rockcraft's Pydantic 2 migration and final dependency updates after two approvals.
75%
#1768 Migrate to Pydantic 2 charmcraft closed Migrated Charmcraft to Pydantic 2 via merged PR #1777 (70078b03), with the feature branch merged to main in #1817 (394e6e55).
71%
#345 Migrate to Pydantic 2 craft-application closed Pydantic 2 migration landed via merged PR #401, commit c2f0978a, updating 23 files and replacing the issue's Pydantic 1 requirements.
71%
#4941 Migrate to Pydantic 2 snapcraft closed Pydantic 2 migration completed in merged snapcraft#4955 via commit 1fc8fe6ab, resolving CRAFT-3159.
70%
#110 Migrate to Pydantic 2 craft-archives closed Pydantic 2 migration was completed in merged PR #103 (commit b69f44a) on feature/2.0; the branch later reached main through PR #123.
70%