-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Move tests_common package to devel-common project #47281
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
Conversation
jscheffl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed code, looks good! Just pipeline needs to turn green :-D
On it :) |
0bd4054 to
22326a9
Compare
o-nikolas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of doc suggestions and a question. The code changes look mostly mechanical and overall LGTM
f320253 to
6fd248e
Compare
|
While fixing the remaining issues, I have found that it will be easier, when I incorporate all "devel" dependencies into "tests-common" distribution - this way I could (@ashb -> I think you will be super-happy) of ALL This might be followed by similar |
|
That actualy makes me think if we should not name it |
5973e1f to
b8b14ec
Compare
b8b14ec to
087add7
Compare
|
Renamed the project to |
fa0b97d to
6e23f42
Compare
|
All right, I had to do a bit of custom installation of devel dependencies for the "compatibility" tests - because we are basically removing sources for airflow and task_sdk from those builds and only use the "devel-common" and "tests" and the rest is installed from packages, but I think I finally nailed it :) |
This PR moves all commo tests to a "devel-common" sub-project in Airlfow repo. This project is now part of the airflow's workspace, which means that it is installed by default when `uv sync` is run. The following changes have been implemented: * removed pytest options from providers and moved to common pyproject.toml * devel-common now keeps all the test dependencies that are used by other packages - they are automatically installed when `uv sync` is run. We do not need devel-tests extra any more * providers_src_folder fixture was effectively not used and replaced by __file__ deriving the source of where the appropriate package is imported from. * pytest init options are removed from provider's pyproject.toml because they overwrote the options defined in the main pyproject.toml. Instead --ignore-glob command line is passed to addopts * devel dependencies from task_sdk are removed and devel-common package is added as required dependency as well as standard and common.sql package - both needed to run task_sdk tests. This allows to run tests in task_sdk tests from withing task_sdk package. * all dev dependency group settings for all providers contain the dependent sources thaat allow to treat each provider separately. * all devel and bundle dependencies and deprecated dependencies have been removed complely - the devel dependencies have been incorporated into "devel-common" distribution - so you can install all development dependencies (except docs) by installing `devel-common`. Doc deps will be later extracted to a separate distriubution.
6e23f42 to
0638e15
Compare
jscheffl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the one question - code looks good.
|
wooohoo! |
|
Woohooo :) |
|
Huge 😮 🎉 |
The change apache#47281 introduced ``devel-common`` and simplified hatch_build.py with removal of unneeded bundle extras, but it removed ``all-core`` extra that was actually used in constraint generation. This is a follow-up for it, fixing the problem and restoring ``all-core`` - also it synchronizes documentation and adds newsfragment describing the removal and explaining how users who used ``all`` extra before (for example in their ``CI``) with ``uv pip install --all-extras``.
The change apache#47281 introduced ``devel-common`` and simplified hatch_build.py with removal of unneeded bundle extras, but it removed ``all-core`` extra that was actually used in constraint generation. This is a follow-up for it, fixing the problem and restoring ``all-core`` - also it synchronizes documentation and adds newsfragment describing the removal and explaining how users who used ``all`` extra before (for example in their ``CI``) with ``uv pip install --all-extras``.
The change #47281 introduced ``devel-common`` and simplified hatch_build.py with removal of unneeded bundle extras, but it removed ``all-core`` extra that was actually used in constraint generation. This is a follow-up for it, fixing the problem and restoring ``all-core`` - also it synchronizes documentation and adds newsfragment describing the removal and explaining how users who used ``all`` extra before (for example in their ``CI``) with ``uv pip install --all-extras``.
This PR moves all commo tests to a "devel-common" sub-project in Airlfow repo. This project is now part of the airflow's workspace, which means that it is installed by default when `uv sync` is run. The following changes have been implemented: * removed pytest options from providers and moved to common pyproject.toml * devel-common now keeps all the test dependencies that are used by other packages - they are automatically installed when `uv sync` is run. We do not need devel-tests extra any more * providers_src_folder fixture was effectively not used and replaced by __file__ deriving the source of where the appropriate package is imported from. * pytest init options are removed from provider's pyproject.toml because they overwrote the options defined in the main pyproject.toml. Instead --ignore-glob command line is passed to addopts * devel dependencies from task_sdk are removed and devel-common package is added as required dependency as well as standard and common.sql package - both needed to run task_sdk tests. This allows to run tests in task_sdk tests from withing task_sdk package. * all dev dependency group settings for all providers contain the dependent sources thaat allow to treat each provider separately. * all devel and bundle dependencies and deprecated dependencies have been removed complely - the devel dependencies have been incorporated into "devel-common" distribution - so you can install all development dependencies (except docs) by installing `devel-common`. Doc deps will be later extracted to a separate distriubution.
…7441) The change apache#47281 introduced ``devel-common`` and simplified hatch_build.py with removal of unneeded bundle extras, but it removed ``all-core`` extra that was actually used in constraint generation. This is a follow-up for it, fixing the problem and restoring ``all-core`` - also it synchronizes documentation and adds newsfragment describing the removal and explaining how users who used ``all`` extra before (for example in their ``CI``) with ``uv pip install --all-extras``.
This PR moves all commo tests to a "devel-common" sub-project in Airlfow repo.
This project is now part of the airflow's workspace, which means that it is installed by default when
uv syncis run.The following changes have been implemented:
removed pytest options from providers and moved to common pyproject.toml
devel-common now keeps all the test dependencies that are used by other packages - they are automatically installed when
uv syncis run. We do not need devel-tests extra any moreproviders_src_folder fixture was effectively not used and replaced by file deriving the source of where the appropriate package is imported from.
pytest init options are removed from provider's pyproject.toml because they overwrote the options defined in the main pyproject.toml. Instead --ignore-glob command line is passed to addopts
devel dependencies from task_sdk are removed and devel-common package is added as required dependency as well as standard and common.sql package - both needed to run task_sdk tests. This allows to run tests in task_sdk tests from withing task_sdk package.
all dev dependency group settings for all providers contain the dependent sources thaat allow to treat each provider separately.
all devel and bundle dependencies and deprecated dependencies have
been removed complely - the devel dependencies have been incorporated
into "devel-common" distribution - so you can install all development
dependencies (except docs) by installing
devel-common. Doc depswill be later extracted to a separate distriubution.
^ 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.rstor{issue_number}.significant.rst, in newsfragments.