-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fix regression - Add previous exception with more details #33419
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
Fix regression - Add previous exception with more details #33419
Conversation
Hi @ihor-sviziev. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run Unit Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Hi @Den4ik, thank you for the review.
|
Hi @eduard13, thank you for the review. |
Hi @ihor-sviziev , @Den4ik and @eduard13 ❌ QA not Passed Required logs in case of Mailing exception Manual Scenario Steps
✔️ Expected result After Fix
❌ Actual result After Fix |
HI @ihor-sviziev Thanks for suggesting me to the code, below is my observation
This above case I tested before applying PR fix code! since I have to test that the contact-us mailing fails before the fix to see exception logs and then to check the updated exception logs after the fix! |
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.
Since this PR auto moved to Ready For Testing, pushing it back to Changes Requested!
Hi @ihor-sviziev, Thank you for your contribution! I will have a look on the comments received in changes requested. Thank you! |
Hi @ihor-sviziev, and @engcom-Alfa I have gone through this issue and #32730 issues and below are the findings. @engcom-Alfa , I have tried to reproduce the issue on 2.4-develop branch having smtp installed and its reproducible. To reproduce it, I have the added code base mentioned in comment. As a result, we can see error on store front, and you will not see any exception entry in exception log. In this issue implementation, we have taken care of passing the original exception as a second parameter along with an exception log entry. So as a part of testing of this issue, we should be getting the exception entry in exception log. Thank you! |
After your updates, I tried again fresh |
@magento create issue |
✔️ QA Passed Preconditions:
Manual testing scenario:
Before: ✖️ No logs were getting received Attach screenshot After: ✔️ Logs generated as shown below
Since the PR has an additional logs update only, there is no impact on anything and no additional regression required. Thanks @engcom-Charlie for helping me in identifying the logs. |
Hi @ihor-sviziev, thank you for your contribution! |
Description (*)
As part of #32730, we got a regression - the 2nd parameter for the previous exception was lost. It was reported in #32730 (comment).
This PR brings back this 2nd parameter, it will be really useful for a clear understanding of what's happened and why, when we catch an exception during email sending.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
Resolved issues: