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

(incorrect) status code returned for timed out builds #426

Closed
AndrewRayCode opened this issue Jun 2, 2020 · 4 comments
Closed

(incorrect) status code returned for timed out builds #426

AndrewRayCode opened this issue Jun 2, 2020 · 4 comments
Labels
bug Issue or pull request that identifies or fixes a bug

Comments

@AndrewRayCode
Copy link

Summary

If a test run (deploy --checkonly) takes longer than the timeout to complete, sfdx reports a successful status code.

Steps To Reproduce:

  1. Deploy
  2. Have the deploy take longer than the timeout

Expected result

sfdx returns an error status code

Actual result

sfdx returns a successful status code

Additional information

sfdx as a tooling utility is useful to run tests in an automated system. It's the behavior of all cli test tools to only return a successful code if all tests pass. sfdx is the only tool I'm aware of that does not follow this convention and discards the the test result when returning a status.

@MuriloKakazu
Copy link

In case anyone is also having this problem, there are some ways around it, one shown here: #461 (comment)

@clairebianchi clairebianchi added the waiting for internal reply The Salesforce team is working on a fix and has promised an update label Jul 17, 2020
@mshanemc mshanemc added bug Issue or pull request that identifies or fixes a bug and removed waiting for internal reply The Salesforce team is working on a fix and has promised an update labels Apr 12, 2021
@uip-robot-zz
Copy link

This issue has been linked to a new work item: W-9125774

@mshanemc
Copy link
Contributor

closely related to #461

@mshanemc
Copy link
Contributor

this got fixed in the new source-plugin. It returns exitCode 69 for incomplete/timeout statuses for source commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug
Projects
None yet
Development

No branches or pull requests

5 participants