adventurous-art-72916
03/02/2017, 8:32 PM~/.cache
wasn't the problem, it happened again on a clean buildwitty-crayon-22786
03/02/2017, 8:34 PM~/.cache
witty-crayon-22786
03/02/2017, 8:34 PMmysterious-action-44812
03/02/2017, 9:22 PM./pants compile ::
)
2) launch an instance using that AMI, do a git pull, and do another compile
3) do another compile on that launched instance
what we’re testing now is when the git pull is a noop, that is AMI has same version of code as latest, then part (2) pants build should be instant. instead we’re seeing a lot of things still run, like ivy resolution, some compilation, webpack, etc. part (3) is always instant, that is once pants runs once on that particular box then another run is quick.
so back to my question, is there something that would change on each instance (for example, every time we launch its a different IP), that would create this problem?witty-crayon-22786
03/02/2017, 9:25 PMwitty-crayon-22786
03/02/2017, 9:26 PMmysterious-action-44812
03/02/2017, 9:26 PMmysterious-action-44812
03/02/2017, 9:26 PMmysterious-action-44812
03/02/2017, 9:26 PMmysterious-action-44812
03/02/2017, 9:26 PM.cache
.pants.d
etc directory already therewitty-crayon-22786
03/02/2017, 9:26 PMwitty-crayon-22786
03/02/2017, 9:27 PMmysterious-action-44812
03/02/2017, 9:27 PMmysterious-action-44812
03/02/2017, 9:28 PMwitty-crayon-22786
03/02/2017, 9:28 PMmysterious-action-44812
03/02/2017, 9:29 PMmysterious-action-44812
03/02/2017, 9:30 PMmysterious-action-44812
03/02/2017, 9:30 PMwitty-crayon-22786
03/02/2017, 9:31 PMmysterious-action-44812
03/02/2017, 9:31 PMwitty-crayon-22786
03/02/2017, 9:31 PMmysterious-action-44812
03/02/2017, 9:31 PMmysterious-action-44812
03/02/2017, 9:32 PMwitty-crayon-22786
03/02/2017, 9:32 PM./pants server --open
and expand a particular run, you can see cache statswitty-crayon-22786
03/02/2017, 9:32 PMmysterious-action-44812
03/02/2017, 9:47 PMwitty-crayon-22786
03/02/2017, 9:47 PMquiet-ice-72984
03/02/2017, 9:49 PM./pants bundle
on a machine, success
2. snap that AMI
3. restore that AMI on a diff machine
4. ./pants bundle
without really touching anything
5. See this:....quiet-ice-72984
03/02/2017, 9:50 PM04:54:50 00:21 [webpack]
04:54:50 00:21 [webpack-resolve]
04:54:50 00:21 [cache] [32m
No cached artifacts for 2 targets.[0m[32m
Invalidated 2 targets.[0m
quiet-ice-72984
03/02/2017, 9:50 PM