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

Various changes towards CI passing with php82 #276

Merged
merged 2 commits into from
Aug 4, 2023

Conversation

stronk7
Copy link
Member

@stronk7 stronk7 commented Aug 4, 2023

Right now we are running local_ci various scripts with php74 and php80, and it can be continue being used that way for years. But, as part of the PHP 8.2 Epic, where a bunch of our tools (codechecker, moodle-docker...) are modified to confirm that they work perfectly with the new PHP version, I decided to give to local_ci a run.

It has not been easy, but now it's passing and the few places in the php scripts needing fixes have been detected.

  • Fixed a few php82-isms.
  • Changed some expectations because php lint messages are different.
  • Use custom fixture to test that the compare_databases job detects problems.
  • Restrict tests to use only 402 and master.
  • Added some TODOs about to use more stable branches in the future once we get more supporting php82.

So, we are green now with php82, that's all. Achieved.

Ciao :-)

With the PHP 8.2 epic (https://tracker.moodle.org/browse/MDL-76405)
near being completed, it's time to verify and continuously test
that everything is passing with that PHP version.
- Fixed a few php82-isms.
- Changed some expectations because php lint messages are different.
- Use custom fixture to test that the compare_databases job detects
  problems.
- Restrict tests to use only 402 and master.
- Added some TODOs about to use more stable branches in the future
  once we get more supporting php82.
@stronk7 stronk7 marked this pull request as ready for review August 4, 2023 07:18
@junpataleta junpataleta merged commit 0baf895 into moodlehq:master Aug 4, 2023
4 checks passed
@junpataleta
Copy link
Contributor

Thanks, Eloy!

@stronk7
Copy link
Member Author

stronk7 commented Aug 4, 2023

Ty!

@stronk7 stronk7 deleted the gha-php82 branch August 4, 2023 12:58
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

Successfully merging this pull request may close these issues.

2 participants