-
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
GitHub Action SF CLI Running Tests - Fatal Error #2648
Comments
Hello @firatesmer 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. A few more things to check:
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. |
You're not providing enough information (see above). Have you checked the deploy status in the org UI? To me, it looks like the CLI is behaving as expected and reporting an error that happened during deployment. |
Hi @shetzel, Again, when I execute the very same command on my locals (Mac & Win) with the same user, it works as expected. All the tests run and pass and we receive success, 0 as status code. |
You can try getting debug output during the CI run by appending the Another option is to set the Is it the same org being deployed to? If everything else is the same as with the successful run then I would debug the CI script. |
Thanks for the advice. To be honest, it's hard to extract the output of the doctor command since there are files saved into the temp folder of runner. I'll continue later today and share my update but is there an easier way to get the result from the doctor command? |
The doctor command accepts an This doesn't seem like a CLI bug. We have lots of CI tests running via GitHub actions using Ubuntu and Windows that run similar deploy and test commands. It's much more likely that there is something wrong with the CI script. |
closed because stale/no response |
Hey, I changed this
To this
Thank you both for your time and support. |
Hi,
I'm running a regular SF command which starts the deploy command with dry-run. The very same command runs in my local machine (tried in both Mac & Windows) successfully but fails in GitHub CI/CD action, which is a Linux machine.
SF CLI Command:
sf project deploy start --manifest manifest/package.xml --dry-run --wait 60 --test-level RunSpecifiedTests --tests Test1 --tests Test2 --tests Test3 --json --ignore-warnings
Steps To Reproduce
sf project deploy start
commandExpected result
Successfully running all the tests and reporting the results.
Actual result
Returns status 1 without any explanation except FATAL ERROR on UI. There are 20 test classes specified in that command but all the test classes have 0 test coverage.
Failed Run (from GitHub action)
Success Run (from local machine - Mac)
System Information
Does anyone have any ideas? Thanks in advance.
The text was updated successfully, but these errors were encountered: