-
Notifications
You must be signed in to change notification settings - Fork 672
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
Allow Symfony 6 #6663
Allow Symfony 6 #6663
Conversation
@orklah I didn't see any configuration on your CI to test versions of Symfony. |
unless I'm mistaken, there is no release made for 6.0 yet neither And we can't allow dev branches. This will have to wait november |
@orklah Yes but Symfony encourages to be prepared as soon as possible and helping each third party packages to work on this before the release. Moreover it will be released in a few weeks. Some packages with Symfony 6 merged PR on main branch: |
@orklah Making this available on main branch allow third party packages to work on Symfony 6 support using your "dev-master". |
I'm all for preparing and checking if it's okay. If possible, I'd like to have a CI running somewhere with symfony 6 just to check that we are ready but there are a few constraints:
So, if I summarize all this:
If this outputs new errors, those will have to be fixed. If not, it means it means we'll be ready to add ^6.0 to our accepted versions when symfony will release their package. If we don't do that, it means we'll release a version now where we accept a package that we didn't test again and that may still change until the release. This means, the day where symfony release the package and our own dependencies allows it, we'll possibly break builds using the release we made without the fixes needed. So, if you want to help, what you need to do change your composer.json locally and add https://getcomposer.org/doc/04-schema.md#minimum-stability to "dev", https://getcomposer.org/doc/04-schema.md#prefer-stable to true, and try require symfony 6. Ideally, it would pass and really install symfony 6, unfortunately, our dependancies will block you, so you need to propose a PR to them too so they'll allow it. Either they'll accept the PR, or you need to target your PR branch from your local psalm's composer file. Once you're able to really install symfony 6 through composer, you have to run our test suite to see if anything breaks. If it doesn't, great! Push your composer.json in this PR and once we can remove minimum-stability, prefer-stable from it, it means we're ready to merge |
About behat, you'll note that's what they did here: They introduced symfony 6 in their CI as a dev package to test against before merging. |
If you have trouble installing Psalm along with other packages, you should use https://github.com/psalm/phar instead, it has no dependencies so it won't bother you with that |
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.
as we discussed, we need to have a full run of the test suite really using symfony 6 before we can merge
@orklah Yes, I agree with you. I will work on this soon. |
@orklah I opened a PR on Paratest. |
@orklah 😵💫 What's next? Do you advice Paratest to use the psalm phar instead? |
I didn't realize we had circular dependencies. |
I'd be ok with merging and releasing just range extension, without CI changes. Worst case scenario is we have I don't see a need to test compatibility with every Symfony version on every push. |
2805ce6
to
4b901bc
Compare
I reverted the CI changes. |
No description provided.