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: only read multiple custom labels files once during conversion #1368

Merged
merged 6 commits into from
Jul 16, 2024

Conversation

shetzel
Copy link
Contributor

@shetzel shetzel commented Jul 15, 2024

When multiple custom labels files are in a project, only read them once during conversion. There was a bug where the first custom labels file found was read once but any others that existed in the project were read every time a child CustomLabel was encountered. This would result in out of memory errors when that 2nd or 3rd labels file contained thousands of labels.

forcedotcom/cli#2939
@W-16096068@

@shetzel shetzel requested a review from a team as a code owner July 15, 2024 21:36
@mshanemc
Copy link
Contributor

QA:

✅ works as expected on customer repro (using npsp)

trying to break stuff
✅ empty custom labels file in apex-common
✅ all custom labels files are empty

@mshanemc mshanemc merged commit d5606ba into main Jul 16, 2024
71 checks passed
@mshanemc mshanemc deleted the sh/fix-convert-oom branch July 16, 2024 13:44
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