-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Problem with config cache of WASI #118039
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
Comments
The error is:
The problem is the config.cache doesn't match the new Python patch version (provided by actions/setup-python). It's failing at: cpython/.github/workflows/reusable-wasi.yml Lines 54 to 55 in 0a0756c
The previous step is restoring the cache from GitHub's actions/cache: cpython/.github/workflows/reusable-wasi.yml Lines 49 to 53 in 0a0756c
We can see the We should find a way to get the Python x.y.z version and add it in there as a key. And it would be worth checking other workflows in case they run into something similar. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Can we purge the cache, or do we need it to test potential solutions? My pull request can't be merged until that test suceeds. |
Yeah, as mentioned, it would be good to keep it to test potential solutions. Would you like to look into a fix? Or I can check it next week. |
Now that I think about it, any changes to the key would make the test pass, regardless of whether the issue has been fixed. e.g. key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ inputs.config_hash }}-dummy So, I don't think it's useful to keep the cache.
Yeah, but as previously stated, testing it will be difficult. |
Do you think this would work? -key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ inputs.config_hash }}
+key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ inputs.config_hash }}-${{ env.pythonLocation }} |
Ah, yes.
For example:
Yep, that could do it! Looking at https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#outputs-and-environment-variables there's also things like |
It indeed seems to be working:
|
I'll make a pull request. |
Thanks for the PR! |
Uh oh!
There was an error while loading. Please reload this page.
This workflow on #117855 keeps failing. It asks to delete the cache, which I obviously can't do. How should this be fixed? Prune the cache or update the workflow?
Linked PRs
The text was updated successfully, but these errors were encountered: