Skip to content

Failure to extract Python archive on new Windows ARM ARM64 Github-hosted runner (Python 3.11 and 3.12) #931

@remyroy

Description

@remyroy

Description:
When running actions/setup-python on the new Windows ARM64 (Windows 11, win11-23h2-ent, 22631.4037.240811) Github-hosted runner, actions/setup-python fails to extract the downloaded Python archive with the following error message:

2024-08-28T19:04:16.9899589Z Version 3.11 was not found in the local cache
2024-08-28T19:04:17.5148737Z Version 3.11 is available for downloading
2024-08-28T19:04:17.5151779Z Download from "https://github.com/actions/python-versions/releases/download/3.11.9-9947079978/python-3.11.9-win32-arm64.zip"
2024-08-28T19:04:18.8356455Z Extract downloaded archive
2024-08-28T19:04:18.8618205Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath 'C:\a\_temp\e96f0212-2cd0-4dfe-96ce-92679ace3471' -DestinationPath 'C:\a\_temp\1b3eec54-24ab-4647-a8ef-a58f3381d6b7' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('C:\a\_temp\e96f0212-2cd0-4dfe-96ce-92679ace3471', 'C:\a\_temp\1b3eec54-24ab-4647-a8ef-a58f3381d6b7', $true) }"
2024-08-28T19:04:20.6119610Z Expand-Archive :  is not a supported archive file format. .zip is the only supported archive file format.
2024-08-28T19:04:20.6121257Z At line:1 char:210
2024-08-28T19:04:20.6122410Z + ...  Ignore)) { Expand-Archive -LiteralPath 'C:\a\_temp\e96f0212-2cd0-4df ...
2024-08-28T19:04:20.6123881Z +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-08-28T19:04:20.6126060Z     + CategoryInfo          : InvalidArgument: (:String) [Expand-Archive], IOException
2024-08-28T19:04:20.6127876Z     + FullyQualifiedErrorId : NotSupportedArchiveFileExtension,Expand-Archive
2024-08-28T19:04:20.6128956Z  
2024-08-28T19:04:20.6415206Z ##[error]The process 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' failed with exit code 1

This is similar for Python 3.11 and Python 3.12.

Full job log can be found on:

From

Action version:
Specify the action version: actions/setup-python@v5 (SHA:39cd14951b08e74b54015e9e001cdefcf80e669f)

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
Python versions 3.11 and 3.12

Repro steps:

  1. Create or have a GitHub organization with Team or above plan
  2. Go into your organization settings, in Actions > Runners
  3. Click the New Runner button and select the New GitHub-hosted runner option.
  4. In the runner Platform, select Windows ARM64
  5. In the runner Image, select Microsoft Windows 11 (Preview)
  6. Give the runner an easy to use name and keep the other options as default or as usable for this test.
  7. Create a workflow similar to this one to use Python 3.11 and/or Python 3.12 on that new GitHub runner running on Windows ARM64.
  8. Observe that actions/setup-python fails to extract the downloaded Python image when the workflow is triggered.

Expected behavior:
When using the official Github-hosted runner with the new Windows ARM64 image and actions/setup-python@v5 in a workflow, it should be able to download, extract and install Python 3.11 and 3.12 correctly to be used in various CI/Build automation processes.

Actual behavior:
When using the official Github-hosted runner with the new Windows ARM64 image and actions/setup-python@v5 in a workflow, it fails to extract and properly install Python 3.11 and 3.12 correctly to be used in various CI/Build automation processes.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy