GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Allow optionally testing for `cache-hit` without restoring old cache · Issue #831 · actions/cache

Allow optionally testing for cache-hit without restoring old cache #831

New issue
Copy link
New issue
Copy link
Closed
#1041
Closed
Allow optionally testing for cache-hit without restoring old cache#831
#1041
Copy link
Assignees
tanuj077kotewar
Labels
area:granular-controlIssues related to granular control in saving or restoring cache

Description

@ankith26
ankith26
opened on Jun 22, 2022
Issue body actions

First of all, thanks to the maintainers and contributors who keep this project up, which helps make CI cache handling simple! 🥳

Use case

I have a build matrix with 5 jobs, that need to access (but not write) a common cache.
To update this cache, I have a job that this matrix depends on (that runs before it). This job restores cache and populates cache on a cache miss, so that subsequent jobs can use it.

This works, but there is an unneeded step of restoring cache in my first job, when all I want to do is to just test for a cache miss, rebuild in that case and upload new cache.

Proposal

There should be an input dry-run/test-cache/no-pull/[anything-else-here] (yes naming things is hard😅) that should control whether the cache is pulled initially (should default to yes). Then cache-hit should be set accordingly, and post cache step should run normally

Reacted by Maciej Kwaśniak, Marc Mueller, Ubiratan Soares, Daniel Schuba and Petka Antonov

Activity

  1. github-actions
    assigned
    bishal-pdMSFT
    on Jun 22, 2022
  2. Exelord commented on Aug 15, 2022

    @Exelord
    Exelord
    on Aug 15, 2022
    More actions

    I have exactly the same case. That would be really welcome feature!

  3. bishal-pdMSFT
    added
    area:granular-controlIssues related to granular control in saving or restoring cache
    on Aug 19, 2022
  4. kotewar
    assigned
    tanuj077
    and
    kotewar
    and unassigned
    bishal-pdMSFT
    on Nov 10, 2022
  5. kotewar commented on Dec 27, 2022

    @kotewar
    kotewar
    on Dec 27, 2022
    Contributor
    More actions

    Closing this and tracking the same in #901

  6. kotewar
    closed this as completedon Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kotewar
    kotewar
  • @tanuj077
    tanuj077

Labels

area:granular-controlIssues related to granular control in saving or restoring cache

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.