Skip to content

Fix: Prevent Breeze crash when self-upgrade check fails#65656

Merged
potiuk merged 3 commits intoapache:mainfrom
mscsy0104:fix-issue-65651-breeze-uv-upgrade
Apr 22, 2026
Merged

Fix: Prevent Breeze crash when self-upgrade check fails#65656
potiuk merged 3 commits intoapache:mainfrom
mscsy0104:fix-issue-65651-breeze-uv-upgrade

Conversation

@mscsy0104
Copy link
Copy Markdown
Contributor

@mscsy0104 mscsy0104 commented Apr 22, 2026

Breeze used to crash with aCalledProcessError when it was not installed as a global uv tool or when uv was missing. This PR makes the self-upgrade check robust to ensure Breeze continues to function normally even if the check fails.

Changes

  1. Changed check=True to check=False in subprocess.run to prevent crashing on non-zero exit codes (e.g., when Breeze is installed in a venv, not as a tool).

  2. Added exception handling for FileNotFoundError to handle environments where uv is not installed.

  3. Added unit tests to verify that Breeze continues execution if the upgrade check fails.

Related Issue
closes: #65651


Tests Performed
We have verified the fix through both manual and automated testing.

1. Manual Verification
I confirmed that the crash no longer occurs when running Breeze in a uv venv environment without global tool installation.

2. Automated Unit Tests
I added new unit tests to dev/breeze/tests/test_path_utils.py to mock FileNotFoundError and subprocess.CalledProcessError (return code 1) to ensure the function returns False and Breeze does not crash.

Test Execution Results:
스크린샷 2026-04-22 오후 3 17 23


Was generative AI tooling used to co-author this PR?
  • Yes (Gemini)
    Generated-by: Gemini following the guidelines

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@potiuk potiuk merged commit 9aa4dfb into apache:main Apr 22, 2026
141 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

Backport successfully created: v3-2-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-2-test PR Link

@mscsy0104 mscsy0104 deleted the fix-issue-65651-breeze-uv-upgrade branch April 23, 2026 00:58
vatsrahul1001 pushed a commit that referenced this pull request Apr 23, 2026
…65656)

* Fix: Prevent Breeze crash when self-upgrade check fails

* test: add unit tests for Breeze self-upgrade check

* style: rename test file and update breeze images
(cherry picked from commit 9aa4dfb)

Co-authored-by: Florence <153512255+mscsy0104@users.noreply.github.com>
potiuk pushed a commit that referenced this pull request Apr 26, 2026
…65656)

* Fix: Prevent Breeze crash when self-upgrade check fails

* test: add unit tests for Breeze self-upgrade check

* style: rename test file and update breeze images
(cherry picked from commit 9aa4dfb)

Co-authored-by: Florence <153512255+mscsy0104@users.noreply.github.com>
potiuk pushed a commit that referenced this pull request Apr 27, 2026
…65656) (#65683)

* Fix: Prevent Breeze crash when self-upgrade check fails

* test: add unit tests for Breeze self-upgrade check

* style: rename test file and update breeze images
(cherry picked from commit 9aa4dfb)

Co-authored-by: Florence <153512255+mscsy0104@users.noreply.github.com>
vatsrahul1001 pushed a commit that referenced this pull request Apr 27, 2026
…65656) (#65683)

* Fix: Prevent Breeze crash when self-upgrade check fails

* test: add unit tests for Breeze self-upgrade check

* style: rename test file and update breeze images
(cherry picked from commit 9aa4dfb)

Co-authored-by: Florence <153512255+mscsy0104@users.noreply.github.com>
Cloud-Architect-Emma pushed a commit to Cloud-Architect-Emma/airflow that referenced this pull request Apr 30, 2026
* Fix: Prevent Breeze crash when self-upgrade check fails

* test: add unit tests for Breeze self-upgrade check

* style: rename test file and update breeze images
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-2-test Mark PR with this label to backport to v3-2-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Breeze crashes on self-upgrade check when installed in venv via uv

2 participants