Closed
Description
Magento 2 CLI not setting expected/correct exit codes when an upgrade task fails.
Preconditions
Magento ~2.2 tip of develop
Steps to reproduce
Run a bin/magento setup:upgrade where a data upgrade fails, a simple die("lets hope this isnt tracked internally for the love of community but instead on github issues") in your modules UpgradeData.php upgrade function will suffice.
Expected result
Exit code should be non-zero
Actual result
Exit code is zero