-
Notifications
You must be signed in to change notification settings - Fork 172
Wr/fix heap oom large custom labels @W-21251439@ #1795
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
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3c23922
fix: deduplicate children in recomposition finalizer to prevent OOM @…
WillieRuemmele 8595146
fix: parse parent XML once in NonDecompositionFinalizer instead of pe…
WillieRuemmele 42f39a8
chore: bump deps
WillieRuemmele b5cf5ab
test: add snapshot test for merging non-identical CustomLabels packages
WillieRuemmele 2033071
chore: merge main, resolve conflicts
WillieRuemmele d05fbca
refactor: address PR feedback — restore Promise.all, add GC comment
WillieRuemmele 8d13356
Merge remote-tracking branch 'origin/main' into wr/fixHeapOomLargeCus…
WillieRuemmele c4330c1
chore: bump @salesforce/core to ^8.32.4
WillieRuemmele 60f1b00
test: add script to generate large CustomLabels project for OOM QA
WillieRuemmele a037c95
fix: keep sequential iteration in recompositionFinalizer to bound memory
WillieRuemmele d0aff17
Revert "test: add script to generate large CustomLabels project for O…
WillieRuemmele 16734a8
test: add deduplication test for multi-package duplicate CustomLabels
WillieRuemmele File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
...merged/__snapshots__/verify-source-convert.expected/testOutput/labels/CustomLabels.labels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <CustomLabels xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
| <labels> | ||
| <fullName>OnlyInPkg1_Alpha</fullName> | ||
| <language>en_US</language> | ||
| <protected>true</protected> | ||
| <shortDescription>Alpha label only in pkg1</shortDescription> | ||
| <value>alpha value from pkg1</value> | ||
| </labels> | ||
| <labels> | ||
| <fullName>OnlyInPkg1_Beta</fullName> | ||
| <language>en_US</language> | ||
| <protected>true</protected> | ||
| <shortDescription>Beta label only in pkg1</shortDescription> | ||
| <value>beta value from pkg1</value> | ||
| </labels> | ||
| <labels> | ||
| <fullName>OnlyInPkg2_Delta</fullName> | ||
| <categories>pkg2only</categories> | ||
| <language>en_US</language> | ||
| <protected>true</protected> | ||
| <shortDescription>Delta label only in pkg2</shortDescription> | ||
| <value>delta value from pkg2</value> | ||
| </labels> | ||
| <labels> | ||
| <fullName>OnlyInPkg2_Gamma</fullName> | ||
| <language>en_US</language> | ||
| <protected>true</protected> | ||
| <shortDescription>Gamma label only in pkg2</shortDescription> | ||
| <value>gamma value from pkg2</value> | ||
| </labels> | ||
| <labels> | ||
| <fullName>OnlyInPkg3_Epsilon</fullName> | ||
| <language>en_US</language> | ||
| <protected>true</protected> | ||
| <shortDescription>Epsilon label only in pkg3</shortDescription> | ||
| <value>epsilon value from pkg3</value> | ||
| </labels> | ||
| <labels> | ||
| <fullName>OnlyInPkg3_Zeta</fullName> | ||
| <categories>pkg3only</categories> | ||
| <language>en_US</language> | ||
| <protected>true</protected> | ||
| <shortDescription>Zeta label only in pkg3</shortDescription> | ||
| <value>zeta value from pkg3</value> | ||
| </labels> | ||
| <labels> | ||
| <fullName>SharedLabel_One</fullName> | ||
| <categories>shared</categories> | ||
| <language>en_US</language> | ||
| <protected>true</protected> | ||
| <shortDescription>Shared label one</shortDescription> | ||
| <value>shared one value</value> | ||
| </labels> | ||
| <labels> | ||
| <fullName>SharedLabel_Two</fullName> | ||
| <categories>shared</categories> | ||
| <language>en_US</language> | ||
| <protected>true</protected> | ||
| <shortDescription>Shared label two</shortDescription> | ||
| <value>shared two value</value> | ||
| </labels> | ||
| </CustomLabels> |
19 changes: 19 additions & 0 deletions
19
...s/customLabels-merged/__snapshots__/verify-source-convert.expected/testOutput/package.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <Package xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
| <types> | ||
| <members>OnlyInPkg1_Alpha</members> | ||
| <members>OnlyInPkg1_Beta</members> | ||
| <members>OnlyInPkg2_Delta</members> | ||
| <members>OnlyInPkg2_Gamma</members> | ||
| <members>OnlyInPkg3_Epsilon</members> | ||
| <members>OnlyInPkg3_Zeta</members> | ||
| <members>SharedLabel_One</members> | ||
| <members>SharedLabel_Two</members> | ||
| <name>CustomLabel</name> | ||
| </types> | ||
| <types> | ||
| <members>CustomLabels</members> | ||
| <name>CustomLabels</name> | ||
| </types> | ||
| <version>59.0</version> | ||
| </Package> |
17 changes: 17 additions & 0 deletions
17
...ampleProjects/customLabels-merged/originalSource/pkg1/labels/CustomLabels.labels-meta.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <CustomLabels xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
| <labels> | ||
| <fullName>OnlyInPkg1_Alpha</fullName> | ||
| <language>en_US</language> | ||
| <protected>true</protected> | ||
| <shortDescription>Alpha label only in pkg1</shortDescription> | ||
| <value>alpha value from pkg1</value> | ||
| </labels> | ||
| <labels> | ||
| <fullName>OnlyInPkg1_Beta</fullName> | ||
| <language>en_US</language> | ||
| <protected>true</protected> | ||
| <shortDescription>Beta label only in pkg1</shortDescription> | ||
| <value>beta value from pkg1</value> | ||
| </labels> | ||
| </CustomLabels> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this explicitly need to be set to undefined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two reasons: (1) guards against Node calling
_read()more than once — the early-return at the top checks for undefined, and (2) releases the reference so GC can reclaim large JSON trees after they're serialized. Added a comment explaining this.