-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Missed composer dependencies in Symfony Components #11620
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
Comments
Givent aht Travis allows only a few concurrent jobs per github organization (approx 5 but the exact value may depend on their server load), running jobs for each pushes to the subtree split repos would mean that each time the subtree are updated, the builds of the main repo will not be processed during a long time (until all subtrees have been built). IMO, the drawbacks outfit the advantages here. |
thus, what is missing most of the time are require-dev dependencies, not hard requirement, which affects only people running the testsuite of the standalone component, not people using the components. And this does not happen so much, given that you are not supposed to develop in standalone components directly but in the fullstack repo. |
Missed dependency is one case, another case is wrong version of hard dependency. Anyway, @stof , thanks for the reply, I don't knew these details about Travis CI, so drawbacks may be really bigger than advantages... |
A wrong version is hard to detect, because the common mistake is to forget to bump the requirement when depending on a new feature. But given that composer will use the latest version matching the requirement, you won't see the error when running the testsuite. You will only see it when installing it alongside another package forcing to use an older version of the dependency |
https://github.com/symfony/symfony/pull/11340/files is adding a run of the testsuite at the component level on Travis, which should avoid such mistakes in the future |
Looks like #11340 really solves this problem. Thanks 6467 @stof, @romainneutron |
From time to time I see PR that fixes
composer.json
for concrete component.I assume that these failures are happening because each component is not tested by Travis CI as standalone project.
Thus missed composer dependencies in concrete component are usually found by people, not Travis CI.
Maybe each component has to have own
.travis.yml
and Travis CI should test each component via relevant mirror repository?P.S. Feel free to close this issue if you think that it is not worth it. Just suggestion.
The text was updated successfully, but these errors were encountered: