From 52d76ae16872fe3e289227d2a5faa02b2ecfcbdb Mon Sep 17 00:00:00 2001 From: Jed Cunningham Date: Fri, 15 Nov 2024 18:26:27 -0700 Subject: [PATCH] Drop support for PostgreSQL 12 It reached EOL on 2024-11-14. --- README.md | 2 +- dev/breeze/doc/images/output-commands.svg | 2 +- dev/breeze/doc/images/output_setup_config.svg | 2 +- dev/breeze/doc/images/output_setup_config.txt | 2 +- dev/breeze/doc/images/output_shell.svg | 2 +- dev/breeze/doc/images/output_shell.txt | 2 +- .../doc/images/output_start-airflow.svg | 2 +- .../doc/images/output_start-airflow.txt | 2 +- .../output_testing_core-integration-tests.svg | 64 ++++--- .../output_testing_core-integration-tests.txt | 2 +- .../doc/images/output_testing_core-tests.svg | 136 ++++++++------- .../doc/images/output_testing_core-tests.txt | 2 +- ...ut_testing_providers-integration-tests.svg | 66 ++++---- ...ut_testing_providers-integration-tests.txt | 2 +- .../images/output_testing_providers-tests.svg | 160 +++++++++--------- .../images/output_testing_providers-tests.txt | 2 +- .../images/output_testing_system-tests.svg | 56 +++--- .../images/output_testing_system-tests.txt | 2 +- .../src/airflow_breeze/global_constants.py | 4 +- dev/breeze/tests/test_selective_checks.py | 6 +- generated/PYPI_README.md | 2 +- newsfragments/44080.significant.rst | 3 + 22 files changed, 253 insertions(+), 270 deletions(-) create mode 100644 newsfragments/44080.significant.rst diff --git a/README.md b/README.md index baeea6ab9045e..53c3a320a850e 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ Apache Airflow is tested with: | Python | 3.9, 3.10, 3.11, 3.12 | 3.8, 3.9, 3.10, 3.11, 3.12 | | Platform | AMD64/ARM64(\*) | AMD64/ARM64(\*) | | Kubernetes | 1.28, 1.29, 1.30, 1.31 | 1.27, 1.28, 1.29, 1.30 | -| PostgreSQL | 12, 13, 14, 15, 16, 17 | 12, 13, 14, 15, 16 | +| PostgreSQL | 13, 14, 15, 16, 17 | 12, 13, 14, 15, 16 | | MySQL | 8.0, 8.4, Innovation | 8.0, 8.4, Innovation | | SQLite | 3.15.0+ | 3.15.0+ | diff --git a/dev/breeze/doc/images/output-commands.svg b/dev/breeze/doc/images/output-commands.svg index 77c77525301c7..cb38b91013a91 100644 --- a/dev/breeze/doc/images/output-commands.svg +++ b/dev/breeze/doc/images/output-commands.svg @@ -326,7 +326,7 @@ and any attempts to connect to the Airflow database will fail.                 (>sqlite< | mysql | postgres | none)                                           [default: sqlite]                                                              ---postgres-version-PVersion of Postgres used.(>12< | 13 | 14 | 15 | 16 | 17)[default: 12] +--postgres-version-PVersion of Postgres used.(>13< | 14 | 15 | 16 | 17)[default: 13] --mysql-version-MVersion of MySQL used.(>8.0< | 8.4)[default: 8.0] --db-reset-d/--no-db-resetReset DB when entering the container.[default: no-db-reset] ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/dev/breeze/doc/images/output_setup_config.svg b/dev/breeze/doc/images/output_setup_config.svg index 70a197ce5a6e0..bf074d2f3d420 100644 --- a/dev/breeze/doc/images/output_setup_config.svg +++ b/dev/breeze/doc/images/output_setup_config.svg @@ -140,7 +140,7 @@ attempts to connect to the Airflow database will fail.                          (>sqlite< | mysql | postgres | none)                                            [default: sqlite]                                                               ---postgres-version-PVersion of Postgres used.(>12< | 13 | 14 | 15 | 16 | 17)[default: 12] +--postgres-version-PVersion of Postgres used.(>13< | 14 | 15 | 16 | 17)[default: 13] --mysql-version-MVersion of MySQL used.(>8.0< | 8.4)[default: 8.0] --use-uv/--no-use-uv-U/-uEnable/disable using uv for creating venvs by breeze. --cheatsheet/--no-cheatsheet-C/-cEnable/disable cheatsheet. diff --git a/dev/breeze/doc/images/output_setup_config.txt b/dev/breeze/doc/images/output_setup_config.txt index 1eb8fc9137439..45583f9264e89 100644 --- a/dev/breeze/doc/images/output_setup_config.txt +++ b/dev/breeze/doc/images/output_setup_config.txt @@ -1 +1 @@ -f49dbd1127c59b472db1c92d7362c9e1 +77ef3d93e2fc477eb70928281e1f9ec6 diff --git a/dev/breeze/doc/images/output_shell.svg b/dev/breeze/doc/images/output_shell.svg index 7c126fbef524f..86892b0ea2ec3 100644 --- a/dev/breeze/doc/images/output_shell.svg +++ b/dev/breeze/doc/images/output_shell.svg @@ -546,7 +546,7 @@ and any attempts to connect to the Airflow database will fail.                 (>sqlite< | mysql | postgres | none)                                           [default: sqlite]                                                              ---postgres-version-PVersion of Postgres used.(>12< | 13 | 14 | 15 | 16 | 17)[default: 12] +--postgres-version-PVersion of Postgres used.(>13< | 14 | 15 | 16 | 17)[default: 13] --mysql-version-MVersion of MySQL used.(>8.0< | 8.4)[default: 8.0] --db-reset-d/--no-db-resetReset DB when entering the container.[default: no-db-reset] ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/dev/breeze/doc/images/output_shell.txt b/dev/breeze/doc/images/output_shell.txt index 073e8cdc87240..0fece8425a07b 100644 --- a/dev/breeze/doc/images/output_shell.txt +++ b/dev/breeze/doc/images/output_shell.txt @@ -1 +1 @@ -369acf181f53ebddbaf928f4743e0014 +86392f55e19e88a12419283bc2081892 diff --git a/dev/breeze/doc/images/output_start-airflow.svg b/dev/breeze/doc/images/output_start-airflow.svg index d7295570c013f..a960a8672453b 100644 --- a/dev/breeze/doc/images/output_start-airflow.svg +++ b/dev/breeze/doc/images/output_start-airflow.svg @@ -432,7 +432,7 @@ and any attempts to connect to the Airflow database will fail.                 (>sqlite< | mysql | postgres | none)                                           [default: sqlite]                                                              ---postgres-version-PVersion of Postgres used.(>12< | 13 | 14 | 15 | 16 | 17)[default: 12] +--postgres-version-PVersion of Postgres used.(>13< | 14 | 15 | 16 | 17)[default: 13] --mysql-version-MVersion of MySQL used.(>8.0< | 8.4)[default: 8.0] --db-reset-d/--no-db-resetReset DB when entering the container.[default: no-db-reset] ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/dev/breeze/doc/images/output_start-airflow.txt b/dev/breeze/doc/images/output_start-airflow.txt index 10f07b73a0366..58df83b090914 100644 --- a/dev/breeze/doc/images/output_start-airflow.txt +++ b/dev/breeze/doc/images/output_start-airflow.txt @@ -1 +1 @@ -3c833010b2dc87dd333e69700a1b7073 +ac28a9b2ed17fc0a84ec2cdaf27bdb83 diff --git a/dev/breeze/doc/images/output_testing_core-integration-tests.svg b/dev/breeze/doc/images/output_testing_core-integration-tests.svg index 95f22dfedd5f5..f9670b910709e 100644 --- a/dev/breeze/doc/images/output_testing_core-integration-tests.svg +++ b/dev/breeze/doc/images/output_testing_core-integration-tests.svg @@ -1,4 +1,4 @@ - + --python-pPython major/minor version used in Airflow image for images. (>3.9< | 3.10 | 3.11 | 3.12)                                 [default: 3.9]                                               ---postgres-version-PVersion of Postgres used.(>12< | 13 | 14 | 15 | 16 | 17) -[default: 12]             ---mysql-version-MVersion of MySQL used.(>8.0< | 8.4)[default: 8.0] ---forward-credentials-fForward local credentials to container when running. ---force-sa-warnings/--no-force-sa-warningsEnable `sqlalchemy.exc.MovedIn20Warning` during the tests runs. -[default: force-sa-warnings]                                    -╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ -╭─ Integration tests ──────────────────────────────────────────────────────────────────────────────────────────────────╮ ---integrationCore Integrations to enable when running (can be more than one).    -(all | all-testable | celery | kerberos | keycloak | otel | statsd) -╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ -╭─ Advanced flag for tests command ────────────────────────────────────────────────────────────────────────────────────╮ ---github-repository-gGitHub repository used to pull, push run images.(TEXT)[default: apache/airflow] ---image-tagTag of the image which is used to run the image (implies --mount-sources=skip). -(TEXT)                                                                          -[default: latest]                                                               ---mount-sourcesChoose scope of local sources that should be mounted, skipped, or removed (default = -selected).                                                                           -(selected | all | skip | remove | tests | providers-and-tests)                       -[default: selected]                                                                  ---skip-docker-compose-downSkips running docker-compose down after tests ---keep-env-variablesDo not clear environment variables that might have side effect while running tests -╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ -╭─ Common options ─────────────────────────────────────────────────────────────────────────────────────────────────────╮ ---dry-run-DIf dry-run is set, commands are only printed, not executed. ---verbose-vPrint verbose information about performed steps. ---help-hShow this message and exit. -╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +--postgres-version-PVersion of Postgres used.(>13< | 14 | 15 | 16 | 17)[default: 13] +--mysql-version-MVersion of MySQL used.(>8.0< | 8.4)[default: 8.0] +--forward-credentials-fForward local credentials to container when running. +--force-sa-warnings/--no-force-sa-warningsEnable `sqlalchemy.exc.MovedIn20Warning` during the tests runs. +[default: force-sa-warnings]                                    +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─ Integration tests ──────────────────────────────────────────────────────────────────────────────────────────────────╮ +--integrationCore Integrations to enable when running (can be more than one).    +(all | all-testable | celery | kerberos | keycloak | otel | statsd) +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─ Advanced flag for tests command ────────────────────────────────────────────────────────────────────────────────────╮ +--github-repository-gGitHub repository used to pull, push run images.(TEXT)[default: apache/airflow] +--image-tagTag of the image which is used to run the image (implies --mount-sources=skip). +(TEXT)                                                                          +[default: latest]                                                               +--mount-sourcesChoose scope of local sources that should be mounted, skipped, or removed (default = +selected).                                                                           +(selected | all | skip | remove | tests | providers-and-tests)                       +[default: selected]                                                                  +--skip-docker-compose-downSkips running docker-compose down after tests +--keep-env-variablesDo not clear environment variables that might have side effect while running tests +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ +╭─ Common options ─────────────────────────────────────────────────────────────────────────────────────────────────────╮ +--dry-run-DIf dry-run is set, commands are only printed, not executed. +--verbose-vPrint verbose information about performed steps. +--help-hShow this message and exit. +╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ diff --git a/dev/breeze/doc/images/output_testing_core-integration-tests.txt b/dev/breeze/doc/images/output_testing_core-integration-tests.txt index eb69a8e519869..257c1a34686d1 100644 --- a/dev/breeze/doc/images/output_testing_core-integration-tests.txt +++ b/dev/breeze/doc/images/output_testing_core-integration-tests.txt @@ -1 +1 @@ -5894cf887269f4cc5da2b0c5fb015685 +7b2880a0cb08bc36d5cd0bf3cc73d8c3 diff --git a/dev/breeze/doc/images/output_testing_core-tests.svg b/dev/breeze/doc/images/output_testing_core-tests.svg index 8f3f7f03eb7e2..6c30d1b090f84 100644 --- a/dev/breeze/doc/images/output_testing_core-tests.svg +++ b/dev/breeze/doc/images/output_testing_core-tests.svg @@ -1,4 +1,4 @@ - +