-
Notifications
You must be signed in to change notification settings - Fork 9.4k
magento/magento-2#23222: setup:upgrade should return failure when app… #23310
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
magento/magento-2#23222: setup:upgrade should return failure when app… #23310
Conversation
…:config:import failed: Added logic to throw RuntimeException if app:config:import returns failure error code
Hi @ProcessEight. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
…:config:import failed: Replaced constant in localised error message with string literal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ProcessEight,
Could you cover your change with test in order not to make regression there in future?
Hi @ihor-sviziev, thank you for the review. |
✔️ QA Passed |
Hi @ProcessEight, thank you for your contribution! |
app:config:import failed: Added logic to throw RuntimeException if app:config:import returns failure error code
This PR adds logic which detects if the return code of the app:config:import command returns an error code greater than zero and if so, throws a RuntimeException.
Description (*)
These CLI commands are used for deployments. If there is an error on deployment, the command should stop. But without an error code we cannot stop. This PR adds the error code.
Fixed Issues (if relevant)
Manual testing scenarios (*)
after Line 114
bin/magento setup:upgrade
bin/magento setup:upgrade
command is terminated by theRuntimeException
Questions or comments
Contribution checklist (*)