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

Windows-2019 20220131.1 seems to have broken setup-python #5009

Closed
1 of 7 tasks
jku opened this issue Feb 3, 2022 · 3 comments
Closed
1 of 7 tasks

Windows-2019 20220131.1 seems to have broken setup-python #5009

jku opened this issue Feb 3, 2022 · 3 comments
Assignees
Labels
Area: Python bug report investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Windows

Comments

@jku
Copy link

jku commented Feb 3, 2022

Description

All our windows runs started failing in setup-python just as windows-latest image updated from 20220123.1 to 20220131.1.

setup-python@v2 did not change at that point, our workflows have not changed. This is the relevant workflow part:

      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
          cache: 'pip'
          cache-dependency-path: 'requirements*.txt'

Virtual environments affected

  • Ubuntu 18.04
  • Ubuntu 20.04
  • macOS 10.15
  • macOS 11
  • Windows Server 2016
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

failing build with windows-2019 20220131.1: https://github.com/theupdateframework/python-tuf/runs/5049622576

Is it regression?

successful build with windows-2019 20220123.1 : https://github.com/theupdateframework/python-tuf/runs/5049069425

Expected behavior

No errors during setup-python

Actual behavior

Error: The process 'C:\hostedtoolcache\windows\Python\3.10.1\x64\Scripts\pip.exe' failed with exit code 322122547

Repro steps

  1. Use setup-python in a workflow on windows

sorry, I really don't know what else to put here, although the fact that the failure happens at pip.exe cache dir implies repro may require using setup-pythons "cache" feature (example above).

@dibir-magomedsaygitov
Copy link
Contributor

Hello @jku. Thank you for your report. We will take a look.

@dibir-magomedsaygitov dibir-magomedsaygitov added OS: Windows Area: Python investigate Collect additional information, like space on disk, other tool incompatibilities etc. and removed needs triage labels Feb 3, 2022
jku pushed a commit to jku/python-tuf that referenced this issue Feb 4, 2022
setup-python fails on Windows currently
(actions/runner-images#5009)
Disable caching to workaround the failure.

Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
@jku
Copy link
Author

jku commented Feb 4, 2022

the fact that the failure happens at pip.exe cache dir implies repro may require using setup-pythons "cache" feature (example above).

Confirming this: disabling the pip cache feature in setup-python makes it succeed:

  - name: Set up Python ${{ matrix.python-version }}
    uses: actions/setup-python@v2
    with:
      python-version: ${{ matrix.python-version }}
      # cache: 'pip'
      # cache-dependency-path: 'requirements*.txt'

@dmitry-shibanov
Copy link
Contributor

Hello @jku. Thank you for your report. The issue is related to the issue in the setup-python action.
For now I'm going to close the issue as a duplicate. If you have any question feel free to ping us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Python bug report investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Windows
Projects
None yet
Development

No branches or pull requests

3 participants