-
Notifications
You must be signed in to change notification settings - Fork 3.3k
fix(airflow): set minimum supported version to 2.7.0 (#13357) #13619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(airflow): set minimum supported version to 2.7.0 (#13357) #13619
Conversation
hsheth2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The airflow.md docs file needs to be updated
| base_requirements = { | ||
| f"acryl-datahub[datahub-rest]{_self_pin}", | ||
| # We require Airflow 2.3.x at minimum, since we need the new DAG listener API. | ||
| # We require Airflow 2.7.x at minimum, since we need the new DAG listener API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment is a bit inaccurate now - the DAG listener API was added in 2.3. We required 2.7+ for a different reason, which should be listed here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hsheth2 Agreed, will change. Can you please point me to the unit and integration tests in this repo? I am new to this setup, and tried digging my way around the tests which need to be updated to the new Airflow version, but just wanted to confirm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's in metadata-ingestion-modules/airflow-plugin/tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the comment.
Will update it. To reflect the fact that the V2 plugin will support only Airflow versions >= 2.7. |
963d1a5 to
7da9489
Compare
|
|
||
| We no longer officially support Airflow <2.5. However, you can use older versions of `acryl-datahub-airflow-plugin` with older versions of Airflow. | ||
| We no longer officially support Airflow <2.7. However, you can use older versions of `acryl-datahub-airflow-plugin` with older versions of Airflow. | ||
| The first two options support Python 3.7+, and the others require Python 3.8+. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the list below should also be updated to explain the older versions that have support
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hsheth2 Added more details related to older versions. Let me know if this looks good or if more info needs to be added.
.github/workflows/airflow-plugin.yml
Outdated
| extra_pip_constraints: "-c https://raw.githubusercontent.com/apache/airflow/constraints-2.6.3/constraints-3.10.txt" | ||
| # - python-version: "3.10" | ||
| # extra_pip_requirements: "apache-airflow~=2.6.3" | ||
| # extra_pip_constraints: "-c https://raw.githubusercontent.com/apache/airflow/constraints-2.6.3/constraints-3.10.txt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's remove these lines entirely
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Thanks for letting me know. Mostly due to formatting imports. Got past that now. Can you please take another look? |
| # For older versions of Airflow (where we can't use constraints), | ||
| # we need to add a couple extra constraints. | ||
| airflow25: test-airflow25 | ||
| airflow27: test-airflow27 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this does not look right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably can just be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the constraint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can remove the test-airflow25 extra as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
|
||
| [tox] | ||
| envlist = py38-airflow25, py310-airflow26, py310-airflow27, py310-airflow28, py311-airflow29, py311-airflow210 | ||
| envlist = py38-airflow27,py310-airflow27, py310-airflow28, py311-airflow29, py311-airflow210 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tox.ini should be in sync with the airflow-plugin.yml
this say it's testing both py38 and py310 with airflow 2.7, but the other file has something different
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, changed it.
Co-authored-by: Harshal Sheth <[email protected]>
Co-authored-by: Harshal Sheth <[email protected]>
…#13619) Co-authored-by: Harshal Sheth <[email protected]>
Part of a 2-step fix for #13357