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 — Dependency caching: small output improvements by mbg · Pull Request #2597 · github/codeql-action

Conversation

@mbg

@mbg mbg commented Nov 12, 2024

Copy link
Copy Markdown
Member

This PR makes two small changes related to dependency caching to improve the Action's output during normal operation:

  • We intercept ReserveCacheError errors when saving caches, since these are expected when a cache already exists for a given cache key. We log a message indicating this instead of propagating the error itself.
  • We allow warnings from tryGetFolderBytes to be suppressed, which would otherwise result in check annotations for a workflow run. This occurs during normal operation, since we try to calculate the cache size for all folders that may need to be cached for a given language, whether they exist or not. If they do not exist, that's not a problem for us.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
mbg added 2 commits November 12, 2024 15:08
@mbg
Handle ReserveCacheError with a nicer message
b0c0aad
@mbg
Allow warnings in tryGetFolderBytes to be suppressed
7bc6222
To avoid confusing run annotations when dependency caching is enabled
@mbg mbg self-assigned this Nov 12, 2024
@mbg
mbg requested a review from a team as a code owner November 12, 2024 15:20
aeisenberg
aeisenberg approved these changes Nov 12, 2024
View reviewed changes

@aeisenberg aeisenberg left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mbg
mbg merged commit 3ab67a2 into main Nov 14, 2024
@mbg
mbg deleted the mbg/caching/output-improvements branch November 14, 2024 11:16
This was referenced Nov 14, 2024
Merge main into releases/v3 #2605
Merged
Merge releases/v3 into releases/v2 #2607
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@aeisenberg aeisenberg aeisenberg approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@mbg mbg

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@mbg @aeisenberg
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.
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.