-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Use setup-python for cache #7442
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
base: master
Are you sure you want to change the base?
Conversation
I remember avoiding this because of some quirks. But can't recall why exactly.. I'll try to look into this. |
OK, on other repos the cache wasn't working correctly with the old cache action, and setup-python worked first time (I think it's aiohttp-demos which takes about 10 mins extra without caching). |
One common mistake is making checkout prior to invoking cache. Check for that first.
I tried to recall what were the corner cases. And I found two:
|
FTR, the caching works as it is configured today: https://github.com/aio-libs/aiohttp/actions/runs/7688751163/job/20950541567#step:5:25. It doesn't implement those stable ABI-conditional hacks, though. Would be nice to have them here too. |
c1a9e4b
to
ad21bc0
Compare
key: pip-ci-${{ runner.os }}-${{ matrix.pyver }}-${{ matrix.no-extensions }}-${{ hashFiles('requirements/*.txt') }} | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
restore-keys: | | ||
pip-ci-${{ runner.os }}-${{ matrix.pyver }}-${{ matrix.no-extensions }}- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm worried it won't take matrix.no-extensions
into consideration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When it runs I think we can look at the cache key it generates and see if it has no-ext
CodSpeed Performance ReportMerging #7442 will not alter performanceComparing Summary
|
no-extensions isn't considered in the cache key |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #7442 +/- ##
==========================================
+ Coverage 98.65% 98.67% +0.01%
==========================================
Files 117 117
Lines 35893 35893
Branches 4260 4260
==========================================
+ Hits 35410 35417 +7
+ Misses 324 320 -4
+ Partials 159 156 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Is that important, though? Wouldn't the deps be mostly the same in both cases? |
@Dreamsorcerer I finally have the preferred solution to show: aio-libs/frozenlist#622. Let's replicate it instead. |
No description provided.