The GitHub Actions job "Tests" on airflow.git has failed.
Run started by GitHub user potiuk (triggered by potiuk).

Head commit for run:
97204046a4af5d08ab71b506cea650ed26d976ad / Jarek Potiuk <[email protected]>
Generate constants with airflow versions in providers

Such constants can be imported in the code and used to implement
conditional logic for different versions of Airflow.

The main reasons we are doing it in this way:

* We do not want to add dependencies to another provider (say
  common.compat) without strong need
* We do not want to duplicate code (the code is generated automatically
  from ``PROVIDER__INIT__PY_TEMPLATE.py.jinja2``) -
  so it has one source of truth
* The PROVIDER_<PROVIDER> is added so that you do not accidentally
  import version from ``tests_common`` or another provider - which might
  happen if you use IDE and semi-automatically add missing importsUpdate

This PR also adds pre-commit that will automatically regenerate
providers `__init__.py` file when either provider.yaml changes or
when `__init__.py` files are modified by a commmit - this way pre-commit
will not let commit pass if the `__init__.py` file has been modified
manually (it will later be modified during release). This change will
prevent it from happening.

Fixes: #44024

Report URL: https://github.com/apache/airflow/actions/runs/12178576053

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to