-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Updated sebastian/phpcpd, phpunit/phpunit and laminas/laminas-server dependency for php8 update #31383
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 sebastian/phpcpd, phpunit/phpunit and laminas/laminas-server dependency for php8 update #31383
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 |
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.
Hello @konarshankar07
Thank you for the work you have done in the scope of the PHP8 compatibility. 👍
Please, take a look at my comment about the minimum-stability
.
composer.json
Outdated
@@ -385,5 +385,6 @@ | |||
"Magento\\PhpStan\\": "dev/tests/static/framework/Magento/PhpStan/" | |||
} | |||
}, | |||
"prefer-stable": true | |||
"prefer-stable": true, | |||
"minimum-stability": "dev" |
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.
We must avoid using the dev as a minimum-stability
. Please, change.
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 ! Can you please take a look at my comment
composer.json
Outdated
@@ -385,5 +385,6 @@ | |||
"Magento\\PhpStan\\": "dev/tests/static/framework/Magento/PhpStan/" | |||
} | |||
}, | |||
"prefer-stable": true | |||
"prefer-stable": true, | |||
"minimum-stability": "dev" |
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.
I don't think the minimum stability should be dropped to dev. Is that required for some reason?
@magento run all tests |
Hello @sivaschenko @coderimus |
@konarshankar07 I see, elasticsearch 7.11 is not yet published. Let's update the elasticsearch version later, when 7.11 will be available on packagist https://packagist.org/packages/elasticsearch/elasticsearch to keep all the dependencies stable. |
@sivaschenko |
@konarshankar07 in our case we have to not to have any dev stability packages and taken into account the next 2 aspects we need to downgrade it to the stable one:
|
@coderimus |
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 , please see a summary of changes required for the PR to move forward
composer.json
Outdated
@@ -33,18 +33,18 @@ | |||
"colinmollenhour/credis": "1.11.1", | |||
"colinmollenhour/php-redis-session-abstract": "~1.4.0", | |||
"composer/composer": "^1.9", | |||
"elasticsearch/elasticsearch": "~7.7.0", | |||
"elasticsearch/elasticsearch": "~7.11.0", |
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 revert the elasticsearch version change
composer.json
Outdated
@@ -385,5 +385,6 @@ | |||
"Magento\\PhpStan\\": "dev/tests/static/framework/Magento/PhpStan/" | |||
} | |||
}, | |||
"prefer-stable": true | |||
"prefer-stable": true, | |||
"minimum-stability": "dev" |
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.
this line should be removed
@sivaschenko |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests, Sample Data Tests CE , Static Tests, Unit Tests, WebAPI Tests |
@sivaschenko @konarshankar07 I have things to discuss:
This 4.0.0 version has some BC breaks and I think that they will not affect us or if so we will fix them :) What do you think? |
Hello @coderimus |
@konarshankar07 thank you for details and link PHP 8 upgrade issue 👍 Now I have a more clear vision of the whole process. From my perspective, the PHP 8 version set to the required section of the composer.json should be done in the scope of this issue because without it we are not able to say that updated versions, Magento core code and 3rd party vendors included to the package are really compatible. Because here the PHP version is a conductor and dependencies are followers. Also, the I can suggest next:
With this flow, I think, we will have PHP 8 compatibility upgrade consistently. Otherwise, we provide not the php8 dependency upgrade but the simple dependency upgrade :) What do you think about this? @konarshankar07 @sivaschenko |
We will not be able to run tests on PHP 8 until all dependencies are updated. Let's do this step by step. |
Hi @sivaschenko @konarshankar07 @sivaschenko thank you for the update strategy explanation. Got your point and agreed with it. Let's proceed as you suggested. |
@konarshankar07 can you please check if the failed tests can be fixed. I.e. it looks like lib/internal/Magento/Framework/composer.json should be updated as well to fix static tests Also, can you please ensure composer.lock is updated only for the changed dependencies. (run |
@magento run all tests |
@magento run all tests |
@magento run all tests |
@magento run all tests |
@magento run all tests |
@magento run Static Tests |
@magento run all tests |
@magento run all tests |
@magento run all tests |
Hi @konarshankar07, thank you for your contribution! |
Description (*)
This PR will update the packages related to php8 compatibility
Fixed Issues (if relevant)
Contribution checklist (*)