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

Remove Python 3.8 GitHub Actions Runs #32429

Merged
merged 16 commits into from
Sep 16, 2024
Merged

Remove Python 3.8 GitHub Actions Runs #32429

merged 16 commits into from
Sep 16, 2024

Conversation

jrmccluskey
Copy link
Contributor

@jrmccluskey jrmccluskey commented Sep 11, 2024

Migrates 3.8 actions to 3.9. New workflows were run in #32329, widespread failures are expected on this PR as actions are being run on 3.8 but that python version is not being installed. Does not remove 3.8 support from Beam, that will be in a followup PR.

Part of #31192


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.

Copy link
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@jrmccluskey
Copy link
Contributor Author

R: @damccorm @tvalentyn

Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment assign set of reviewers

@tvalentyn
Copy link
Contributor

LGTM.

You can trigger precommit suites to run off your py38dep fork. For example, I triggered these runs:

beam_PreCommit_PythonLint: https://github.com/apache/beam/actions/runs/10815932208
beam_PreCommit_Python: https://github.com/apache/beam/actions/runs/10815983260

I think the test result will accurately represent what will happen after this PR is merged.

@@ -20,10 +20,10 @@ class PythonTestProperties {
// Indicates all supported Python versions.
// This must be sorted in ascending order.
final static List<String> ALL_SUPPORTED_VERSIONS = [
'3.8',
'3.9',
Copy link
Contributor

Choose a reason for hiding this comment

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

is this file still being used given that we don't use Jenkins?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I started to update the jenkins files and stopped once I realized what they were, it's worth doing some cleanup here eventually

@@ -271,7 +271,7 @@ commands =
bash {toxinidir}/scripts/pytest_validates_runner.sh {envname} {toxinidir}/apache_beam/runners/portability/spark_runner_test.py {posargs}


[testenv:py{38,39}-pyarrow-{3,9,10,11,12,13,14,15,16}]
[testenv:py{39,310}-pyarrow-{3,9,10,11,12,13,14,15,16}]
Copy link
Contributor

@tvalentyn tvalentyn Sep 11, 2024

Choose a reason for hiding this comment

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

keeping just 39 is also fine here, since 310 is not used anywhere

@jrmccluskey
Copy link
Contributor Author

LGTM.

You can trigger precommit suites to run off your py38dep fork. For example, I triggered these runs:

beam_PreCommit_PythonLint: https://github.com/apache/beam/actions/runs/10815932208 beam_PreCommit_Python: https://github.com/apache/beam/actions/runs/10815983260

I think the test result will accurately represent what will happen after this PR is merged.

I did kick off some of those manually but didn't grab the run logs, we were green on the precommits I ran.

@jrmccluskey
Copy link
Contributor Author

Linting failed, unhappy with something in yaml IO. I'm re-running to confirm and then I'll fix if needed. I think the game plan here would be to merge on Monday so there aren't any breakages over the weekend?

@tvalentyn
Copy link
Contributor

SGTM

@jrmccluskey
Copy link
Contributor Author

Okay the linting failure is a yaml warning that I had already disabled previously, the syntax for disabling that check may be different but it's an easy fix once we're merged. Just need an approval to move forward now.

@jrmccluskey jrmccluskey merged commit bbd09d6 into master Sep 16, 2024
105 of 126 checks passed
@Abacn Abacn deleted the py38dep branch October 2, 2024 17:14
@Abacn
Copy link
Contributor

Abacn commented Oct 2, 2024

this may have caused beam_LoadTests_Python_Combine_Flink_Batch failing. For some reason, I still see --environment_config=gcr.io/apache-beam-testing/beam-sdk/beam_python3.8_sdk:latest

reeba212 pushed a commit to reeba212/beam that referenced this pull request Dec 4, 2024
* [WIP] Remove Python 3.8 targets from Actions

* revert changes to 3.9 build.gradle

* More gradle cleanup

* Add posargs

* Update local-env-setup.sh

* Fix default env python version

* More places to update python version refs

* mypy/linting fixes

* yapf

* Update other locations

* update more files

* update standard_external_transforms.yaml

* update test case that fails on 3.8 -> 3.9
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