Open cinicola opened 10 months ago
Hello @cinicola :wave: It looks like you didn't include the full Salesforce CLI version information in your issue.
Please provide the output of version --verbose --json
for the CLI you're using (sf
or sfdx
).
A few more things to check:
rc
or nightly
versions. (docs)doctor
command to diagnose common issues.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.
https://github.com/forcedotcom/salesforcedx-vscode/issues/5381
Thanks @mshanemc @cinicola I am going to move this over to out primary issues repo.
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...
@salesforce/cli/2.64.8 linux-x64 node-v18.20.4
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