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

Missing Python versions in macOS 14 / macos-latest #9770

Open
4 of 13 tasks
fjwillemsen opened this issue Apr 24, 2024 · 6 comments
Open
4 of 13 tasks

Missing Python versions in macOS 14 / macos-latest #9770

fjwillemsen opened this issue Apr 24, 2024 · 6 comments
Assignees
Labels
Area: Apple Area: Python awaiting-deployment Code complete; awaiting deployment and/or deployment in progress feature request OS: macOS

Comments

@fjwillemsen
Copy link

fjwillemsen commented Apr 24, 2024

Description

In the new macos-latest as of April 2024, macOS 14, there are only 2 Python versions: 3.11 and 3.12.
According to the readme, each image should have the "5 most popular major.minor versions" for Python.
The previous macos-latest, macOS 12, had this with Python versions 3.7, 3.8, 3.9, 3.10, 3.11 and 3.12.
The macOS 13 image also has this with Python versions 3.8, 3.9, 3.10, 3.11 and 3.12.
Can Python versions 3.8, 3.9 and 3.10 please be added to the macos-latest image to make sure it is consistent with the readme?

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

20240415.6, https://github.com/KernelTuner/kernel_tuner/actions/runs/8816157330/job/24199664812#step:6:49

Is it regression?

20240412.2, https://github.com/KernelTuner/kernel_tuner/actions/runs/8798111219/job/24144414393

Expected behavior

We expect to see at least Python versions 3.8, 3.9, 3.10, 3.11 and 3.12 under "Available CPython versions" under "Setup Nox", as in this run, where it lists [ '3.10.14', '3.11.9', '3.12.3', '3.7.17', '3.8.18', '3.9.19' ].

Actual behavior

What we instead see is that only Python versions 3.11 and 3.12 are available under "Available CPython versions" under "Setup Nox" as in this run, where it lists [ '3.11.9', '3.12.3' ].

Repro steps

  1. Run with macos-12 or macos-13.
  2. Switch to macos-14 or macos-latest.
@mikhailkoliada
Copy link
Member

Transferring to setup-python, these versions are not available in the action, hence we can not pre-install them at the moment

@mikhailkoliada mikhailkoliada transferred this issue from actions/runner-images Apr 24, 2024
fjwillemsen referenced this issue in KernelTuner/kernel_tuner Apr 24, 2024
As described in [this issue](https://github.com/actions/setup-python/issues/852), the latest macOS GitHub action runner is missing Python dependencies. This temporarily reverts to an older version until this is fixed.
samj1912 referenced this issue in argoproj-labs/hera Apr 25, 2024
**Pull Request Checklist**
- [ ] Fixes #<!--issue number goes here-->
- [ ] Tests added
- [ ] Documentation/examples added
- [ ] [Good commit messages](https://cbea.ms/git-commit/) and/or PR
title

**Description of PR**
https://github.com/actions/setup-python/issues/852
With macos-latest moving from macos-12 to macos-14, there are fewer
available python versions.

This PR pins the previous macos-latest runner to macos-12 and adds
entries for python 3.11 and 3.12 available on macos-14.

Also, it looks like the required status checks need to be updated.

---------

Signed-off-by: crflynn <flynn@simplebet.io>
Signed-off-by: Sambhav Kothari <sambhavs.email@gmail.com>
Co-authored-by: Sambhav Kothari <sambhavs.email@gmail.com>
@HarithaVattikuti
Copy link

We are supporting python 3.8, 3.9, 3.10 versions for macos arm64 now.

Transferring to runner-images as no pending action from our end.

maartenbreddels referenced this issue in maartenbreddels/nbclassic Apr 25, 2024
As of this writing, we had failure due to an osx image update:
 * https://github.com/actions/setup-python/issues/852

And in the past I have seen the same for Ubuntu images.
 * bqplot/bqplot#1588 (comment)
@matteius
Copy link

I am confused what the path forward is for projects like pipenv that test all mac os versions that are not EOL'd.

leycec referenced this issue in beartype/beartype Apr 26, 2024
This commit is the next in a commit chain generalizing the `@beartype`
decorator to support **pseudo-callable wrapper objects** (i.e., objects
defining both the `__call__()` and `__wrapped__` dunder attributes),
en-route to resolving feature request #368 kindly submitted by
@danielward27 (Daniel Ward). Specifically, this commit further explores
the horrifying intricacies of the insane shambolic horror that is the
pseudo-callable C-based object dynamically created and returned by the
third-party `@jax.jit` decorator. Frankly, it's best not to think too
hard about any of this.

Unrelatedly, this commit also temporarily circumvents upstream issue
actions/setup-python#852 by removing macOS as a support platform from
our GitHub Actions-based continuous integration (CI) workflow. It is
sad. (*Surely surly!*)
maartenbreddels referenced this issue in maartenbreddels/nbclassic Apr 26, 2024
As of this writing, we had failure due to an osx image update:
 * https://github.com/actions/setup-python/issues/852

And in the past I have seen the same for Ubuntu images.
 * bqplot/bqplot#1588 (comment)
@cclauss
Copy link

cclauss commented Apr 29, 2024

Workaround:

    strategy:
      fail-fast: false
      matrix:
        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
        os: [ubuntu-latest, macos-latest, windows-latest]
        exclude:  # Python < v3.8 does not support Apple Silicon ARM64.
          - python-version: "3.6"
            os: macos-latest
          - python-version: "3.7"
            os: macos-latest
        include:  # So run those legacy versions on Intel CPUs.
          - python-version: "3.6"
            os: macos-13
          - python-version: "3.7"
            os: macos-13

@benwells benwells transferred this issue from actions/setup-python Apr 30, 2024
njzjz added a commit to njzjz/dpdispatcher that referenced this issue May 1, 2024
xref: actions/runner-images#9770

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
njzjz added a commit to deepmodeling/dpdispatcher that referenced this issue May 1, 2024
xref: actions/runner-images#9770

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
- Updated testing configurations to exclude Python version 3.7 on the
latest macOS for Apple Silicon ARM64 and include it on macOS 13 for
Intel CPUs.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
rayluo added a commit to AzureAD/microsoft-authentication-extensions-for-python that referenced this issue May 2, 2024
KatyBrown added a commit to KatyBrown/plot_phylo that referenced this issue May 3, 2024
@felixdittrich92
Copy link

@mikhailkoliada any update on this ? Looks like after the actions/setup-python fix it requires an release on your end, when could we expect this ? :)

@mikhailkoliada
Copy link
Member

@felixdittrich92 we plan the release by the end of the next week, but it does not require anything, setup-python just downloads an archive for you, we in turn just pre-install them to speed up the process and save customers few seconds, but we are not a blocker in the chain :) (yet, I'd not recommend calling python from hostedtoolcache directly :))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Apple Area: Python awaiting-deployment Code complete; awaiting deployment and/or deployment in progress feature request OS: macOS
Projects
None yet
Development

No branches or pull requests

8 participants