-
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
Azure Shows Successful Badge on Deployment Failure #2998
Comments
Hello @lmondigo 👋 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. |
Hello @lmondigo 👋 None of the versions of Shared: Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue. After updating, share the full output of |
We set the exit code for that happens after the deployment finished being processed in your org and by looking at the (this is where I tried a few possible scenarios but couldn't get the does azure logs somewhere the exit code of the command? |
Thanks for checking @cristiand391 I have checked the JSON response from both jobs via Would it be right to assume that Failed Job
Failed job that showed success
|
No, we set the here we set it to whatever same with results but fallback to In the 2 JSON results you shared above I see the the org is returning I'll check our telemetry and see if I can find similar scenarios. |
@cristiand391, it happened again on one of our pipelines running in an older container which is still using |
Nope, but for the CLI to exit with 0 the API should be returning If you can share the deploy ID of a deploy that failed but made |
Here's several deployment IDs that exited 0 and failed in the org: |
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted. |
hey @lmondigo sorry for the late reply I can't find For I think it'll be tricky to debug this since you mentioned it's intermittent, some ideas:
If it's really an MDAPI issue (first API call returns |
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted. |
Summary
On August 20, we noticed our pipelines are showing as successful but upon checking the deployment status, it reported error and should have failed the pipeline.
Steps To Reproduce
After replicating issue with similar variables (latest SF CLI version at that time which appears to be 2.56.4, components being deployed, tests being run), the issue no longer seem to persist and cannot be reproduced anymore.
Command used
sf project deploy start -d delta -o TargetOrg -l RunSpecifiedTests -t $(test_classes) -w 120 -c
Expected result
Failed deployments on pipelines should appear failed.
Actual result
Failed deployments showing up as succeeded.
Additional information
False positive deployment:
After replicating and getting the expected behavior:
System Information
Operating System
Ubuntu
22.04.4
LTS
JSON
The text was updated successfully, but these errors were encountered: