-
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
apex get test --codecoverage runs 30x times slower or crashes with JavaScript heap out of memory #3147
Comments
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. |
Hey @maksym-petrov-ct, thank you for providing all of these details. I have tried to reproduce your findings using my https://github.com/iowillhoit/dreamhouse-lots-o-tests repo. I created 3800 "fast" tests (which is 97.89% of the Apex character limit in my scratch org) and executed them using your commands. The tests themselves took a long time to execute, but the I tried this again using A few things:
|
Hi @iowillhoit |
Cool that might be helpful. For what it is worth, your login might not be 100% necessary since we already have a similar case with some details in it. If you wanted to email the creds, I could give you our team's email address. Hopefully we will be able to get to this work in January. |
Thanks @iowillhoit. Let's see how it will go in January, please let me know if you still need sandbox to reproduce. |
Summary
Compared to sfdx 7.x versions, sf versions (tested on 2.52 and 2.68.6) can't effectively run
sf apex get test --codecoverage
on org with hundreds of class files. It either crashes after ~30 min, or if successful, takes ~30 min. sfdx 7.x withforce:apex:test:report --codecoverage
takes 1-2 min and never crashes here.Expected result
in result I expect in 1-2 min to get test_results directory containing files:
note that I compared behavior with sfdx v7.180 and sfdx gets job done with it's
force:apex:test:report
in 1-2 min.Actual result
after having code coverage stats in org I can get it's test-run-id, something like 7070000000000000X. Some tests have failed in this test-run and overall coverage is below 75%, if it matters (but I think it doesn't).
Note that sf command is passed through 'time' and below is stats for system resources usage during execution (29 min of real time while only 1m23s of active time).
Additional information
after ~30 min sometimes test_results directory contains expected files, but sometimes not.
Reproduced on MacOS, Ubuntu. Tested on version @salesforce/cli/2.52 - issue reproduces.
System Information
The text was updated successfully, but these errors were encountered: