You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jobs@airflow.apache.org by GitBox <gi...@apache.org> on 2026/04/25 20:01:06 UTC
[GH] (airflow/backport-8eb433b-v3-2-test): Workflow run "Tests" is working again!
The GitHub Actions job "Tests" on airflow.git/backport-8eb433b-v3-2-test has succeeded.
Run started by GitHub user potiuk (triggered by potiuk).
Head commit for run:
180b2030ac341b419acbb0efc1f771de44022855 / Jarek Potiuk <ja...@potiuk.com>
[v3-2-test] Install shared distros in CI image and tighten shared imports (#65783)
* Use airflow._shared for Stats import in airflow-core dag definition
The new ``check_shared_distributions_structure`` prek hook (#65621)
requires that ``airflow-core`` import shared code via the
``airflow._shared.*`` namespace rather than ``airflow.sdk._shared.*``
(the task-sdk distribution's namespace). One stray ``Stats`` import in
``serialization/definitions/dag.py`` was using the task-sdk path; all
other airflow-core modules already import the same ``Stats`` from
``airflow._shared.observability.metrics.stats``. Switch this one to
match so it shares the singleton already initialized by the executors
and job runners.
* Install shared distributions in CI image so airflow_shared.* resolves
The shared distributions under ``shared/<name>/`` are marked
``Private :: Do Not Upload`` and are not pulled in transitively when
Airflow is installed from a published wheel — those wheels only embed
the modules under ``airflow/_shared/<name>`` and
``airflow/sdk/_shared/<name>``. As a result, ``import airflow_shared.X``
fails in the Lowest Deps and Compat test images even though the source
tree is mounted.
Install the shared distributions from local source inside
``install_development_dependencies.py`` (alongside ``devel-common``)
so the canonical ``airflow_shared.*`` namespace is always available
to test utilities. With that in place, switch ``devel-common`` back
to importing from ``airflow_shared.*`` rather than reaching into
``airflow._shared`` / ``airflow.sdk._shared``:
* ``sphinx_exts/metrics_tables_from_registry.py``
* ``tests_common/pytest_plugin.py`` (``_get_grouped_entry_points``)
* ``tests_common/test_utils/api_fastapi.py`` (``DEFAULT_SENSITIVE_FIELDS``)
* ``tests_common/test_utils/logs.py`` (``DEFAULT_SENSITIVE_FIELDS``)
The two ``DEFAULT_SENSITIVE_FIELDS`` try/except fallbacks collapse
into a single direct import.
* Re-install shared distributions after lowest-direct uv sync
The lowest-direct `uv sync` in `check_force_lowest_dependencies` removes
the `apache-airflow-shared-*` workspace members from the environment
because they aren't transitively required by `airflow-core` or any
provider. With devel-common test utils now importing from
`airflow_shared.*`, test collection in the LowestDeps jobs fails with
`ModuleNotFoundError: No module named 'airflow_shared'`.
Re-install all `shared/<name>/` distributions with `--no-deps` after the
sync so the namespace resolves without disturbing the lowest-direct
resolution that was just applied.
(cherry picked from commit 8eb433b842f2ef97001e636cbd3f2233a8aab36c)
Co-authored-by: Jarek Potiuk <ja...@potiuk.com>
Report URL: https://github.com/apache/airflow/actions/runs/24938098740
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: jobs-unsubscribe@airflow.apache.org
For additional commands, e-mail: jobs-help@airflow.apache.org