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

magento/magento2#24043: Better exception handling during cli commands. #24734

Merged
merged 1 commit into from Sep 28, 2019

Conversation

p-bystritsky
Copy link
Contributor

@p-bystritsky p-bystritsky commented Sep 26, 2019

Description (*)

This PR is updating https://github.com/magento/magento2ce/commit/9ffe7eb2d3e6fcbf18eb39b6b847e99b0550a028

Fixed Issues (if relevant)

  1. Better exception handling during cli commands #24043: Better exception handling during cli commands.
  2. Static Content Deploy in developer mode without force flag is broken in 2.3-develop #24678: Static Content Deploy in developer mode without force flag is broken in 2.3-develop

Manual testing scenarios (*)

  1. Try to execute any incorrect console command through bin/magento
  2. Correct exception message displayed in console.
  3. Exception trace is logged in corresponding files.

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@m2-assistant
Copy link

m2-assistant bot commented Sep 26, 2019

Hi @p-bystritsky. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

@ghost ghost assigned sidolov Sep 26, 2019
@magento-engcom-team
Copy link
Contributor

Hi @sidolov, thank you for the review.
ENGCOM-5955 has been created to process this Pull Request
✳️ @sidolov, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

@hostep
Copy link
Contributor

hostep commented Sep 26, 2019

@p-bystritsky : out of curiosity, will this also fix #24678 ?

@hostep
Copy link
Contributor

hostep commented Sep 26, 2019

I can confirm that applying this PR fixes #24678, nice!

@p-bystritsky: can you edit your post and add #24678 to the fixed issues list so it will get automatically marked as fixed when this PR gets merged? Thanks!

@hostep
Copy link
Contributor

hostep commented Sep 26, 2019

I do have one remark about only logging the trace to the system.log file: wouldn't it make sense to also log the exception message? Only logging the trace is a bit strange and provides little context about this entry in the log file and might leave people confused reviewing the log files as what that stacktrace is doing in there without an exception message itself, no?

@sidolov
Copy link
Contributor

sidolov commented Sep 26, 2019

@hostep agree with you, @p-bystritsky could you take a look on it?

@p-bystritsky
Copy link
Contributor Author

@hostep @sidolov updated

@hostep
Copy link
Contributor

hostep commented Sep 27, 2019

LGTM! Thanks!

@sidolov sidolov added the Auto-Tests: Covered All changes in Pull Request is covered by auto-tests label Sep 27, 2019
@magento-engcom-team
Copy link
Contributor

Hi @sidolov, thank you for the review.
ENGCOM-5955 has been created to process this Pull Request

@engcom-Delta
Copy link
Contributor

✔️ QA passed

@m2-assistant
Copy link

m2-assistant bot commented Sep 28, 2019

Hi @p-bystritsky, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.4 milestone Sep 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants