Skip to content

Fix up cache clearing#18752

Merged
seanbudd merged 1 commit intomasterfrom
fixCacheClear
Aug 19, 2025
Merged

Fix up cache clearing#18752
seanbudd merged 1 commit intomasterfrom
fixCacheClear

Conversation

@seanbudd
Copy link
Copy Markdown
Member

Fixup of #18751

Uses IDs ratehr than keys to more consistently delete caches

Copilot AI review requested due to automatic review settings August 19, 2025 04:49
@seanbudd seanbudd requested a review from a team as a code owner August 19, 2025 04:49
@seanbudd seanbudd requested a review from SaschaCowley August 19, 2025 04:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes cache clearing functionality by switching from using cache keys to cache IDs for more reliable deletion operations. The change improves consistency in the cache cleanup process by using GitHub's cache API with ID-based deletion instead of key-based deletion.

Key changes:

  • Modified the gh cache list command to retrieve cache IDs instead of keys
  • Inlined the jq filter logic directly into the pipeline instead of using an environment variable
  • Updated the cache deletion to use IDs for more reliable cleanup operations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

shell: bash
run: |
gh cache list --order asc --json key,lastAccessedAt | jq --raw-output '${{ env.jqStr }}' | while read -r cache; do
gh cache list --order asc --json id,lastAccessedAt \
Copy link

Copilot AI Aug 19, 2025

Choose a reason for hiding this comment

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

The PR description contains a typo: 'ratehr' should be 'rather'.

Copilot uses AI. Check for mistakes.
@seanbudd seanbudd merged commit f944e46 into master Aug 19, 2025
4 of 5 checks passed
@seanbudd seanbudd deleted the fixCacheClear branch August 19, 2025 04:49
@github-actions github-actions bot added this to the 2026.1 milestone Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants