-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
[Package Genration takes one hour when profiles are involved] #1022
Comments
Hi @sachin-in! Thanks for raising this issue and thanks for contributing in making this project better! Do you reproduce this performance issue on your laptop (with the same command, same version of and plugins, and the same repository) ? |
HI @scolladon, we are getting this in our jenkins pipeline and laptop both, command and versions are same, OS differs, jenkins is hosted on Azure cloud with linux OS |
It takes ~1h also on your laptop ? Profiles must be huged... Could you share one of those huge profiles ? and also an example of diff to consider ? |
This is the Diff Attached the admin profile here, most profiles are similar in size. I cannot provide the repo access because it's a corp repo |
Thank you very much ! Wow, 82,000 lines — that’s massive! No wonder my IDE is struggling. With a file of this size, it’s expected that sgd might take longer to process. Let me quickly explain why:
Given this extensive process, the performance hit is understandable. That said, here are some suggestions that might help with this situation:
Let us know how you’d like to proceed or if you need further clarification. Thanks again for sharing this use case—it really helps us improve! |
We are having same issue as other have mentioned. Our org has big profiles so every diff lasts like15 mins. |
Sorry to hear that @cvidalbucher Could you help by providing either a reproduction repository or by prodividing a performance dump please ? cf my previous comment |
Cant disclose that information but just like others i have profiles with more than 30000 lines of code. |
Issue verification check:
What is the problem?
---Package generation takes one hour when profiles are involved
We have two salesforce prod orgs, their respective repos are hosted on two different platforms one is on gitlab and other is on azure devops, now the gitlab repo works fine but when we have any changes in profiles from azure devops repo then it takes 1 hour for the sgd plugin to create the package (one hour for all profiles, less time depends on number of profiles).What is the parameter and the value you used with it?
Ex: $ sfdx sgd:source:delta --to HEAD --from HEAD^ --output changes/What is the expected result?
Expected results are good, it's just the times takes in generating said results that's the issuePackage is generated in validate code stage
What is the actual result?
---Same as expectedSteps to reproduce
Cannot share source code or repo URL here
Execution context
Operating System: … Windows 11
npm version: …10.8.2
node version: …22.5.0
git version: …2.45.2.windows.1
sf version: …2.74.6
sgd plugin version: …6.3.0
More information (optional)
The text was updated successfully, but these errors were encountered: