Skip to content
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

fix: exclude unstable data from cache fingerprints #18148

Merged
merged 7 commits into from Oct 6, 2022

Conversation

rarkins
Copy link
Collaborator

@rarkins rarkins commented Oct 6, 2022

Changes

Excludes packageRules config from the extract cache fingerprint so that our regular monorepo changes/improvements don't invalidate extract caches every time.

Also uses stable stringify so that ordering is not a problem in future.

Context

Closes #18116

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

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

otherwise LGTM

lib/workers/repository/process/extract-update.spec.ts Outdated Show resolved Hide resolved
lib/workers/repository/process/extract-update.ts Outdated Show resolved Hide resolved
@rarkins rarkins changed the title fix: exclude packageRules from extract cache fingerprint fix: exclude unstable data from cache fingerprints Oct 6, 2022
@rarkins rarkins marked this pull request as draft October 6, 2022 11:53
@rarkins rarkins marked this pull request as ready for review October 6, 2022 11:57
@rarkins rarkins requested a review from viceice October 6, 2022 11:57
lib/util/fingerprint.ts Outdated Show resolved Hide resolved
@rarkins rarkins requested a review from viceice October 6, 2022 13:04
@rarkins rarkins enabled auto-merge (squash) October 6, 2022 13:12
@rarkins rarkins merged commit dbc4d0b into main Oct 6, 2022
@rarkins rarkins deleted the fix/extract-fingerprint-package-rules branch October 6, 2022 13:39
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 32.219.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Preset changes cause unnecessary cache busting
4 participants