Fix broken CI due to Pydantic conflicts#1809
Merged
Merged
Conversation
✅ Deploy Preview for sunny-pastelito-5ecb04 canceled.
|
tatiana
commented
Jun 19, 2025
tatiana
commented
Jun 19, 2025
Collaborator
Author
|
Since tests passed in https://github.com/astronomer/astronomer-cosmos/actions/runs/15759300044 and the comments were addressed, we're going ahead to merge this |
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pydantic recently released 2.11.7 (Jun 14, 2025), which seems to have broken a few of our test cases, including the following integration tests:
As of now,
dbt-coreversions until 1.10 depend onPydantic < 2.0(https://github.com/dbt-labs/dbt-core/blob/8873581c5afd44196c229d2fbf92880b164652ef/core/setup.py#L85), while Airflow 2.10, 2.11 and 3.0 rely onPydantic > 2.0. Although these are incompatible, untilPydantic==2.11.0, both libraries could co-exist in the same Python virtual environment without significant issues. However, from this version, numerous issues began to occur, as illustrated below.For now, we're pinning to a version of Pydantic that works with both libraries, as illustrated in this successful Github run:
https://github.com/astronomer/astronomer-cosmos/actions/runs/15755062499
Follow-up tickets:
Error 1
This error was happening because we were installing
dbt-core==1.10, instead ofdbt-core==1.9, and it had a conflicting version of Pydantic about Airflow 2.9 and 3.0."Error 2"