-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Updated monolog/monolog to 2.26.1 #33226
Updated monolog/monolog to 2.26.1 #33226
Conversation
Hi @konarshankar07. 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 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 Static Tests |
Pull Requests are not mergeable to the mainline. Please merge the latest mainlines to your Pull Requests and restart the builds. |
Static tests are failing as the composer.json is not updated in EE repo Are there any partner contributors volunteers to collaborate on this PR and create corresponding EE PR to fix static tests? Added "help wanted" label for this purpose |
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.
Thanks for the pull request @konarshankar07 ! Please see my comment
composer.json
Outdated
@@ -65,7 +65,7 @@ | |||
"magento/composer": "1.6.0", | |||
"magento/magento-composer-installer": ">=0.1.11", | |||
"magento/zendframework1": "~1.14.2", | |||
"monolog/monolog": "^1.17", | |||
"monolog/monolog": "~1.26.1", |
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.
Let's update monolog to the latest available version
"monolog/monolog": "~1.26.1", | |
"monolog/monolog": "^2.2", |
Removed "help wanted" label, as @drpayyne has joined to help on the commerce repo side |
This pull request depends on the MFTF changes (update of the same library) |
EE pull request added to the related: https://github.com/magento/partners-magento2ee/pull/555 This pull request will be ready to merge once changes from magento/magento2-functional-testing-framework#832 are released |
@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. |
@sivaschenko |
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 @konarshankar07 , can you please update the codebase for the latest monolog version.
Currently the tests are failing with error:
PHP Fatal error: Declaration of Magento\Framework\Logger\Handler\Base::write(array $record) must be compatible with Monolog\Handler\StreamHandler::write(array $record): void in /var/www/html/lib/internal/Magento/Framework/Logger/Handler/Base.php on line 81
@@ -34,7 +34,7 @@ | |||
"laminas/laminas-uri": "^2.5.1", | |||
"laminas/laminas-validator": "^2.6.0", | |||
"magento/zendframework1": "~1.14.2", | |||
"monolog/monolog": "^1.17", | |||
"monolog/monolog": "~1.26.1", |
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.
"monolog/monolog": "~1.26.1", | |
"monolog/monolog": "^2.2", |
@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. |
Would love to see this happen, as monolog v2 comes with a new datetime format that includes timezone information. I was just researching this topic accidentally before running into this PR, because I think it could be very helpful in reading log files and I always get confused about the timestamps in Magento log files because it's currently not clear what timezone they are representing. Alternatively, if this upgrade would take too much time to get approved, we could change the second parameter of the LineFormatter object that is created over here to Just FYI 🙂 |
Hello @hostep |
Closing in favour to finalized #33497 |
Hi @konarshankar07, thank you for your contribution! |
Depends on: magento/magento2-functional-testing-framework#832
Description (*)
Updated monolog/monolog to 2.26.1
Fixed Issues (if relevant)
Related Pull Requests
https://github.com/magento/partners-magento2ee/pull/555