Closed tatiana closed 1 month ago
This may be a solution to the problem: https://github.com/astronomer/astronomer-cosmos/issues/967
@jbandoro did this in the past: https://github.com/astronomer/astronomer-cosmos/pull/812
But we need to understand why this was removed and perhaps revert
A suggestion from @pankajkoti is that we may be able to remove some dependency causing this - to unblock other work - since we have other critical things to do in this sprint.
It appears that all CI jobs using Airflow 2.7 are encountering deep resolution issues and failing. Notably, recent releases of Amazon, Google, and Azure providers have specified a minimum Airflow version of 2.8. I’m currently exploring potential connections between these findings and testing various combinations in PR #1182.
Interestingly, while Airflow versions 2.4, 2.5, 2.6, 2.8, and 2.9 are functioning correctly, only version 2.7 seems to be causing deep resolution problems.
But we need to understand why this was removed and perhaps revert
Upon review, I found that the installation wasn’t removed but rather moved under the script scripts/test/pre-install-airflow.sh
, which is now included in the pre-install-commands
. This change was introduced in PR https://github.com/astronomer/astronomer-cosmos/pull/771/. Therefore, it seems that we are still installing Airflow with constraints.
My finding so far is that resolutions are erroring out for Airflow 2.7 I changed the Airflow version for jobs using 2.7 to 2.8 and they finish up quicker. https://github.com/astronomer/astronomer-cosmos/actions/runs/10593607825/job/29355497612?pr=1182
Previously, I tried removing Amazon and Azure dependencies which I guessed to be taking time, but that din’t help. I’m continuing to investigate what is it that is causing Airflow 2.7 taking time and failing
There’s not much luck here. Apparently, the airflow providers are conflicting each other trying to find common set.
I have tried various combinations locally by pinning, adding upper bounds and commenting some providers with not a complete success. The closest success I have got so far it this run https://github.com/astronomer/astronomer-cosmos/actions/runs/10605337919/job/29393925767?pr=1182 with the approach to pre-install the providers with Airflow 2.7 constraints. With this approach, it only fails for a combination of Python 3.7 & 3.8 for Airflow 2.7, and rest all are succeeding
I spent many hours yesterday but still clueless on what is the exact reason for this.
We've merged the PR #1182 . Let's observe for a few PRs on how this solution acts up.
Looks like the CI has been green for recent PR runs. So closing this ticket. We can re-open it in case we see failures again.
Recently our main branch checks stopped passing: https://github.com/astronomer/astronomer-cosmos/actions/runs/10528925346/job/29255782679
We managed to reproduce the issue locally by running:
The stacktrace is:
The issue is happening during the dependency resolution. Locally these are the logs that happened beforehand: