Skip to content

mypy CI Caching leading to complications #14013

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

Closed
miketheman opened this issue Jun 23, 2023 · 0 comments
Closed

mypy CI Caching leading to complications #14013

miketheman opened this issue Jun 23, 2023 · 0 comments
Labels
bug 🐛 developer experience Anything that improves the experience for Warehouse devs

Comments

@miketheman
Copy link
Member

A weird failure surfaced during the Lint step in CI:

Run 1: https://github.com/pypi/warehouse/actions/runs/5358896351/jobs/9721824117?pr=14012
Run 2: https://github.com/pypi/warehouse/actions/runs/5358896351/jobs/9721955335#step:7:87

Deleting the Cache and rerunning all jobs succeeded.

Turns out that we made our own cache collision by reusing the same key for the python env and the mypy cache results.

These two are the same cache and should be the same:

key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt', 'requirements/*.txt') }}

key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt', 'requirements/*.txt') }}

The mypy cache should probably have a unique identifier tacked on to the end:

.mypy_cache
key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt', 'requirements/*.txt') }}

@miketheman miketheman added bug 🐛 developer experience Anything that improves the experience for Warehouse devs labels Jun 23, 2023
ewdurbin added a commit that referenced this issue Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 developer experience Anything that improves the experience for Warehouse devs
Projects
None yet
Development

No branches or pull requests

1 participant