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

Move lint, yapf, whitespace and dependency compat tests to from py38 to py39 #31195

Closed
wants to merge 1 commit into from

Conversation

tvalentyn
Copy link
Contributor

@tvalentyn tvalentyn commented May 6, 2024

Changes the python version for linter, yapf, whitespace PostCommit_Python_Dependency.yml and PreCommit_Python_Coverage.yml to use Python 3.9.

part of #31192 to unblock #31185 .


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.

@@ -81,7 +81,7 @@ jobs:
uses: ./.github/actions/setup-environment-action
with:
java-version: 8
python-version: 3.8
python-version: 3.9
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems that GHA runner is not picking up this change, even though this branch is created against the apache repo.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

2024-05-06T19:16:59.5735995Z > Task :sdks:python:test-suites:tox:py39:setupVirtualenv FAILED
2024-05-06T19:16:59.5737272Z sh: 1: python3.9: not found
2024-05-06T19:17:04.4734316Z 
2024-05-06T19:17:04.4736168Z > Task :sdks:python:setupVirtualenv
2024-05-06T19:17:04.7734906Z Requirement already satisfied: pip in /runner/_work/beam/beam/build/gradleenv/1922375555/lib/python3.8/site-packages (23.0.1)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

From https://github.com/apache/beam/actions/runs/8974464687/job/24646903804?pr=31195 : looks like the runner still installs Py38.

Run actions/setup-python@v4
  with:
    python-version: 3.8
    check-latest: false
    token: ***
    update-environment: true
    allow-prereleases: false
  env:
    GRADLE_ENTERPRISE_ACCESS_KEY: ***
    GRADLE_ENTERPRISE_CACHE_USERNAME: ***
    GRADLE_ENTERPRISE_CACHE_PASSWORD: ***
    KUBELET_GCLOUD_CONFIG_PATH: /var/lib/kubelet/pods/44b5be43-a1ff-431b-886f-5083466a6efc/volumes/kubernetes.io~empty-dir/gcloud

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tvalentyn tvalentyn closed this May 9, 2024
@tvalentyn tvalentyn deleted the tvalentyn-gha-py39 branch May 9, 2024 16:33
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.

1 participant