CI: Use caches to pass data between jobs #1608
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This one is fiddling with Circle caches, which we persist anyway, to pass data between jobs. Saving to cache seems to be slightly faster than persisting to the workspace, so this:
update_cache
job, which persists, reloads and then caches.The savings of the save/load steps seems to be within the variance of the whole job, so I'm not sure that we'll see much of a speed up (I expect the effect is there, but ~2 minutes in 30-70 minute jobs is not much to brag of. That said, this does eliminate a 7 minute job.
I also experimented with reducing the compression level to 3 and only using 2 threads, and that appears to shave 3-5 minutes off of the save step while not significantly adding to the load step. We can fiddle with this more if there's interest in being systematic.