-
Notifications
You must be signed in to change notification settings - Fork 310
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
PhpComposerTest: Upgrade the tests to be compatible with 1.10.1 #2450
Conversation
What determines whether a projects requires a committed |
Two tests use the |
I don't necessarily think it's better, I just wanted to understand the criteria by which you decided to include |
366c671
to
12e0ffd
Compare
It turns out the tests fail with the composer version installed on Travis, so I have upgrade the composer.phar in all test projects instead. |
I noticed the file modes of |
Upgrade the PHP Composer tests to be compatible with Composer version 1.10.1. This includes several changes: * Upgrade PHP on Travis from 7.1 to 7.2. * Upgrade composer.phar to 1.10.1 in all test project. * Upgrade all lockfiles. * Fix the "with-replace" test project. Previously the child2 project was configured to replace child4:1.0.0 while the project required child4:2.0.0 to demonstrate that the project would still install child4:2.0.0 because this version is not replaced by child2. This is not allowed anymore in the newest composer version, so change child2 to replace child4:2.0.0. Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@here.com>
12e0ffd
to
ec585ad
Compare
Thanks, fixed. |
@mnonnenmacher, this now seems to cause PhpComposerTest failures on AppVeyor in newer PRs. I guess it did not occur in this PR because the task output was cached. Could you maybe have a look? |
I will look into this. But if it is like you describe that means the cache implementation is broken. |
Well, in your commit you only changed synthetic test assets for PHP, and none if these are defined as inputs to the analyzer's |
Correctness is more important than performance for the tests, I think it's ok to run the whole analyzer test set if any test asset is changed. Adding separate test tasks for the package managers sounds like adding a lot of complexity for little benefit, and should not be a requirement for making the test results reliable. |
Agreed, but to do it right, you would also need to depend on the binaries of the external tools, like |
Upgrade the PHP Composer tests to be compatible with Composer version
1.10.1. This includes several changes:
configured to replace child4:1.0.0 while the project required
child4:2.0.0 to demonstrate that the project would still install
child4:2.0.0 because this version is not replaced by child2. This is
not allowed anymore in the newest composer version, so change child2
to replace child4:2.0.0.