Skip to content

ci: Travis: disable cache by default, only for pre-commit #4881

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

Merged
merged 1 commit into from
Mar 14, 2019

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Mar 4, 2019

For pip the usual http caching should be good enough.
This keeps the cache for pre-commit with the linting env for now.

Ref: #3502

Timings:

  1. Ran for 28 min 24 sec, Total time 1 hr 15 min 36 sec
  2. Ran for 25 min 3 sec, Total time 1 hr 9 min 18 sec

@codecov
Copy link

codecov bot commented Mar 4, 2019

Codecov Report

Merging #4881 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4881      +/-   ##
=========================================
+ Coverage   95.67%   95.7%   +0.02%     
=========================================
  Files         113     113              
  Lines       25172   25172              
  Branches     2498    2498              
=========================================
+ Hits        24083   24090       +7     
+ Misses        767     764       -3     
+ Partials      322     318       -4
Impacted Files Coverage Δ
src/_pytest/capture.py 94.15% <0%> (+0.44%) ⬆️
src/_pytest/terminal.py 91.74% <0%> (+0.82%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 236bada...a70c1ca. Read the comment docs.

For pip the usual http caching should be good enough.
This keeps the cache for pre-commit with the linting env for now.

Ref: pytest-dev#3502
Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise looks good

directories:
- $HOME/.cache/pip
- $HOME/.cache/pre-commit
cache: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the default iirc

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine if we want to keep it, but I suggest to add a comment like the one you put on the description of this PR for reference. 👍

Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

directories:
- $HOME/.cache/pip
- $HOME/.cache/pre-commit
cache: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine if we want to keep it, but I suggest to add a comment like the one you put on the description of this PR for reference. 👍

@nicoddemus nicoddemus merged commit 612c378 into pytest-dev:master Mar 14, 2019
@blueyed
Copy link
Contributor Author

blueyed commented Mar 14, 2019

@nicoddemus
I was about to push an additional comment, but fine.. :)

@blueyed blueyed deleted the travis-cache branch March 14, 2019 15:40
@blueyed
Copy link
Contributor Author

blueyed commented Mar 14, 2019

diff --git c/.travis.yml i/.travis.yml
index 750f93f8..ae90401d 100644
--- c/.travis.yml
+++ i/.travis.yml
@@ -147,4 +147,5 @@ notifications:
     skip_join: true
   email:
     - [email protected]
+# For pip the usual http caching should be good enough, cache is used for pre-commit.
 cache: false

@nicoddemus
Copy link
Member

Oops sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants