Skip to content

[release/8.0] Associate tagged keys with entries so replacements are not evicted #62247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 7, 2025

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 4, 2025

Backport of #61529 to release/8.0

/cc @sebastienros @profet23

Associate tagged keys with entries so replacements are not evicted

Prevent output caching tags from being lost when updating an existing entry.

Description

If an output cache entry is created with tags and is then replaced, the callback will remove tags which is wrong and would lead to related entries to not be evicted automatically.

Fixes #61524

Customer Impact

Could lead to stale data in cache.

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

Change is limited to how the entries are tracked, such that less tags are removed. This means more things can be evicted from cache eventually, which is safer (more evicted cache entries is not worse).

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

When servicing release/2.1

  • Make necessary changes in eng/PatchConfig.props

@github-actions github-actions bot requested a review from BrennanConroy as a code owner June 4, 2025 18:55
@dotnet-policy-service dotnet-policy-service bot added this to the 8.0.x milestone Jun 4, 2025
@sebastienros sebastienros added the Servicing-consider Shiproom approval is required for the issue label Jun 4, 2025
@wtgodbe wtgodbe added Servicing-approved Shiproom has approved the issue and removed Servicing-consider Shiproom approval is required for the issue labels Jun 6, 2025
@wtgodbe
Copy link
Member

wtgodbe commented Jun 7, 2025

Test failure unrelated

@wtgodbe wtgodbe merged commit 21dfe81 into release/8.0 Jun 7, 2025
21 of 25 checks passed
@wtgodbe wtgodbe deleted the backport/pr-61529-to-release/8.0 branch June 7, 2025 00:05
@dotnet-policy-service dotnet-policy-service bot modified the milestones: 8.0.x, 8.0.18 Jun 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Servicing-approved Shiproom has approved the issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants