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

Upgrade the dataproc package to 3.0.0 and migrate from v1beta2 to v1 api #18879

Merged
merged 1 commit into from
Oct 21, 2021

Conversation

lwyszomi
Copy link
Contributor

@lwyszomi lwyszomi commented Oct 11, 2021

Related -> #18485

^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.

@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels Oct 11, 2021
@lwyszomi lwyszomi force-pushed the update_dataproc branch 2 times, most recently from 8ee6791 to ab252b4 Compare October 11, 2021 11:26
setup.py Outdated
@@ -302,7 +302,7 @@ def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version
'google-cloud-build>=3.0.0,<4.0.0',
'google-cloud-container>=0.1.1,<2.0.0',
'google-cloud-datacatalog>=3.0.0,<4.0.0',
'google-cloud-dataproc>=2.2.0,<2.6.0',
'google-cloud-dataproc>=3.0.0,<4.0.0',
Copy link
Member

@mik-laj mik-laj Oct 11, 2021

Choose a reason for hiding this comment

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

It looks like a breaking chhange. Can you add a note about it in the changelog for the provider?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mik-laj 👍

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
'google-cloud-dataproc>=3.0.0,<4.0.0',
'google-cloud-dataproc>=2.2.0,<4.0.0',

We don't need to change the lower bound. New API is also available in 2.* series. In this way, we will avoid breaking changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@lwyszomi lwyszomi force-pushed the update_dataproc branch 2 times, most recently from a2cc3dc to ca916ec Compare October 11, 2021 12:19

Breaking changes
~~~~~~~~~~~~~~~~
* ``Migrate Google Cloud Dataproc to the version 3.0.0 (#18879)``
Copy link
Member

@mik-laj mik-laj Oct 11, 2021

Choose a reason for hiding this comment

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

This summary should include a brief summary of what a breaking change is so that you do not need to read the full PR. It should also explain why we decided to introduce it to encourage migration. If there are other documents that describe this change, we should attach the link. See relates notes for v2.0.0 that have a similar case.

Not every library update is a breaking change, but it is here, so it needs some clarification.

Copy link
Member

@mik-laj mik-laj Oct 11, 2021

Choose a reason for hiding this comment

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

I don't know if we need this note at all if we can make this change more user-friendly. See: https://github.com/apache/airflow/pull/18879/files#r726122588

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mik-laj I moved this change to the Feature section in the CHANGELOG and I added better description. Now I think will be more clear for user what was changed.

@github-actions
Copy link

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Oct 11, 2021
@lwyszomi
Copy link
Contributor Author

@mik-laj @potiuk Hey what I should to do with this PR, build everytime failing on the different step with different errors which are not related to my changes. any ideas?

@lwyszomi lwyszomi closed this Oct 20, 2021
@lwyszomi lwyszomi reopened this Oct 20, 2021
7.0.0
.....

Features
Copy link
Member

@mik-laj mik-laj Oct 20, 2021

Choose a reason for hiding this comment

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

In the long discussion above, we established that a note is not needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mik-laj I removed this change

@mik-laj
Copy link
Member

mik-laj commented Oct 20, 2021

@lwyszomi Let's wait until the CI is finished, I will check if we can merge this change, despite the fact that not all tests were successful.

@mik-laj mik-laj merged commit 4fae04a into apache:main Oct 21, 2021
sharon2719 pushed a commit to sharon2719/airflow that referenced this pull request Oct 27, 2021
@potiuk potiuk added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Jan 22, 2022
@potiuk potiuk added this to the Airflow 2.2.4 milestone Jan 22, 2022
potiuk pushed a commit that referenced this pull request Jan 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) full tests needed We need to run full set of tests for this PR to merge provider:google Google (including GCP) related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants