chore: lift-and-shift update to pydantic 2
Metadata
Current evaluation
Merged PR #771 as commit 6b155294, completing phase 1 of the Pydantic 2 migration across 38 files using bump-pydantic and follow-up fixes.
Resolution: closed resolved
Reason: The approved migration was merged into the mainline as commit 6b155294, updating 38 files to use Pydantic 2.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
This is part 1 of the Pydantic 2 changeover. It uses `bump-pydantic` followed by a bunch of fixes
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #771 as commit 6b155294, completing phase 1 of the Pydantic 2 migration across 38 files using bump-pydantic and follow-up fixes. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged canonical/craft-parts#771, updating 38 files (+207/-127) to Pydantic 2 with bump-pydantic and manual fixes; this was phase 1 of the migration. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in canonical/craft-parts#771, completing phase 1 of the Pydantic 2 migration across 38 files using bump-pydantic and follow-up fixes. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged after two approvals and passing CI. The update migrates the codebase to Pydantic 2 using bump-pydantic and manual fixes. It touched 38 files (+207/-127 lines) as the initial phase of the broader dependency upgrade. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged maintainer-led update migrating the codebase to Pydantic 2. The change leverages bump-pydantic for automated conversion followed by manual fixes, serving as the first phase of a broader Pydantic 2 migration effort. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/craft-parts#728
(confidence 92%)
The overarching Pydantic 2.x migration was advanced by this merged first-phase PR.
-
Related To:
canonical/craft-parts#778
(confidence 88%)
Follow-up merged cleanup for remaining Pydantic 2 migration work.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1817 chore: merge pydantic 2 support to main | charmcraft | merged | Pydantic 2 support was merged into main by PR #1817 (commit 394e6e55), completing the migration begun in #1777 across 52 files. | |
| #112 chore(deps): update to pydantic 2 & bump-pydantic | craft-archives | closed | Closed unmerged; its Pydantic 2 migration was superseded by #103 (b69f44a) and merged into main through #123. | |
| #36 chore!: update to pydantic 2 | craft-grammar | merged | Merged PR #36 (commit 06fc994), completing the breaking Pydantic 2 update after two approvals and manual confirmation of the author's CLA employment status. | |
| #778 chore: pydantic 2 related cleanup | craft-parts | merged | Merged Pydantic 2 cleanup across seven files in commit 68d61fa0, following prerequisite plugin-model restructuring in #775. | |
| #370 chore(deps): update dependency pydantic to v2 | craft-providers | closed | Renovate pydantic v2 bump closed unmerged by mr-cal to defer migration to a larger craft effort; the upgrade later landed in merged PR #451 (commit f380a9e) for 2.0. | |
| #28 chore(deps): update dependency pydantic to v2 - autoclosed | craft-grammar | closed | Renovate's Pydantic 2 bump was closed unmerged and superseded by dedicated migration PR #33, which landed in commit 5e225fb. | |
| #116 chore(deps): update dependency pydantic to v2 | craft-store | closed | Renovate's pydantic v2 bump PR was closed unmerged by @lengau (2023-10-22, "Pydantic 2 will need some significant changes"); the real migration landed later in merged PR #193 (commit 026b78d). | |
| #1351 chore(deps): update dependency pydantic to v2 | charmcraft | closed | Renovate PR bumping pydantic 1.10.13 -> 2.4.2 was closed unmerged by lengau ("will need its own project"). The upgrade later landed via PR #1777 (70078b03), merged to main in #1817 (394e6e55). | |
| #33 chore!: update to Pydantic 2 | craft-grammar | merged | Merged as commit 5e225fb via PR #33, updating craft-grammar to Pydantic 2 and revising grammar validation errors; fixes #32. | |
| #163 chore(deps): update dependency pydantic to v2 | craft-application | closed | Renovate’s Pydantic 2.5.2 bump was closed unmerged and later replaced by merged migration PR #401 (commit c2f0978a). |