-
Notifications
You must be signed in to change notification settings - Fork 407
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
sf apex get tests hangs for two minutes #5381
Comments
Hello @cinicola 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. A few more things to check:
Thank you! |
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. |
How many tests do we need to replicate the problem? |
Hello @mshanemc. The org with the symptom has with 2.700 tests. Other orgs with hundreds of tests I don't have problem. |
I just uploaded a video showing the issue: |
I transferred this to the VSCode team, who owns the TestService that the apex plugin is calling. I'm wildly speculating that this is related to its use of the StreamingAPI. |
Hi, I have the same issue. Is there any update on this? |
Hello everyone! We're having the same time loss here, I'd appreciate receiving updates in this issue please. |
I'm noticing this issue in...
|
Summary
Steps To Reproduce
Get a org with a big number of tests, and run the command:
sf apex get test --test-run-id=707XXXXXXXXX --target-org YourOrgAlias
Expected result
The CLI executes the command, displaying the test results in a few seconds and releases the prompt.
Actual result
The CLI executes the command, displaying the test results in a few seconds, but is keeping the command running for about 2 minutes. After these 2 minutes, the prompt is released.
This behavior is holding up Github Actions running and using limits unnecessarily.
The same problem is ocurring when you ask to run tests:
sf apex test run -l RunLocalTests --target-org YourOrgAlias
The test execution request happens in a few seconds, but the terminal is locked for two minutes.
System Information
I tried to run this commands in PowerShell with the last cli version and in Linux bash *Github Actions( and the behavior is the same.
CLI Version:
@salesforce/cli/2.25.7 win32-x64 node-v20.10.0
The text was updated successfully, but these errors were encountered: