Skip to content

Avoid upgrade-to-newer-dependencies when provider.yaml changes#33082

Merged
potiuk merged 1 commit intoapache:mainfrom
potiuk:no-upgrade-of-dependencies-on-provider-yaml-files
Aug 3, 2023
Merged

Avoid upgrade-to-newer-dependencies when provider.yaml changes#33082
potiuk merged 1 commit intoapache:mainfrom
potiuk:no-upgrade-of-dependencies-on-provider-yaml-files

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Aug 3, 2023

The "upgrade-to-newer-dependencies" has been triggered when provider.yaml changed, but this was completely unnecessary. The real reason for upgrade is only when
generated/provider_dependencies.json changes - because that is what changes dependencies used.

The provider_dependencies.json is automatically updated during pre-commit based on provider.yaml files, so only using it to trigger --upgrade-to-newer-dependencies is enough.


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

The "upgrade-to-newer-dependencies" has been triggered when
provider.yaml changed, but this was completely unnecessary. The
real reason for upgrade is only when
generated/provider_dependencies.json changes - because that is
what changes dependencies used.

The provider_dependencies.json is automatically updated during
pre-commit based on provider.yaml files, so only using it to
trigger --upgrade-to-newer-dependencies is enough.
@potiuk potiuk merged commit 825a818 into apache:main Aug 3, 2023
@potiuk potiuk deleted the no-upgrade-of-dependencies-on-provider-yaml-files branch August 3, 2023 19:17
Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

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

Interesting find. The fix looks good +1

Copy link
Member

@pankajkoti pankajkoti left a comment

Choose a reason for hiding this comment

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

Nice, thank you so much!

ephraimbuddy pushed a commit that referenced this pull request Aug 4, 2023
The "upgrade-to-newer-dependencies" has been triggered when
provider.yaml changed, but this was completely unnecessary. The
real reason for upgrade is only when
generated/provider_dependencies.json changes - because that is
what changes dependencies used.

The provider_dependencies.json is automatically updated during
pre-commit based on provider.yaml files, so only using it to
trigger --upgrade-to-newer-dependencies is enough.

(cherry picked from commit 825a818)
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.

4 participants