-
Notifications
You must be signed in to change notification settings - Fork 78
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
Increased reliability on poor network connections/interruptions #529
Comments
Same issue trying to push a deployment to production I have to 'terminate batch' (ctrl +c) to get my command line responsive again.
To work around the issue I go find my deployment details on the deployment status page by jobID. |
Updated the OP with this! Saves frustration when you need it, but I wasn't aware of the feature at the time, and the workflow is still very non-ideal. |
Aye, its something I found by accident. Perhaps a feature gap of SFDX is we can't do a friendly name on our deployments so I'm having to populate job IDs in our records since we do a mix of change sets (Which do allow for user entry/names). That's how I found the job ID shows in deployment history. |
Such issue is happening also on our CI pipelines when deploying to scratch orgs sample command: and sample output:
another sample:
after such error the process never completes. It is happening roughy estimate 10% of all deployments. |
Is your feature request related to a problem? Please describe.
When network connection is interrupted, pushing to a scratch org fails and the only recourse is pushing again (5+ minutes each failure). On large pushes, this is incredibly frustrating, and I expect it to be frustrating for anyone on a poor internet connection.
In my case I am working on a Dell XPS running Windows at home - I am both far from the router and working on a Dell XPS (which I wouldn't say is reliable by any measure!). Probably applies to anyone working in areas with less internet infra or working from public WiFi.
What are you trying to do
Push to a scratch org
Describe the solution you'd like
In case of network interruption, the metadata API/sfdx tooling should be more resilient, retrying and resuming deployment without requiring a full push.
Describe alternatives you've considered
/edit:
Non-ideal Work around: on the deployment details page you can check the status of the deployment. It may actually succeed but you have no way to get that info from the CLI without starting a new deployment. Recovering from network interruptions would be a great improvement to the workflow still.
/end edit
Retrying over and over again 😢. Minimizing network traffic. Smaller deployments would be ideal but are a large development lift in my case. We could also build our own tooling. Using Salesforce packaging could be an option but introduces other performance/scratch org complexity issues.
Additional context
If I intentionally disconnect from WiFi during a push, I can reproduce this error. The error message:
N.b., updated my DX CLI version:
7.66.2-4f159a1d07 to 7.68.6-d37008df83
And the error still occurs.
The text was updated successfully, but these errors were encountered: