Skip to content

Conversation

paul-soporan
Copy link
Member

@paul-soporan paul-soporan commented Sep 18, 2022

What's the problem this PR addresses?

Pnpm uses a request metadata cache so that it doesn't have to hit the network when rebuilding the lockfile unless the data is stale, but we don't clear it in the relevant benchmarks.

How did you fix it?

Removed ~/.cache/pnpm in:

  • full-cold, since this step needs to be fully cold
  • cache-only, since it's supposed to test how much it takes to resolve all packages (without caching) Actually, we want cache-only to test real-life conditions so metadata caching is fair game.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

arcanis
arcanis previously approved these changes Sep 18, 2022
Copy link
Member

@merceyz merceyz left a comment

Choose a reason for hiding this comment

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

Looks like npm does something similar in ~/.npm/_cacache, could you remove that as well?

@merceyz merceyz dismissed their stale review September 18, 2022 18:17

npm cache clean --force already clears it

@paul-soporan paul-soporan changed the title chore(bench): remove pnpm metadata cache in full-cold and cache-only chore(bench): remove pnpm metadata cache in full-cold Sep 18, 2022
@paul-soporan paul-soporan merged commit ebc9ede into master Sep 18, 2022
@paul-soporan paul-soporan deleted the paul/chore/pnpm-bench-remove-metadata-cache branch September 18, 2022 18:45
merceyz pushed a commit that referenced this pull request Oct 21, 2023
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.

3 participants