Skip to content

Commit

Permalink
Bump min version of Providers to 2.9 (#44956)
Browse files Browse the repository at this point in the history
  • Loading branch information
eladkal authored Dec 16, 2024
1 parent 8241020 commit 4b38bed
Show file tree
Hide file tree
Showing 188 changed files with 374 additions and 381 deletions.
4 changes: 2 additions & 2 deletions PROVIDERS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ Airflow version to the next MINOR release, when 12 months passed since the first
MINOR version of Airflow.

For example this means that by default we upgrade the minimum version of Airflow supported by providers
to 2.8.0 in the first Provider's release after 18th of December 2024. 18th of December 2023 is the date when the
first ``PATCHLEVEL`` of 2.8 (2.8.0) has been released.
to 2.9.0 in the first Provider's release after 8th of April 2025. 8th of April 2024 is the date when the
first ``PATCHLEVEL`` of 2.9 (2.9.0) has been released.

When we increase the minimum Airflow version, this is not a reason to bump ``MAJOR`` version of the providers
(unless there are other breaking changes in the provider). The reason for that is that people who use
Expand Down
5 changes: 2 additions & 3 deletions dev/README_RELEASE_PROVIDER_PACKAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ the versions of Airflow that are not applicable anymore.
searching and replacing old version occurrences with newer one. For example 2.8.0 to 2.9.0

3. Update minimum airflow version for all packages, you should modify `MIN_AIRFLOW_VERSION`
in `src/airflow_breeze/utils/packages.py` and run the `prepare-provider-documentation`
command with the `--only-min-version-update` flag. This will only update the min version in
the `__init__.py` files and package documentation without bumping the provider versions.
in `src/airflow_breeze/utils/packages.py` and run the `breeze release-management prepare-provider-documentation --only-min-version-update`
This will only update the min version in the `__init__.py` files and package documentation without bumping the provider versions.

4. Remove `AIRFLOW_V_2_X_PLUS` in all tests (review and update skipif and other conditional
behaviour and test_compat.py, where X is the TARGET version we change to. For example
Expand Down
6 changes: 0 additions & 6 deletions dev/breeze/src/airflow_breeze/global_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,12 +611,6 @@ def get_airflow_extras():


PROVIDERS_COMPATIBILITY_TESTS_MATRIX: list[dict[str, str | list[str]]] = [
{
"python-version": "3.9",
"airflow-version": "2.8.4",
"remove-providers": "cloudant fab edge",
"run-tests": "true",
},
{
"python-version": "3.9",
"airflow-version": "2.9.3",
Expand Down
2 changes: 1 addition & 1 deletion dev/breeze/src/airflow_breeze/utils/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
from airflow_breeze.utils.version_utils import remove_local_version_suffix
from airflow_breeze.utils.versions import get_version_tag, strip_leading_zeros_from_version

MIN_AIRFLOW_VERSION = "2.8.0"
MIN_AIRFLOW_VERSION = "2.9.0"
HTTPS_REMOTE = "apache-https-for-providers"

LONG_PROVIDERS_PREFIX = "apache-airflow-providers-"
Expand Down
10 changes: 5 additions & 5 deletions dev/breeze/tests/test_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_get_long_package_name():

def test_get_provider_requirements():
# update me when asana dependencies change
assert get_provider_requirements("asana") == ["apache-airflow>=2.8.0", "asana>=0.10,<4.0.0"]
assert get_provider_requirements("asana") == ["apache-airflow>=2.9.0", "asana>=0.10,<4.0.0"]


def test_get_removed_providers():
Expand Down Expand Up @@ -210,7 +210,7 @@ def test_get_documentation_package_path():
"beta0",
"""
"apache-airflow-providers-common-sql>=1.20.0b0",
"apache-airflow>=2.8.0b0",
"apache-airflow>=2.9.0b0",
"asyncpg>=0.30.0",
"psycopg2-binary>=2.9.4",
""",
Expand All @@ -221,7 +221,7 @@ def test_get_documentation_package_path():
"",
"""
"apache-airflow-providers-common-sql>=1.20.0",
"apache-airflow>=2.8.0",
"apache-airflow>=2.9.0",
"asyncpg>=0.30.0",
"psycopg2-binary>=2.9.4",
""",
Expand Down Expand Up @@ -437,7 +437,7 @@ def test_validate_provider_info_with_schema():
@pytest.mark.parametrize(
"provider_id, min_version",
[
("amazon", "2.8.0"),
("amazon", "2.9.0"),
("fab", "3.0.0.dev0"),
],
)
Expand Down Expand Up @@ -502,7 +502,7 @@ def test_provider_jinja_context():
"CHANGELOG_RELATIVE_PATH": "../../providers/src/airflow/providers/amazon",
"SUPPORTED_PYTHON_VERSIONS": ["3.9", "3.10", "3.11", "3.12"],
"PLUGINS": [],
"MIN_AIRFLOW_VERSION": "2.8.0",
"MIN_AIRFLOW_VERSION": "2.9.0",
"PROVIDER_REMOVED": False,
"PROVIDER_INFO": provider_info,
}
Expand Down
Loading

0 comments on commit 4b38bed

Please sign in to comment.