Skip to content
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

All repos should test against lowest deps, and maybe dev deps #667

Open
stof opened this issue Sep 1, 2015 · 15 comments
Open

All repos should test against lowest deps, and maybe dev deps #667

stof opened this issue Sep 1, 2015 · 15 comments

Comments

@stof
Copy link
Member

stof commented Sep 1, 2015

We should have a job in the matrix testing against lowest dependencies to ensure that the lowest bound is right.

Depending on what they depend on, it might be worth testing against dev versions too (even though we always test them against the dev version of Mink).
You can see jcalderonzumba/MinkPhantomJSDriver#36 for the way to make such setup (the PR contains other enhancements too)

@aik099
Copy link
Member

aik099 commented Sep 1, 2015

Interesting topic, but doing so we'll be testing the dependencies instead of library itself. If we believe SemVer, then testing against lowest version isn't needed.

@stof
Copy link
Member Author

stof commented Sep 1, 2015

no, we will be testing that our lowest bounds are right. Otherwise, it is very easy to say we are compatible with twig 1.0+ for instance, while we actually depend on a feature added in twig 1.8 (this is an example taken from the PR linked above).

And for the dev stability, this is meant to ensure we are compatible with the next version of our dependencies, to catch issues coming from their update (which should not happen if they follow semver, but this still happens sometimes by mistakes)

@aik099
Copy link
Member

aik099 commented Sep 1, 2015

Ah, so we test against lowest dependency version instead of latest dependency version. In that case yes, I agree, that it's needed.

@stof
Copy link
Member Author

stof commented Sep 1, 2015

@aik099 this is what --prefer-lowest is about in Composer

@aik099
Copy link
Member

aik099 commented Sep 1, 2015

I though you want to test lowest version together with highest versions :)

@stof
Copy link
Member Author

stof commented Sep 1, 2015

I don't understand what you mean ?

@stof
Copy link
Member Author

stof commented Sep 1, 2015

note that I sent the PR against the Mink repo already. PRs against drivers will come later

@aik099
Copy link
Member

aik099 commented Sep 1, 2015

You said: let's test against lowest version of dependencies.
I understood as: let's test against highest version of dependencies (as we do now) + test against lowest version of dependencies.
What you actually meant: let's test against lowest version of dependencies instead of highest version of dependencies.

@stof
Copy link
Member Author

stof commented Sep 1, 2015

no, we should do both. We should have 1 job using the lowest deps, but we should also have jobs using the latest ones (most of our users will actually use the latest ones, so it is important to use them).

@aik099
Copy link
Member

aik099 commented Sep 1, 2015

It's clear now. I was afraid that testing against lowest dependency version would double travis job count, but since it will only add one job, then it's ok.

@stof
Copy link
Member Author

stof commented Sep 1, 2015

yeah, testing lowest deps against all PHP versions would be overkill. We are not trying to test our deps on multiple versions (they should be doing it), and we are likely to execute the same code paths in our own code. What I generally do is using our older PHP version for the lowest deps build.

@stof
Copy link
Member Author

stof commented Sep 20, 2015

Actually, I changed my mind here. We regularly fix bugs in other libraries spotted thanks to our testsuite (in Goutte for instance), and this would force us to be very strict about the lowest bound to be sure that all our tests are passing, even the tests for edge cases. This could make our requirements much more complex.
I'm not sure it is worth it.

@aik099
Copy link
Member

aik099 commented Sep 21, 2015

You mention Added testing against lowest version of dependencies to ensure we got the lower bounds right in release notes on https://github.com/minkphp/Mink/releases/tag/v1.7.0 , but at same time say that you no longer want to test lowest dependency versions? Are release notes outdated?

@stof
Copy link
Member Author

stof commented Sep 21, 2015

@aik099 this issue is about driver repos, not about Mink itself

@aik099
Copy link
Member

aik099 commented Sep 21, 2015

OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants