Skip to content

Make breeze verify tests pass on release branches - #74624

Merged
vatsrahul1001 merged 1 commit into
mainfrom
fix-verify-tests-release-branch
Oct 13, 2026
Merged

vatsrahul1001 merged 1 commit into
mainfrom
fix-verify-tests-release-branch

Conversation

@vatsrahul1001

Copy link
Copy Markdown
Contributor

The breeze verify command (added in #73241) derives the base ref and the selective-checks default_branch from branch_defaults.AIRFLOW_BRANCH. Its tests in test_verify_commands.py, however, hardcode "main".

On main that's fine, but on a vX-Y-test release branch — where AIRFLOW_BRANCH is e.g. "v3-4-test" — three things shift and 8 tests fail:

  • find_default_base_ref() looks for <remote>/v3-4-test instead of <remote>/main;
  • the no-apache-remote fallback (base_ref = AIRFLOW_BRANCH) is v3-4-test, not main;
  • default_branch=AIRFLOW_BRANCH passed to selective checks changes the docs list (e.g. build-docs apache-airflow docker-stack).

v3-4-test is the first release branch to fast-forward in this command, so it's the first to surface it (patch branches like v3-3-test only get cherry-picks and don't have the command yet).

The fix pins AIRFLOW_BRANCH / DEFAULT_AIRFLOW_CONSTRAINTS_BRANCH to main / constraints-main in an autouse fixture, so the suite asserts the main behaviour it was written for regardless of which branch it runs on. Verified: the previously-failing 8 tests pass on v3-4-test (real AIRFLOW_BRANCH="v3-4-test"), and all 23 still pass on main.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.8)

Generated-by: Claude Code (Opus 4.8) following the guidelines

The breeze verify command (#73241) derives the base ref and the
selective-checks default_branch from branch_defaults.AIRFLOW_BRANCH, but
its tests hardcode "main". On a vX-Y-test release branch - where
AIRFLOW_BRANCH is e.g. "v3-4-test" - the base-ref lookup, the no-apache-remote
fallback, and the docs list all differ, so eight tests fail. v3-4-test is
the first release branch to include the command and surface this.

Pin AIRFLOW_BRANCH / DEFAULT_AIRFLOW_CONSTRAINTS_BRANCH to main /
constraints-main in an autouse fixture so the suite asserts the main
behaviour it was written for, on any branch.
@vatsrahul1001
vatsrahul1001 merged commit 03f33a2 into main Oct 13, 2026
68 checks passed
@vatsrahul1001
vatsrahul1001 deleted the fix-verify-tests-release-branch branch October 13, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants