-
Notifications
You must be signed in to change notification settings - Fork 104
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
Add support for PHP 8.0 #580
Conversation
@akondas can you tell me how buddy works, it seems it's not pickup the runner config change. According to the logs, the used CI image is still 7.4 |
I need to approve these changes, but there is also a problem with the public instance, it needs to be prepared for php 8 |
I have to think about how to do it so that it would not be downtime, I would have to install php 8 there beforehand, which is actually to be done |
I still have something to finish this week, but from next week I will sit down to the repman and I will try to catch up with all PR (not only this one). We will catch up with this - I promise 😉 |
The best would then be to For compatibility we could already move CI to 8, so it does the checking and stuffs |
yes, good approach, that should allow the update to be done without downtime, thanks for help 👍 |
@akondas I've pushed the suggested update, just have to wait for the CI. If this is green, can you review and merge this PR? |
I'm unsure why the CI fails, it should be fine. It appears it might install the dependencies from some sort of cached vendor dir. I could use some help with this :) |
@akondas can you do another check for this PR? |
@marmichalski / @akondas everything has been addressed, how is this PR looking now? |
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.
👍🏻
@akondas lets finish this? |
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.
👍
So from my point of view, plan looks like this:
We are on first point here, so please do not run composer update on php 8. |
You can do this in composer.json to keep composer.lock depdencies on 7.4 for now: "config":
"platform": {
"php": "7.4"
}, |
I have applied @Jeroeny's suggestion and installed a 7.4 compatible set of dependencies. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #580 +/- ##
=============================================
+ Coverage 0 99.02% +99.02%
- Complexity 0 1907 +1907
=============================================
Files 0 301 +301
Lines 0 5763 +5763
=============================================
+ Hits 0 5707 +5707
- Misses 0 56 +56 ☔ View full report in Codecov by Sentry. |
@akondas everything's green, with support for 8.0 |
@akondas do you have some time to take a look at it? |
Ok, let's go with this. Please resolve conflicts and we can merge this. |
6e559b9
to
db701c4
Compare
From what I have found so far it that it appears to read the versions of the project itself in the test?
Those are clearly the branches and tags of this project, and not, as I expected, the versions of the dists zips in the tests folder. I'll check if the checkout is shallow or something like that |
That was it! I've added the @marmichalski how you like? |
Can you make the other workflow pass and drop this one, though? 👍 |
@marmichalski ah, I've been debugging the wrong file in that case, as that is a different error. I'll restart my investigation with that one |
d54aa4c
to
2872a1a
Compare
It might be an issue with git safe directories. I would assume that the 7.4 image might be a bit more outdated then the 8.0 image |
Yea, looks to be the case looking at the dubious ownership. Good find 🕵️ |
@marmichalski do you have write access to this repository? |
Co-authored-by: Marcin Michalski <evulmastah@gmail.com>
I think it can be merged in to the main branch as is, I don't see any objections right now. We've been using this in prod for a while now through a custom fork |
Thank you, let's see what happens next 🤞 |
Do you want me to find some time to work on php 8.2 compatibility, or will you handle this? PR was already open (#660), but with some failing tests that I didn't know enough about |
I can take over that PR in my spare time :) |
This does upgrade the code to allow for PHP 8.0, which can be merged as-is if #579 is something we do not want to add. However, if we want to add #579, then I can update this PR with the accompanying Rector changes :)