Skip to content
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 tests failures with error "Cannot read properties of undefined" #95

Open
adarsha45 opened this issue Jul 15, 2024 · 4 comments
Open
Assignees
Labels
question Further information is requested

Comments

@adarsha45
Copy link

adarsha45 commented Jul 15, 2024

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):

  • OS: linux
  • Version [e.g. CLI Version eg: 1.6.6]
    @flxbl-io/sfp/39.0.3 linux-x64 node-v18.17.1
  • Salesforce CLI(sfdx cli) Version:
  • CI Platform:

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
Copy link
Author

adarsha45 commented Jul 31, 2024

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

@azlam-abdulsalam
Copy link

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

@azlam-abdulsalam azlam-abdulsalam added question Further information is requested and removed analysis labels Aug 7, 2024
@azlam-abdulsalam azlam-abdulsalam self-assigned this Aug 7, 2024
@adarsha45
Copy link
Author

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
Copy link

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants