-
Notifications
You must be signed in to change notification settings - Fork 139
Update php parser to v5, take two #809
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
Conversation
FYI this does complete for me in 8 minutes, but I have a beefy workstation, I expect it will run for hours on GH. The issue is there's just some gigantic examples generated (Github, Twitter, Docker API) which contain thousands of files which now all need to be processed before comparing them. Excluding Docker API, Github and |
I've excluded the biggest fixtures from being tested on old PHP Parser, the tests now run in 47s for me (as opposed to 8min). It's now useable again. |
This should now work except for nikic/PHP-Parser#1009
|
723aaac
to
6d4d7af
Compare
OK, I've let the v4 version of tests run without excluding the beefy fixtures locally and the result is now
It all works on both v4 and v5, except the |
6d4d7af
to
f199fa6
Compare
@Korbeil ready for review. |
BTW I've also ran the entire test suite on v4 locally and it all works
|
Ah, I need to update the composer.json files in subrepos too. |
I guess the fact |
@Korbeil yes, it needs to fix code style for thousands of files (both fixtures and generated). This is after we've marked the six biggest fixtures as skipped. |
Great job! |
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.
@Korbeil done. |
Continues #802.
Closes #760.
Closes #784.
@Korbeil this now runs CS Fixer on generated AND expected when on PHP Parser v4, the fixtures are dumped by PHP Parser v5 (which is why they're all changed now).
I needed to bump PHPUnit to v9 to be able to install CS Fixer v3. It actually makes a bunch of tests pass as is, but not all of them, you can see the diffs if you run PHPUnit with
--testdox
.It should be a matter of finding the correct CS Fixer config.
cc @vdauchy