actions / runner-images

GitHub Actions runner images
MIT License
9.17k stars 2.84k forks source link

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

Closed fjwillemsen closed 1 day ago

fjwillemsen commented 3 weeks ago

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

Runner images affected

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 commented 3 weeks ago

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

HarithaVattikuti commented 3 weeks ago

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.

matteius commented 3 weeks ago

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

cclauss commented 2 weeks ago

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
felixdittrich92 commented 1 week ago

@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 commented 1 week ago

@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 :))

erik-bershel commented 1 day ago

Hey there! Images rollout finished. :tada: