Skip to content

Task SDK compat tests with Airflow core #53171

Open

Description

@amoghrajesh

Body

We should be testing atleast n and n-1 version of task SDK with airflow core. This ensures backcompat.

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Activity

  1. added
    kind:metaHigh-level information important to the community
    on Jul 11, 2025
  2. added
    area:CIAirflow's tests and continious integration
    on Jul 11, 2025
  3. potiuk commented on Jul 11, 2025

    @potiuk
    Member

    Three questions.

    1. How many versions back are we going to support. We need to have a written and announced policy about it after we agree it so that our users know what to expect.

    2. Are we also thinking of being able to use old airflow-core with new task-sdk? Or do we plan to have strict relation that task-sdk in concreate version will require airflow-core>=X.Y.0?

    3. In both cases I think we should also implement some way of checking it and rejecting incompatible versions on both sides. Eventually task-sdk will be installed without airflow-core and they will be running on different machines, so we cannot really add "requirements" in Python packages, but I think we should have a runtime check implemented to check both - airflow-core version in task-sdk, and task-sdk version in airflow (during the api communication). This is the only way to avoid some difficult issues where "slight" incompatibility we did not test for could cause some undesired side effect.

    I think basica assumption should be that "if we do not test it in CI, it does not work" and we should forbid those things we did not test things for (same as we do now for providers - but there we do it with "min airflow version" in providers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:CIAirflow's tests and continious integrationkind:metaHigh-level information important to the community

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions