flxbl-io / sfp

A build system for modular development in Salesforce
https://docs.flxbl.io/sfp/
MIT License
29 stars 15 forks source link

Apex tests failures with error "Cannot read properties of undefined" #95

Open adarsha45 opened 3 months ago

adarsha45 commented 3 months ago

Describe the bug Getting "Cannot read properties of undefined (reading 'testRunId')" during apex test runs

To Reproduce Steps to reproduce the behavior: sfpowerscripts apextests:trigger -l RunApexTestSuite --apextestsuite testsuite0 -u alias

Expected behavior If there is test success or failure it should have thrown test results.

Screenshots image

Platform Details (please complete the following information):

Additional context Add any other context about the problem here. this issue comes and go on multiple builds but it is frequent and i have also tried with multip,e sf versions

adarsha45 commented 3 months ago

@azlam-abdulsalam @nbatterham do you have any idea on this, it would be of great help?

azlam-abdulsalam commented 2 months ago

@adarsha45 This is more of an erratic behaviour from salesforce, can you confirm there is no retry in between

adarsha45 commented 2 months ago

hi @azlam-abdulsalam, thank you for looking into this. Do you mean retry from salesforce side? and FYI we are facing multiple unknown issue similar to this i.e there is no test failure or success, but the execution stops just with unknow error.

azlam-abdulsalam commented 2 months ago

@adarsha45 It seems the api is incorrectly getting rejected, its something i am afraid we could not fix, Whats the behaviour you see in your org, does the test seem to continue?