Skip to content

Add compat tests against "v3-X-test" branch tip for providers. #54454

Open

Description

@potiuk

Currently we run compat tests against released versions of airflow, but we do not run them against the v3-X-test branch tip - so we really do not know if providers are working against the "future" patchlevel released from that branch. We should be able to easily add those tests - we have now option to install airflow from any branch in breeze (see #54070) so it should be rather straightforward.

Activity

  1. converted this from a draft issue on Aug 13, 2025
  2. added
    kind:meta
    on Aug 13, 2025
  3. Pyasma commented on Apr 16, 2026

    @Pyasma
    Contributor

    hey @potiuk can i work on this ?

  4. potiuk commented on Apr 17, 2026

    @potiuk
    MemberAuthor

    sure

  5. Pyasma commented on May 13, 2026

    @Pyasma
    Contributor

    @haseebmalik18 are you still working on this ?

  6. haseebmalik18 commented on May 13, 2026

    @haseebmalik18
    Contributor

    I am no longer, you can pick it up

  7. added a commit that references this issue on Aug 17, 2026
    75a6d1a
  8. sjyangkevin commented on Nov 9, 2026

    @sjyangkevin
    Contributor

    Hi @Pyasma, I wonder if you're still working on this? I came across this issue and spent some time to understand context with the help of Claude. I'd like to share some findings and an approach idea, and get feedback on whether it makes sense. Happy to help on #69701, or to pick it up if you've moved on to something else.

    The first thing is that PROVIDERS_COMPATIBILITY_TESTS_MATRIX is no longer used only by the provider compat tests. Since #69671, the OpenLineage e2e compat tests read it too, and both jobs treat every entry as a published release with a PyPI wheel, a Docker image and a constraints-<version> tag. A branch has none of these, which is why the OpenLineage jobs fail on #69701: the branch entry turns into the image name apache/airflow:apache/airflow:v3-3-test-python3.10. #74997 ran into the same assumption with an unreleased X.Y.0.

    Then, I asked Claude to run the install steps in breeze against the tip of v3-3-test, which reports version 3.3.2. When the provider install step doesn't pin Airflow, a provider that needs apache-airflow>=3.4.0 makes uv quietly replace the branch build with 3.4.0 from PyPI, and the step still succeeds. The tests would then run against a release instead of the branch, without anyone noticing. With the pin, the same case fails with a clear "unsatisfiable" error, and the pinned install only takes a few seconds once the git clone is cached. Also, it seems installing Airflow from git follows the branch's own tool.uv.sources. This means providers like common-compat are built from the branch's outdated copy (1.15.0), which conflicts with constraints-3-3 (1.19.0) and breaks the install. Adding --no-sources fixes this.

    Based on this, the idea is to keep the matrix for published versions only, since it's maintained as part of the release process and other jobs rely on it, and to add a separate branch-tip job instead. Selective checks would work out the branch from the highest version in the matrix (3.4.0 gives v3-4-test and constraints-3-4), so nothing new needs updating when a new branch is cut. The job would resolve the branch to a commit SHA at the start, install Airflow from that commit with --no-sources, keep the Airflow pin when installing providers from main, and then check that the installed commit in direct_url.json matches the SHA. Because the branch tip moves independently of main, a broken backport would fail unrelated provider PRs that their authors can't fix. So it might be better to run only on canary runs, or when a PR has the canary or full tests needed label.

    There are a few things still not very clear. While a new minor is in beta and vX-Y-test exists but X.Y.0 isn't released yet, should the job test the new branch or the previous one? Is cloning the repo on each canary run acceptable, or would it be better to build wheels from the branch once? And should this be a separate job, or share steps with the existing compat job?

    Thanks.

  9. sjyangkevin commented on Nov 18, 2026

    @sjyangkevin
    Contributor

    Hi @potiuk , I opened the PR to add a new workflow to run compat tests against the branch tip for providers. I’ve run some tests on my fork, and attached test runs to the PR. When you have a chance, may I get your help to review and would appreciate any feedback. There is also a question regarding if we need to include it in ci-passed’s needs, but that’s based on the current approach #76957 (comment). Thanks in advance.

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:providerskind:meta

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions