actions / actions/toolkit

Cache: Provide a way to suppress cache success messages

Open
#2,222 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Describe the enhancement

Currently, cache always outputs lots of logs for every stored cache entry:

https://github.com/actions/toolkit/blob/2506e78e82fbd2f9e94d63e75f5309118c8de1b1/packages/cache/src/cache.ts#L321-L332

If cache action is wrapped in another action (such as https://github.com/burrunan/gradle-cache-action/issues/139), where cache is invoked lots of times, it can create very verbose output.

Could we add an input parameter that disables those logs?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in packages/cache/src/cache.ts at the linked lines where success messages are emitted, and review how cache is invoked by the surrounding package. Add an input parameter that suppresses those messages when requested, then verify that normal cache behavior remains unchanged and disabled logging is quiet.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.