flat-zoo-31952
11/02/2020, 1:48 PM[python-setup].resolver_http_cache_ttl = 0
set. This is hard to reproduce because it only happens once or so in a given day, usually when i'm not expecting it.
From previous logs, I suspect this is the remote TTL from the server. I'm not sure whether this is a vendored-pip thing, or a pex thing, but I really really don't think the HTTP cache TTL should apply to immutable resources like this. This is important to me because I'm often working with a slowish connection and dealing with opencv
and torch
which are just enormous packages that i really want to avoid downloading as much as possible.jolly-midnight-72759
11/02/2020, 2:05 PMdevpi
, https://www.devpi.net/. I run a local server with an index that passes through to our pypi server. This caches locally all the packages and only downloads to my mac when a new version is added to the server.flat-zoo-31952
11/02/2020, 2:14 PMjolly-midnight-72759
11/02/2020, 2:28 PMflat-zoo-31952
11/02/2020, 2:37 PMwitty-crayon-22786
11/02/2020, 5:51 PM~/.cache/pants/named_caches
⦠so would see if maybe theyāre being cleared?flat-zoo-31952
11/02/2020, 6:06 PMwitty-crayon-22786
11/02/2020, 6:08 PMflat-zoo-31952
11/02/2020, 6:15 PMwitty-crayon-22786
11/02/2020, 6:15 PMflat-zoo-31952
11/02/2020, 6:16 PMconstraints.txt
differently for different goals, if that makes sense?witty-crayon-22786
11/02/2020, 6:17 PM--pex-verbosity
to enable logging in generalflat-zoo-31952
11/02/2020, 6:17 PMwitty-crayon-22786
11/02/2020, 6:18 PMflat-zoo-31952
11/02/2020, 6:20 PMresolver_http_cache_ttl
was addedwitty-crayon-22786
11/02/2020, 7:38 PMflat-zoo-31952
11/02/2020, 7:39 PMwitty-crayon-22786
11/02/2020, 7:39 PM~/.cache/pants/named_caches
contains relevant content, it should re-run quicklyflat-zoo-31952
11/02/2020, 7:40 PMwitty-crayon-22786
11/02/2020, 7:41 PMflat-zoo-31952
11/02/2020, 7:42 PMwitty-crayon-22786
11/02/2020, 7:42 PM$libx
here when we did $y
minutes agoāflat-zoo-31952
11/02/2020, 8:04 PMwitty-crayon-22786
11/02/2020, 8:05 PMflat-zoo-31952
11/02/2020, 8:05 PMwitty-crayon-22786
11/02/2020, 8:07 PMflat-zoo-31952
11/02/2020, 8:09 PMRUN pip install -r requirements.txt
in dockerfiles, so i'll try to keep that in perspective šwitty-crayon-22786
11/02/2020, 8:09 PMflat-zoo-31952
11/02/2020, 8:16 PMwitty-crayon-22786
11/02/2020, 8:30 PMflat-zoo-31952
11/03/2020, 12:38 AMjolly-midnight-72759
11/03/2020, 2:12 AMdev
index with an import of all the wheels and other packages from our company pypi. The root one had
"mirror_url": "<https://pypi.org/simple/>",
"mirror_web_url_fmt": "<https://pypi.org/project/{name}/>",
set up. It was the one that caches everything locally.witty-crayon-22786
11/04/2020, 1:18 AMjolly-midnight-72759
11/04/2020, 1:22 AM./pants devpi start
?witty-crayon-22786
11/04/2020, 1:28 AMCache-Control: max-age
is set to 0⦠which actually disables using that cache. is that intentional? the default in 2.0.0
is one hourjolly-midnight-72759
11/04/2020, 1:30 AMwitty-crayon-22786
11/04/2020, 1:30 AMflat-zoo-31952
11/04/2020, 1:49 AMwitty-crayon-22786
11/04/2020, 2:09 AMflat-zoo-31952
11/04/2020, 2:14 AMwitty-crayon-22786
11/04/2020, 6:44 PMpackage
or run
? or is this during test
?flat-zoo-31952
11/06/2020, 12:27 AMwitty-crayon-22786
11/06/2020, 1:43 AM