actions / setup-python

Set up your GitHub Actions workflow with a specific version of Python
MIT License
1.59k stars 505 forks source link

is python 3.12.4 download assets broken #887

Open zoezhangmattr opened 2 weeks ago

zoezhangmattr commented 2 weeks ago

Description

not sure where to report this issue.

i am trying to build the image locally, using the packages in this repo but failed Downloading package from https://github.com/actions/python-versions/releases/download/3.12.4-9442300799/python-3.12.4-linux-22.04-x64.tar.gz to /tmp/python-3.12.4-linux-22.04-x64.tar.gz gzip: stdin: not in gzip format ==> /usr/bin/tar: Child returned status 1 ==> /usr/bin/tar: Error is not recoverable: exiting now ==> /usr/bin/bash: ./setup.sh: No such file or directory

when i download above gz file, i cant extract it either

Platforms affected

Runner images affected

Image version and build link

not related to public runner

Is it regression?

not sure

Expected behavior

should be able to install

Actual behavior

gzip: stdin: not in gzip format ==> /usr/bin/tar: Child returned status 1 ==> /usr/bin/tar: Error is not recoverable: exiting now ==> /usr/bin/bash: ./setup.sh: No such file or directory

Repro steps

run the packer build locally

mbdevpl commented 2 weeks ago

I think I'm seeing this also on macos-latest (i.e. 14) build:

https://github.com/mbdevpl/version-query/actions/runs/9446754965/job/26017936513?pr=20

  Version 3.12 is available for downloading
  Download from "https://github.com/actions/python-versions/releases/download/3.12.4-9442300799/python-3.12.4-darwin-x64.tar.gz"
  ##[debug]Downloading https://github.com/actions/python-versions/releases/download/3.12.4-9442300799/python-3.12.4-darwin-x64.tar.gz
  ##[debug]Destination /Users/runner/work/_temp/b6272495-2d53-4eb3-a09c-f185890874e7
  ##[debug]set auth
  ##[debug]download complete
  Extract downloaded archive
  ##[debug]Checking tar --version
  ##[debug]bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.12 liblzma/5.4.3 bz2lib/1.0.8
  /usr/bin/tar xz -v -C /Users/runner/work/_temp/a1c4f322-a8a6-450d-b138-22349b8dca54 -f /Users/runner/work/_temp/b6272495-2d53-4eb3-a09c-f185890874e7
  tar: Error opening archive: Unrecognized archive format
  Error: The process '/usr/bin/tar' failed with exit code 1
  ##[debug]Node Action run completed with exit code 1
  ##[debug]Finishing: Run actions/setup-python@v5

I've downloaded that file to my PC, and it's ~80MB but indeed it's not tar.gz -- although I'm not sure what it is.

mikhailkoliada commented 2 weeks ago

transferring to setup-python, it has nothing to do with the image-generation scripts

fr33z3 commented 2 weeks ago

Any news about that issue? My workflows are completely broken

mbdevpl commented 2 weeks ago

I also think this is the root cause: https://github.com/actions/setup-python/issues/886 - and may be fixed there.

Workaround: https://github.com/actions/setup-python/issues/886#issuecomment-2157956036

HarithaVattikuti commented 2 weeks ago

Hello @zoezhangmattr
Thankyou for creating this issue. we are working on the fix and will get back to you sooner.

aparnajyothi-y commented 2 weeks ago

Hello Everyone, we merged the fix for this issue. Please validate from your end and confirm.