-
Notifications
You must be signed in to change notification settings - Fork 544
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
Post Run fails when using "cache: pip" on v5.2.0 #932
Comments
I see this within my own workflows exactly as reported. I used the same pin-to-5.1.1 workaround (but removing the |
Hello @clovisp, |
Hello @clovisp, Thank you for creating this issue once again. This is expected behavior because you are using cache: pip without installing any dependencies. We were able to reproduce the issue on versions 5.2.0, 5.1.1, and 4 without adding the pip installation because pip hasn't cached any packages yet, so the cache directory doesn't exist. The setup-python action sets up a Python environment, but it does not create a pip cache directory by default. The pip cache directory is created when pip installs a package and needs to cache it. We tested the same scenario by adding the pip installation job, and the pip cache file was generated in the /home/runner/.cache/pip location, caching the installed packages. To fix the issue, please consider the following possibilities: If the issue stills continues from your end, Can you please share the workflow runs of v5.1.1 and v5.2.0 to check and assist. Please find the workflow snippet and screenshots for reference.
To fix the issue
|
Thanks @aparnajyothi-y, Here is an example workflow run with the issue: So basically there is a separate Due to the change in 5.2.0, which added the architecture to the cache-key, the "uses: actions/setup-python" step can't find any previous caches. This is because the Debug from the above workflow:
example of a previous key:
Some final comments:
EDIT: Forgot to mention, my solution was to delete the latest separate venv cache, and rerun the failing jobs to execute |
@kamilkrzyskow we use |
Hello @clovisp, @kamilkrzyskow, We have updated the release notes to include details about the architecture addition in the cache key name. Consequently, we are proceeding to close the issue. Please feel free to reach out if you have any concerns or need further clarifications to reopen the issue. |
Description:
The latest release makes the
Post Run actions/setup-python
fail systematically with the error message :We use the following configuration in our workflows:
Forcing the use of previous version
actions/[email protected]
solves the issue.Action version:
5.2.0
Platform:
Runner type:
Tools version:
Python 3.11
Repro steps:
Executing any action with the following step:
Expected behavior:
The post run succeeds
Actual behavior:
The post run fails:
The text was updated successfully, but these errors were encountered: