Skip to content

Conversation

merceyz
Copy link
Member

@merceyz merceyz commented Oct 7, 2022

What's the problem this PR addresses?

Whenever the PnP compatibility patch for TypeScript is updated all versions of TypeScript is re-patched even if nothing changed for that version.

Examples of this happening:

How did you fix it?

Compute the hash from the effects of the patch to avoid the hash changing when the effects of the patch hasn't changed.

Checklist

  • I have read the Contributing Guide.
  • 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.

@merceyz merceyz changed the title perf(patch): compute hash from only the relevant patch sections perf(patch): compute hash from the effects of the patch Oct 7, 2022
@merceyz merceyz force-pushed the merceyz/perf/improve-patch-checksum branch 2 times, most recently from 3bafa04 to cee9d9e Compare October 15, 2022 18:28
@merceyz merceyz marked this pull request as ready for review October 15, 2022 18:29
@merceyz merceyz force-pushed the merceyz/perf/improve-patch-checksum branch from cee9d9e to 1990542 Compare October 18, 2022 21:06
RDIL
RDIL previously approved these changes Oct 26, 2022
Copy link
Member

@RDIL RDIL left a comment

Choose a reason for hiding this comment

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

LGTM, I think this may be worth a regression test though.

@merceyz
Copy link
Member Author

merceyz commented Oct 26, 2022

It would indeed, I'll make this a draft until I've made one.

@merceyz merceyz marked this pull request as draft October 26, 2022 20:33
@merceyz merceyz force-pushed the merceyz/perf/improve-patch-checksum branch from ec3e239 to 331d8ae Compare October 28, 2022 16:07
@merceyz merceyz marked this pull request as ready for review October 28, 2022 16:09
Copy link
Member

@RDIL RDIL left a comment

Choose a reason for hiding this comment

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

LGTM

@RDIL RDIL added the enhancement New feature or request label Oct 28, 2022
@merceyz merceyz merged commit 635257a into master Oct 28, 2022
@merceyz merceyz deleted the merceyz/perf/improve-patch-checksum branch October 28, 2022 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants