apex get test --codecoverage runs 30x times slower or crashes with JavaScript heap out of memory #3147
Labels
investigating
We're actively investigating this issue
validated
Version information for this issue has been validated
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: