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.

Setting doNotCacheOnWorkflowFailure: true disables caching entirely (?)

See original GitHub issue

I use run-vcpkg action from my own compisite action like this: https://github.com/equeim/action-setup-vcpkg-msvc/blob/master/action.yml

There I set doNotCacheOnWorkflowFailure input to true. Then, when job is completed successfully, post action from run-vcpkg says that:

Save vcpkg and its artifacts into GitHub service cache
  Caching is disabled, saving cache is skipped.

AFAIK, it can happen only if doNotCache input is true and it false by default.

There is log when run-vcpkg is invoked:

Run lukka/run-vcpkg@v10
  with:
    vcpkgGitCommitId: dd42206f86a7b9f7747ccb63fa0e36baaab5fa1e
    appendedCacheKey: d817028e1760c31609f9e53637b20f8ddde03229611a26d440364f0eceb7219e
    doNotCacheOnWorkflowFailure: true
    vcpkgDirectory: D:\a\libtremotesf\libtremotesf/vcpkg
    runVcpkgInstall: false
    vcpkgGitURL: https://github.com/microsoft/vcpkg.git
    doNotUpdateVcpkg: false
    doNotCache: false
    vcpkgJsonGlob: **/vcpkg.json
    vcpkgJsonIgnores: ['**/vcpkg/**']
    runVcpkgFormatString: [`install`, `--recurse`, `--clean-after-build`, `--x-install-root`, `$[env.VCPKG_INSTALLED_DIR]`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`]
    useShell: true
    logCollectionRegExps: \s*"(.+CMakeOutput\.log)"\.\s*;\s*"(.+CMakeError\.log)"\.\s*;\s*(.+out\.log)\s*;\s+(.+err\.log)\s*;\s*(.+vcpkg.+\.log)\s*
    jobStatus: success

Could it be related to the fact that I use it from composite action?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
equeimcommented, Jan 30, 2022

Hmm. I took another look at the action code, and it looks like that constructor arguments for VcpkgPostAction class are in the wrong order: https://github.com/lukka/run-vcpkg/blob/45ca959f1f67368916141570f6ab4bd0b86f6620/src/post-action.ts#L26 and https://github.com/lukka/run-vcpkg/blob/45ca959f1f67368916141570f6ab4bd0b86f6620/src/vcpkg-post-action.ts#L14 (doNotCacheOnWorkflowFailure and doNotCache are mixed up).

0reactions
lukkacommented, Jan 31, 2022

@equeim right, it was removed because the detection of the job status in the post action never worked. Please refer to #115 for a similar discussion.

The way it works now is as follows:

  • run-vcpkg succeeded
    • if cache-hit then skip saving cache
    • if cache-miss, then save cache (and if the cache was partially created, it will be saved anyway).
  • run-vcpkg failed or did not execute
    • no cache saved

Opened #128 about solving this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable your browser cache - Web Instinct
Click on the Network tab, then check the box to Disable cache. Disable Cache in Google Chrome Developer Tools. You can then close...
Read more >
Disabling the Write-Behind Caching Setting Does Not Disable ...
To Completely Disable Write-Behind Caching. Right-click My Computer, and then click Properties. Click File System, and then click the Removable Disk tab.
Read more >
Disabling Chrome cache for website development
The Chrome DevTools can disable the cache. Right-click and choose Inspect Element to open the DevTools. Or use one of the following keyboard...
Read more >
What does the DisableBrowserCaching setting actually disable?
I have read all of the docs and I have done a little research on the Cache-Control: no-cache, no-store Pragma: no-cache headers, but...
Read more >
Configure Site Caching - Salesforce Help
To disable caching of an individual publicly available Visualforce page when this setting is enabled, set the page's boolean cache attribute to false...
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