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

chore: Upgrade the base runtime version (CPython: 3.11.6 -> 3.12.2) #1994

Merged
merged 13 commits into from
Apr 4, 2024

Conversation

achimnol
Copy link
Member

@achimnol achimnol commented Apr 4, 2024

resolves #1768.

Highlights of the Python 3.12 new features:

... though we will be able to use them for PRs that won't be backported to 23.09.

Changes

  • chore: Upgrade the base runtime version (CPython: 3.11.6 -> 3.12.2)
  • chore(deps): Update krunner-static-gnu (4.1.1 -> 4.2.0)
  • chore(deps): Update krunner-alpine (5.1.0 -> 5.2.0)
  • chore(deps): Upgrade uvloop (0.17 -> 0.19)
  • chore(deps): Remove async-timeout from the krunner's dependencies and upgrade other dependencies to the latests
  • fix(pants-plugin): Fix scie build to use the latest indygreg build

Notice for fellow developers

After checking out the main branch once merged, run:

pyenv install 3.12.2  # you may need to update pyenv as well
# optionally: CONFIGURE_OPTS=--enable-optimizations pyenv install 3.12.2
pants export --resolve=python-default --resolve=python-kernel --resolve=mypy --resolve=ruff --resolve=pytest --resolve=towncrier

and update any editor-specific paths referring the exported virtualenvs, such as .vim/coc-settings.json or local VSCode configurations.
(e.g., dist/export/python/virtualenvs/mypy/3.11.6/bin/mypydist/export/python/virtualenvs/mypy/3.12.2/bin/mypy)

Note

We also need to update tools/pants-plugins/scie/config.py's date version of the indygreg build to let our scie-based executable distributions use the latest versions of each Python major releases, as in e1f7a6d.

Checklist: (if applicable)

@achimnol achimnol added this to the 24.03 milestone Apr 4, 2024
@achimnol achimnol added type:maintenance Maintenance issue. area:upstream Issues with root cause from upstream 3rd parties type:enhance Enhance component, behavior, internals without user-facing features platform:general General platform issues. Most issues are general. labels Apr 4, 2024
@achimnol achimnol self-assigned this Apr 4, 2024
@github-actions github-actions bot added the size:M 30~100 LoC label Apr 4, 2024
@achimnol achimnol added the urgency:3 Must be finished within a certain time frame. label Apr 4, 2024
@github-actions github-actions bot added the comp:client Related to Client component label Apr 4, 2024
@achimnol
Copy link
Member Author

achimnol commented Apr 4, 2024

I'm going to update https://github.com/lablup/backend.ai-krunner-static-gnu/ as well.

@achimnol achimnol added the require:pants-export Dependencies updated. You need to run `pants export --resolve=python-default` to make it working. label Apr 4, 2024
@achimnol
Copy link
Member Author

achimnol commented Apr 4, 2024

Confirmed working of query-mode code execution (backend.ai run -c ...) that involves the new krunner volumes and service ports (ttyd, jupyterlab) using the cr.backend.ai/multiarch/python:3.9-ubuntu20.04 image on linux-aarch64.

@achimnol achimnol enabled auto-merge April 4, 2024 16:54
@achimnol achimnol added this pull request to the merge queue Apr 4, 2024
Merged via the queue into main with commit db5f6ef Apr 4, 2024
24 of 26 checks passed
@achimnol achimnol deleted the chore/upgrade-python-to-3.12.2 branch April 4, 2024 17:04
kyujin-cho pushed a commit that referenced this pull request Apr 4, 2024
@kyujin-cho kyujin-cho mentioned this pull request Apr 5, 2024
2 tasks
@achimnol achimnol mentioned this pull request Apr 8, 2024
9 tasks
@github-actions github-actions bot added the area:infrastructure Infrastructure-related issues label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:infrastructure Infrastructure-related issues area:upstream Issues with root cause from upstream 3rd parties comp:client Related to Client component platform:general General platform issues. Most issues are general. require:pants-export Dependencies updated. You need to run `pants export --resolve=python-default` to make it working. size:L 100~500 LoC type:enhance Enhance component, behavior, internals without user-facing features type:maintenance Maintenance issue. urgency:3 Must be finished within a certain time frame.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Python 3.12
1 participant