forcedotcom / salesforcedx-vscode

Salesforce Extensions for VS Code
https://developer.salesforce.com/tools/vscode
BSD 3-Clause "New" or "Revised" License
939 stars 397 forks source link

Running SFDX: "Deploy Source to Org" in VS Code deploying takes too long (15-20 mins) to complete. #5630

Closed Shalini855 closed 3 weeks ago

Shalini855 commented 3 weeks ago

Summary

The customer is facing performance issues on their sandboxes when deploying from VS code. Even a 400 line LWC code takes 15-20 minutes for deployment. Their org(00DSu000000SvL7) instance is USA534S. They need to make multiple deployments in a single day and it takes a very long time, sometimes up to 15 minutes for every deployment. They are facing this issue only for this sandboxes.

Steps To Reproduce:

Select a LWC html and Run the "deploy source to org"

Expected result

Success message for the deployment and the list of deployed components should appear in a second or two

Actual result

Success message takes several minutes to appear. Sometimes the command in progress notificaiton keeps running

Additional information - We have tried downgrade SFDX CLI extension in vscode to a lower recommended version: v57.10.2. But still the same issue Tried disbling below setting as well setup / apex settings / Perform Synchronous Compile on Deploy

Salesforce Extension Version in VS Code: 60.15.0

Salesforce CLI Version: @salesforce/cli/2.36.8 win32-x64 node-v20.11.1

svc-idee-bot commented 3 weeks ago

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

svc-idee-bot commented 3 weeks ago

Hello @Shalini855 :wave: It looks like you didn't provide all the required basic info in your issue.

If you haven't already, please provide the following info: Salesforce Extension Version in VS Code: Salesforce CLI Version: OS and version: VS Code version: Most recent version of the extensions where this was working:

Here's an example of a set of required info that will pass the validation: Salesforce Extension Version in VS Code: 60.13.0 Salesforce CLI Version: @salesforce/cli/2.42.6 darwin-arm64 node-v18.18.2 OS and version: MacOS Sonoma 14.5 VS Code version: 1.89.1 Most recent version of the extensions where this was working: 60.11.0

A few more things to check:

Thank you!