question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hello,

This is a general question which might be helpful to write up in the README. What exactly determines:

  1. When the cache can be stored?
  2. When the cache can be used?

For my current workflow (https://github.com/spinicist/QUIT/actions), building vcpkg and dependencies takes >30 minutes, whereas building my project takes only 5. Hence caching is a real game-changer. I have observed the following:

  1. The cache is only stored at the end of the run in the “post vcpkg” phase, if every phase was successful. This was very frustrating for my build, because for every typo in my .yml file I had to wait 30 minutes for the dependencies to build. Would it be possible to store the cache directly after finishing a successful vcpkg+dependencies build instead?
  2. I kicked off a build with a tag, which will create a Release with my setup. I did this via (approximately) git commit -m "A release build"; git tag a_tag; git push && git push origin a_tag. This starts two builds almost simultaneously in Github Actions, one for the first push and one for the tag. The first build correctly picked up the cached vcpkg information, but the tag did not. Why did the tag build not pick up the cache?

Thanks again for providing these actions, they’re very useful.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
spinicistcommented, Nov 24, 2020

Hello - finally had a chance to try. Sadly it looks like it doesn’t play well with Manifest mode? Since originally raising this I’ve swapped to manifest mode and it looks like all my dependencies are being rebuilt at the configure. Will continue discussion over on #53

0reactions
spinicistcommented, Nov 18, 2020

Other projects are getting in the way of trying this - I will let you know when I finally get a chance but I’m sure it will be good!

Read more comments on GitHub >

github_iconTop Results From Across the Web

CloudFront::Distribution CacheBehavior - AWS CloudFormation
A complex type that describes how CloudFront processes requests. You must create at least as many cache behaviors (including the default cache behavior)...
Read more >
Cache Behavior - an overview | ScienceDirect Topics
Cache profiling: The goal is to gather information about the cache behavior of a system or an application. Unless the application runs on...
Read more >
Cache behavior - Cloudflare Docs
Cache behavior. In this page, we document how Cloudflare's cache system behaves in interaction with HEAD requests and with Set-Cookie ...
Read more >
CloudFront Dynamic Caching — Multiple Cache Behaviors
So we have to build a strategy to accommodate both. We will do an experiment with the help of multiple Cache Behaviors. A...
Read more >
Caching Behavior of Web Browsers - F5 Networks
In order for content to be served from the cache, the URL has to be an exact match to the content in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found