Closed esteban-serfe closed 3 years ago
Hi @EstebanSerfe. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.
Please, add a comment to assign the issue: @magento I am working on this
@EstebanSerfe We have been running/testing release packages in composer builds.
Can you try to update to latest MFTF 2.6.x for Magento 2.3.6? or latest MFTF 2.7.x for Magento 2.3.7?
Hi @jilu1 Thanks for your response.
We are not using Magento Commerce 2.3.7 with PHP 7.3 and Composer 1 Trying to install MFTF 2.7.1 manually gives me the following conflict:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: doctrine/inflector[v1.1.0, 1.4.4].
- Can only install one of: doctrine/inflector[v1.1.0, 1.4.4].
- Can only install one of: doctrine/inflector[v1.1.0, 1.4.4].
- csharpru/vault-php 3.5.3 requires doctrine/inflector ~1.1.0 -> satisfiable by doctrine/inflector[v1.1.0].
- magento/magento2-functional-testing-framework 2.7.1 requires csharpru/vault-php ~3.5.3 -> satisfiable by csharpru/vault-php[3.5.3].
- Installation request for magento/magento2-functional-testing-framework 2.7.1 -> satisfiable by magento/magento2-functional-testing-framework[2.7.1].
- Installation request for doctrine/inflector (locked at 1.4.4) -> satisfiable by doctrine/inflector[1.4.4].
I see the following modules having doctrine/inflector as dependencies on my composer.lock file:
Is this an issue with some other package that have the dependency also to doctrine/inflector that is not been mentioned on the conflict listing?
Doing some research, on Version 4.0.1 of csharpru/vault-php the dependency is updated to 1.3 and on higher version is removed. See https://github.com/CSharpRU/vault-php/blob/4.0.1/composer.json & https://github.com/CSharpRU/vault-php/blob/develop/composer.json
found that the module elasticsearch/elasticsearch removed the dependency 13 days ago from require dev. See https://github.com/elastic/elasticsearch-php/commit/ff65e31e227ff257a73ac74759ffcb497efebd37
Trying updating the module to newest version. 🤞🏻
Finally solved my issue doing:
composer update elasticsearch/elasticsearch
compsoer require --dev doctrine/inflector:1.1.*
composer require --dev magento/magento2-functional-testing-framework:2.*
Seems that the elastic search version had doctrine/inflector locked into 1.4.4 and prevented the install that way. Adding the second command downgraded the vesrion to 1.1.* which allowed to install 2.7.1 into the environment.
Not the best solution but did the trick.
The MFTF suite will not install thorugh composer as dependencies have conflicts on the versions.
Preconditions
Steps to reproduce
Expected result
Actual result
Same happens without requiring an specific version.