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

Fixes global cache #5739

Merged
merged 2 commits into from
Sep 15, 2023
Merged

Fixes global cache #5739

merged 2 commits into from
Sep 15, 2023

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Sep 15, 2023

What's the problem this PR addresses?

The cache fix merged in #5730 had a bug that caused the global cache to be skipped when a package had no checksum - which happens when there are no lockfile in the project. This was detected by the perf regression visible on the dashboard:

image

How did you fix it?

I fixed the condition (it was "use the cache if there's a checksum and it's compatible", it should have been "use the cache if there's no checksum, or it's a compatible one") and added tests to avoid further regressions.

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.

xfs.writeJsonSync(ppath.join(temp, Filename.manifest), {
name: `benchmark`,
private: true,
runExit(class extends Command {
Copy link
Member Author

Choose a reason for hiding this comment

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

Added two features here to make benchmarking easier: bench-import <name> will copy the benchmark manifest from one of the presets, and --branch can be used to test the current build against a different branch or commit than just master.

@arcanis arcanis merged commit a8ea928 into master Sep 15, 2023
16 of 17 checks passed
@arcanis arcanis deleted the mael/perf-regression branch September 15, 2023 18:20
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.

1 participant