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

Update Dataflow internal client test #32471

Merged
merged 4 commits into from
Sep 17, 2024
Merged

Conversation

jrmccluskey
Copy link
Contributor

Fixes a breakage causing the coverage precommit to go red. Updates the test to a later python version to exercise the code


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@@ -998,12 +998,12 @@ def test_interpreter_version_check_passes_with_experiment(self):

@mock.patch(
'apache_beam.runners.dataflow.internal.apiclient.sys.version_info',
(3, 8, 2))
Copy link
Contributor

@tvalentyn tvalentyn Sep 16, 2024

Choose a reason for hiding this comment

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

there is benefit to keep this aligned with the lowest supported version.

Hence question - do we drop Py3.8 support in the upcoming release or the following release? I forgot where we landed on in that conversation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No one really felt strongly either way, which is why this kept moving forward with the testing changes.

I can swing this back to 3.9 no problem

Copy link
Contributor

Choose a reason for hiding this comment

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

reading

_PYTHON_VERSIONS_SUPPORTED_BY_DATAFLOW = ['3.9', '3.10', '3.11', '3.12']
we drop support in Dataflow for python 3.9 in the upcoming release.

Copy link
Contributor

Choose a reason for hiding this comment

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

so if the plan was to "move tests to 3.9 now, but still support Python 3.8 for one more release", then we strayed from that plan

Copy link
Contributor

Choose a reason for hiding this comment

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

this test essentially tests that Python 3.8 is still supported on Dataflow.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If that's actually how we want to go about it then that's fine, but I'm of the opinion that if we're not testing things we're better off moving forward with removing support. I can put 3.8 back on that list for now if that's preferred and we can move this discussion to a later PR actually removing 3.8 support from beam proper

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this file was probably updated too early anyway IMO, best to leave it for the in-package removal

Copy link
Contributor

Choose a reason for hiding this comment

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

If that's actually how we want to go about it then that's fine, but I'm of the opinion that if we're not testing things we're better off moving forward with removing support.

yeah, I am of the same opinion as you; my understanding was that this was a compromise b/w start the cleanup work now and also delay the deprecation for a little longer.

Copy link
Contributor

Assigning reviewers. If you would like to opt out of this review, comment assign to next reviewer:

R: @shunping for label python.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@tvalentyn tvalentyn closed this Sep 17, 2024
@tvalentyn tvalentyn reopened this Sep 17, 2024
@kennknowles
Copy link
Member

Looks like you also need to re-instate this "ignore" comment: bbd09d6#diff-b16eff1945003295256595d8a30c02515ba24aebb2ad7c8bc81ace56ebc3aabeL243

@jrmccluskey
Copy link
Contributor Author

bbd09d6#diff-b16eff1945003295256595d8a30c02515ba24aebb2ad7c8bc81ace56ebc3aabeL243

Fixed in #32475

@jrmccluskey jrmccluskey merged commit ad7d7bc into apache:master Sep 17, 2024
163 of 176 checks passed
Naireen pushed a commit to Naireen/beam that referenced this pull request Sep 26, 2024
* Update Dataflow internal client test

* update to python 3.9

* restore 3.8 to versions list

* restore unit test
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.

3 participants