Skip to content

Add the upgrade_sqlalchemy breeze flag to run tests with SQLA2 #52559

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 30, 2025

Conversation

Dev-iL
Copy link
Contributor

@Dev-iL Dev-iL commented Jun 30, 2025

Breaking apart #52233 some more: this PR adds a flag to breeze that allows running tests with SQLA2.

After this is merged, it should be possible to run the SQLA2 tests locally with:

breeze testing core-tests --upgrade-sqlalchemy [other options...]

^ 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.

@Copilot Copilot AI review requested due to automatic review settings June 30, 2025 11:22
@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 30, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new flag, upgrade_sqlalchemy, to allow running tests with SQLA2 via breeze.

  • Adds a new parameter in ShellParams and propagates the flag through various testing and developer commands.
  • Updates command configurations and option definitions to support the new flag.

Reviewed Changes

Copilot reviewed 9 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
dev/breeze/src/airflow_breeze/params/shell_params.py Introduced the upgrade_sqlalchemy parameter and added it to environment variable setup.
dev/breeze/src/airflow_breeze/commands/testing_commands_config.py Added the new command-line option for SQLAlchemy upgrade in testing commands.
dev/breeze/src/airflow_breeze/commands/testing_commands.py Propagated the upgrade_sqlalchemy flag through test command functions.
dev/breeze/src/airflow_breeze/commands/developer_commands_config.py Included the upgrade_sqlalchemy option for developer commands configuration.
dev/breeze/src/airflow_breeze/commands/developer_commands.py Integrated the new flag into shell and run command flows for developers.
dev/breeze/src/airflow_breeze/commands/common_options.py Defined the click option for upgrade_sqlalchemy with a help description.
dev/breeze/doc/images/output_testing_providers-tests.txt Updated output hash for providers test results.
dev/breeze/doc/images/output_testing_core-tests.txt Updated output hash for core test results.
dev/breeze/doc/images/output_shell.txt Updated output hash for shell command results.

+ Fix some existing shellcheck violations
@Dev-iL Dev-iL force-pushed the Dev-iL/2506/sqla-v2-breeze branch from 4cb162a to a9e6077 Compare June 30, 2025 11:41
@potiuk potiuk merged commit 57dc55c into apache:main Jun 30, 2025
101 checks passed
Copy link

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

Status Branch Result
v3-0-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 57dc55c v3-0-test

This should apply the commit to the v3-0-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 Jun 30, 2025
+ Fix some existing shellcheck violations

(cherry picked from commit 57dc55c)
potiuk added a commit to potiuk/airflow that referenced this pull request Jun 30, 2025
+ Fix some existing shellcheck violations
(cherry picked from commit 57dc55c)

Co-authored-by: Dev-iL <[email protected]>
potiuk added a commit to potiuk/airflow that referenced this pull request Jun 30, 2025
+ Fix some existing shellcheck violations
(cherry picked from commit 57dc55c)

Co-authored-by: Dev-iL <[email protected]>
potiuk added a commit that referenced this pull request Jun 30, 2025
+ Fix some existing shellcheck violations
(cherry picked from commit 57dc55c)

Co-authored-by: Dev-iL <[email protected]>
@jscheffl
Copy link
Contributor

cool!

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants