Skip to content
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

Allow to override concrete --postgres-version/--mysql-version #38133

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Mar 14, 2024

The BACKEND_VERSION env variable is now generic way to override any version of any backend. When you set it before running breeze and when the value maches possible options for given platform, the value of concrete backend version will be overridden from the variable.

This will be helpful to generalize a bit and make reusable test workflow where BACKEND_VERSION will be treated in simiar way in all 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 newsfragments.

@Taragolis
Copy link
Contributor

Hmm, I think now MySQL/Postgres tests is gone 🤔

@potiuk
Copy link
Member Author

potiuk commented Mar 14, 2024

Yep. One more thing to add later today :). But I am close to get rid of 1300 or so lines of CI.yml after that one :)

@potiuk potiuk force-pushed the allow-backend-version-variable-to-override-postgres-mysql branch 2 times, most recently from 84241b4 to 52ded78 Compare March 14, 2024 10:55
@potiuk
Copy link
Member Author

potiuk commented Mar 14, 2024

Much better @Taragolis -> I have also checked (who tests the tests) that it correctly uses the right postgres/mysql version in the tests (POSTGRES_VERSION/MYSQL_VERSION variables are set properly and we have explicit diagnostics message when shell is entered displaying backend + version used.

@potiuk potiuk force-pushed the allow-backend-version-variable-to-override-postgres-mysql branch from 52ded78 to 765f3df Compare March 14, 2024 12:31
@potiuk potiuk added the default versions only When assigned to PR - only default python version is used for CI tests label Mar 14, 2024
@potiuk
Copy link
Member Author

potiuk commented Mar 14, 2024

I also added a bit of documentation explaining the BACKEND_VERSION override behaviour as it was a little magical

@potiuk potiuk requested a review from vincbeck March 14, 2024 13:15
@vincbeck
Copy link
Contributor

I also added a bit of documentation explaining the BACKEND_VERSION override behaviour as it was a little magical

Thanks for doing that, I did not quite understand the PR before reading it

@potiuk potiuk removed the default versions only When assigned to PR - only default python version is used for CI tests label Mar 14, 2024
@potiuk potiuk force-pushed the allow-backend-version-variable-to-override-postgres-mysql branch from 765f3df to 28a7f04 Compare March 14, 2024 14:08
The `BACKEND_VERSION` env variable is now generic way to override
any version of any backend. When you set it before running breeze
and when the value maches possible options for given platform,
the value of concrete backend version will be overridden from the
variable.

This will be helpful to generalize a bit and make reusable test
workflow where `BACKEND_VERSION` will be treated in simiar way
in all tests.
@potiuk potiuk force-pushed the allow-backend-version-variable-to-override-postgres-mysql branch from 28a7f04 to fbc4016 Compare March 14, 2024 16:50
@potiuk potiuk merged commit 1403b14 into apache:main Mar 14, 2024
90 checks passed
@potiuk potiuk deleted the allow-backend-version-variable-to-override-postgres-mysql branch March 14, 2024 18:14
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.

5 participants