Skip to content

Add new breeze run command for non-interactive command execution #52370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

kaxil
Copy link
Member

@kaxil kaxil commented Jun 27, 2025

Add a new breeze run command that allows running commands in the Breeze environment without entering an interactive shell. This is useful for automated testing, and one-off command execution which is useful for AI too.

# Run a specific test
breeze run pytest providers/google/tests/unit/google/cloud/operators/test_dataflow.py -v

# Check version compatibility
breeze run python -c "from airflow.providers.google.version_compat import AIRFLOW_V_3_0_PLUS; print(AIRFLOW_V_3_0_PLUS)"

# Run with different Python version and backend
breeze run --python 3.11 --backend postgres pytest providers/postgres/tests/

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Add a new `breeze run` command that allows running commands in the Breeze
environment without entering an interactive shell. This is useful for
automated testing, and one-off command execution which is useful for AI too.
@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch labels Jun 27, 2025
@kaxil kaxil added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Jun 27, 2025
Copy link
Member

@gopidesupavan gopidesupavan left a comment

Choose a reason for hiding this comment

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

Nice :)

@kaxil kaxil merged commit bb041b3 into apache:main Jun 27, 2025
93 of 96 checks passed
@kaxil kaxil deleted the add-breeze-dev branch June 27, 2025 23:10
github-actions bot pushed a commit that referenced this pull request Jun 27, 2025
…execution (#52370)

Add a new `breeze run` command that allows running commands in the Breeze
environment without entering an interactive shell. This is useful for
automated testing, and one-off command execution which is useful for AI too.
(cherry picked from commit bb041b3)

Co-authored-by: Kaxil Naik <[email protected]>
Copy link

Backport successfully created: v3-0-test

Status Branch Result
v3-0-test PR Link

@potiuk
Copy link
Member

potiuk commented Jun 28, 2025

Nice ... But this has already been possible with breeze shell :)

@potiuk
Copy link
Member

potiuk commented Jun 28, 2025

Or even with default breeze

@potiuk
Copy link
Member

potiuk commented Jun 28, 2025

You just needed to separate command with -- -> standard unix

breeze shell -- "pytest --version"

...

Sourcing the initialization script from init.sh in /files/airflow-breeze-config

pytest 8.4.1
⏚ [jarek:~/code/airflow/dev/breeze] limit-click-back+ 12s ± 

But yeah - run is more explicit and nicer as you can pass regular parameters - no need to quote command.

potiuk pushed a commit that referenced this pull request Jun 28, 2025
…execution (#52370) (#52373)

Add a new `breeze run` command that allows running commands in the Breeze
environment without entering an interactive shell. This is useful for
automated testing, and one-off command execution which is useful for AI too.
(cherry picked from commit bb041b3)

Co-authored-by: Kaxil Naik <[email protected]>
@potiuk
Copy link
Member

potiuk commented Jun 28, 2025

Very nice change @kaxil -> ❤️

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-0-test Mark PR with this label to backport to v3-0-test branch changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants