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

bad setuptools installation in actions/setup-python@v5 #842

Open
2 of 13 tasks
charles-cooper opened this issue Apr 7, 2024 · 3 comments
Open
2 of 13 tasks

bad setuptools installation in actions/setup-python@v5 #842

charles-cooper opened this issue Apr 7, 2024 · 3 comments

Comments

@charles-cooper
Copy link

charles-cooper commented Apr 7, 2024

Description

since roughly friday (apr 5), test runs using actions/setup-python@v5 have been erroring out, apparently randomly, with

    import pkg_resources
SyntaxError: source code string cannot contain null bytes

here is an example of a failing run: https://github.com/vyperlang/vyper/actions/runs/8583718233/job/23523259737#step:7:85

prior to friday, with no code or workflow changes, the same CI encountered no such errors, here is an example: https://github.com/vyperlang/vyper/actions/runs/8561560272/job/23463040450.

i suspect the issue is a bad python binary or builtins image. force reinstalling setuptools appears to fix the issue, as here: https://github.com/vyperlang/vyper/actions/runs/8588960022

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

https://github.com/vyperlang/vyper/actions/runs/8583718233/job/23523259737#step:7:85

2024-04-06T20:48:27.8925830Z Current runner version: '2.315.0'
2024-04-06T20:48:27.8949086Z ##[group]Operating System
2024-04-06T20:48:27.8949821Z Ubuntu
2024-04-06T20:48:27.8950200Z 22.04.4
2024-04-06T20:48:27.8950495Z LTS
2024-04-06T20:48:27.8950894Z ##[endgroup]
2024-04-06T20:48:27.8951288Z ##[group]Runner Image
2024-04-06T20:48:27.8951682Z Image: ubuntu-22.04
2024-04-06T20:48:27.8952186Z Version: 20240403.1.0
2024-04-06T20:48:27.8953230Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240403.1/images/ubuntu/Ubuntu2204-Readme.md
2024-04-06T20:48:27.8954657Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240403.1
2024-04-06T20:48:27.8955596Z ##[endgroup]

Is it regression?

yes

Expected behavior

see description

Actual behavior

see description

Repro steps

the issue is flaky, and i have not been able to reliably reproduce it. please see the logs of the failing test run for example failing cases. (i am happy to provide links to more failing jobs, i have about a dozen since friday).

@charles-cooper charles-cooper changed the title bad setuptools installation in actions/setup-python bad setuptools installation in actions/setup-python@v5 Apr 7, 2024
@mikhailkoliada mikhailkoliada transferred this issue from actions/runner-images Apr 7, 2024
@mikhailkoliada
Copy link
Member

Moving tp setup-python as we do not install/manage setuptools on the images

@aparnajyothi-y
Copy link

Hello @charles-cooper, Thank you for creating this issue and we will look into it :)

@charles-cooper
Copy link
Author

note as of yesterday or so i am no longer seeing the issue. i noticed a new image in the logs --

2024-04-09T20:26:08.1175581Z Current runner version: '2.315.0'
2024-04-09T20:26:08.1199165Z ##[group]Operating System
2024-04-09T20:26:08.1199794Z Ubuntu
2024-04-09T20:26:08.1200094Z 22.04.4
2024-04-09T20:26:08.1200541Z LTS
2024-04-09T20:26:08.1200869Z ##[endgroup]
2024-04-09T20:26:08.1201202Z ##[group]Runner Image
2024-04-09T20:26:08.1201710Z Image: ubuntu-22.04
2024-04-09T20:26:08.1202105Z Version: 20240407.1.0
2024-04-09T20:26:08.1203047Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240407.1/images/ubuntu/Ubuntu2204-Readme.md
2024-04-09T20:26:08.1204572Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240407.1
2024-04-09T20:26:08.1205449Z ##[endgroup]
2024-04-09T20:26:08.1205804Z ##[group]Runner Image Provisioner
2024-04-09T20:26:08.1206373Z 2.0.361.1
2024-04-09T20:26:08.1206708Z ##[endgroup]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants