Skip to content

CLI issue with bin/magento and exit codes for failure #7576

Closed
@sitepodmatt

Description

@sitepodmatt

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions