Skip to content

Conversation

@jason810496
Copy link
Member

related: #57219

Why

Follow-up PR of Auto-compile UI assets on Breeze start-airflow command #57219 to support --use-airflow-version with <pr_num>.

What

Add a util to parse <pr_number> to owner/repo:branch format via GitHub API and we are able to start-airflow with specific <pr_number like:

breeze start-airflow --backend postgres --load-example-dags --mount-sources providers-and-tests --use-airflow-version 57665

Copilot AI and others added 2 commits November 1, 2025 16:37
Add PR number support to --use-airflow-version option

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Add tests for PR number pattern matching

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Move PR_NUMBER_PATTERN to global_constants for consistency

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Add error handling for deleted fork repositories

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Refactor: consolidate PR number and repo:branch logic in find_installation_spec

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Remove unused get_repo_and_branch_from_pr function

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Support use-airflow-version with PR num for Breeze

Add PR number support to --use-airflow-version option

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Add tests for PR number pattern matching

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Move PR_NUMBER_PATTERN to global_constants for consistency

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Add error handling for deleted fork repositories

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>
@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch labels Nov 1, 2025
@jason810496 jason810496 marked this pull request as ready for review November 1, 2025 12:44
Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool! Seems to work as well as code looks good. That is a very cool feature to be faster in review!

@potiuk
Copy link
Member

potiuk commented Nov 1, 2025

Indeed. Cool as a breeze :)

@potiuk potiuk merged commit 19809dd into apache:main Nov 1, 2025
223 checks passed
@github-actions
Copy link

github-actions bot commented Nov 1, 2025

Backport failed to create: v3-1-test. View the failure log Run details

Status Branch Result
v3-1-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 19809dd v3-1-test

This should apply the commit to the v3-1-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

potiuk pushed a commit to potiuk/airflow that referenced this pull request Nov 1, 2025
…che#57667)

* Support use-airflow-version with PR num for Breeze

Add PR number support to --use-airflow-version option

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Add tests for PR number pattern matching

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Move PR_NUMBER_PATTERN to global_constants for consistency

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Add error handling for deleted fork repositories

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Refactor: consolidate PR number and repo:branch logic in find_installation_spec

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Remove unused get_repo_and_branch_from_pr function

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Support use-airflow-version with PR num for Breeze

Add PR number support to --use-airflow-version option

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Add tests for PR number pattern matching

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Move PR_NUMBER_PATTERN to global_constants for consistency

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Add error handling for deleted fork repositories

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

* Remove not used github utils

---------
(cherry picked from commit 19809dd)

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
potiuk added a commit that referenced this pull request Nov 1, 2025
) (#57688)

* Support use-airflow-version with PR num for Breeze

Add PR number support to --use-airflow-version option



Add tests for PR number pattern matching



Move PR_NUMBER_PATTERN to global_constants for consistency



Add error handling for deleted fork repositories



Refactor: consolidate PR number and repo:branch logic in find_installation_spec



Remove unused get_repo_and_branch_from_pr function



Support use-airflow-version with PR num for Breeze

Add PR number support to --use-airflow-version option



Add tests for PR number pattern matching



Move PR_NUMBER_PATTERN to global_constants for consistency



Add error handling for deleted fork repositories



* Remove not used github utils

---------
(cherry picked from commit 19809dd)

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@potiuk
Copy link
Member

potiuk commented Nov 1, 2025

Backport in #57688

ephraimbuddy pushed a commit that referenced this pull request Nov 3, 2025
) (#57688)

* Support use-airflow-version with PR num for Breeze

Add PR number support to --use-airflow-version option



Add tests for PR number pattern matching



Move PR_NUMBER_PATTERN to global_constants for consistency



Add error handling for deleted fork repositories



Refactor: consolidate PR number and repo:branch logic in find_installation_spec



Remove unused get_repo_and_branch_from_pr function



Support use-airflow-version with PR num for Breeze

Add PR number support to --use-airflow-version option



Add tests for PR number pattern matching



Move PR_NUMBER_PATTERN to global_constants for consistency



Add error handling for deleted fork repositories



* Remove not used github utils

---------
(cherry picked from commit 19809dd)

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
ephraimbuddy pushed a commit that referenced this pull request Nov 4, 2025
) (#57688)

* Support use-airflow-version with PR num for Breeze

Add PR number support to --use-airflow-version option



Add tests for PR number pattern matching



Move PR_NUMBER_PATTERN to global_constants for consistency



Add error handling for deleted fork repositories



Refactor: consolidate PR number and repo:branch logic in find_installation_spec



Remove unused get_repo_and_branch_from_pr function



Support use-airflow-version with PR num for Breeze

Add PR number support to --use-airflow-version option



Add tests for PR number pattern matching



Move PR_NUMBER_PATTERN to global_constants for consistency



Add error handling for deleted fork repositories



* Remove not used github utils

---------
(cherry picked from commit 19809dd)

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Copilot AI added a commit to jason810496/airflow that referenced this pull request Dec 5, 2025
* Support use-airflow-version with PR num for Breeze

Add PR number support to --use-airflow-version option

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Add tests for PR number pattern matching

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Move PR_NUMBER_PATTERN to global_constants for consistency

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Add error handling for deleted fork repositories

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Refactor: consolidate PR number and repo:branch logic in find_installation_spec

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Remove unused get_repo_and_branch_from_pr function

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Support use-airflow-version with PR num for Breeze

Add PR number support to --use-airflow-version option

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Add tests for PR number pattern matching

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Move PR_NUMBER_PATTERN to global_constants for consistency

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

Add error handling for deleted fork repositories

Co-authored-by: jason810496 <68415893+jason810496@users.noreply.github.com>

* Remove not used github utils

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants