Migrate to pydantic 2
Metadata
Current evaluation
Merged after approval. The codebase was migrated to Pydantic V2 with updated craft libraries. Changes span 27 files (+278/-340 lines) and maintain 98% test coverage, resolving FR-8917.
Suggested action: —
No scores available.
Issue body
Migrate to pydantic V2 and adapt to new craft libraries.
Fixes: FR-8917
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged after approval. The codebase was migrated to Pydantic V2 with updated craft libraries. Changes span 27 files (+278/-340 lines) and maintain 98% test coverage, resolving FR-8917. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged after passing 98% code coverage and maintainer review. Migrates the codebase to Pydantic V2 and adapts to updated craft libraries, resolving FR-8917. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged after migrating the codebase to Pydantic V2 and updating dependencies for new craft libraries. Resolved FR-8917 and passed all tests with 98.06% coverage. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #672 merge feature/pydantic-2 | rockcraft | merged | Merged the pydantic 2 migration branch via rebase after two approvals and passing CI. The update modified 26 files, adding 3661 lines and removing 2150, finalizing the migration and dependency updates. | |
| #401 build!: update to pydantic 2 | craft-application | merged | Merged to update the codebase to Pydantic 2. Approved by two reviewers and passed CI. The change modified 23 files (+531/-342). Initial test failures were resolved after the craft-grammar dependency received a corresponding update. | |
| #4955 chore!: migrate to pydantic 2 | snapcraft | merged | Merged after two approvals and passing CI. Migrates the codebase to Pydantic 2, resolving issue #4941. The author rebased and force-pushed clean commits prior to a rebase-merge. | |
| #4941 Migrate to Pydantic 2 | snapcraft | closed | Closed without resolution. Pydantic 2 migration tasks were superseded by internal Jira ticket CRAFT-3159. No pull requests were merged or code changes implemented. | |
| #110 Migrate to Pydantic 2 | craft-archives | closed | Migrated to Pydantic 2. Resolved by merging PR #103 into the feature/2.0 branch, fulfilling the Pydantic 1 end-of-life requirement. | |
| #657 Migrate to Pydantic 2 | rockcraft | closed | Migrated models and schema to Pydantic 2 ahead of Pydantic 1 EOL. Resolved and merged via pull request #663. | |
| #1777 feat(deps)!: switch to pydantic 2 | charmcraft | merged | Merged pydantic 2 upgrade, incorporating #1776. Approved by two reviewers, the update modified 81 files with a net reduction of over 15,000 lines, completing the major version migration. | |
| #663 chore!: migrate to pydantic 2 | rockcraft | merged | Merged after approval by four reviewers, migrating the codebase to Pydantic 2. The update drops the Rockcraft Platform model, applies necessary cleanups, and resolves issue #657 across 27 files. | |
| #1768 Migrate to Pydantic 2 | charmcraft | closed | Closed without resolution. The Pydantic 2 migration was logged internally via Jira but no code changes or implementation were recorded in this repository. | |
| #345 Migrate to Pydantic 2 | craft-application | closed | Closed and abandoned without a direct resolution. An internal Jira ticket (CRAFT-2917) was created to track the Pydantic 2 migration separately. No pull request or merge was recorded. |