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

Fix PHP 7.4 MariaDB test, Drop experimental MariaDB tests #491

Merged
merged 7 commits into from
Oct 16, 2023

Conversation

gregcorbett
Copy link
Member

@gregcorbett gregcorbett commented Oct 11, 2023

This PR reworks the test MariaDB tests to:

  • Drop experimental PHP 7.2 and 7.3 MariaDB tests
    • they have never worked and our PHP upgrade to 7 is going to be to 7.4 as this is the highest 7.X version readily install-able on Rocky8
  • Drop PHP 8.0 MariaDB test for now
    • it requires a later reelase of version 2.X of the Doctrine ORM before the tests will even run.
  • Fix the PHP 7.4 test for MariaDB
    • This involves supplying seperate composer.json/lock files to run different versions of Doctrine, as there is no version that supports both PHP <7.4 and >7.4.
    • Drop the experimental from the PHP 7.4 test as it is now expected to pass.

Fixing the PHP 7.4 test for MariaDB highlighted a few things that wouldn't work under PHP 7.4 and this PR also addresses those.

@gregcorbett gregcorbett self-assigned this Oct 11, 2023
@gregcorbett gregcorbett marked this pull request as ready for review October 11, 2023 14:41
@gregcorbett gregcorbett requested a review from a team as a code owner October 11, 2023 14:41
@gregcorbett gregcorbett marked this pull request as draft October 11, 2023 14:41
@gregcorbett
Copy link
Member Author

Forgot about the code climate issues

@gregcorbett
Copy link
Member Author

Forgot about the code climate issues

and about actually testing these changes don't break anything 😋

@gregcorbett gregcorbett force-pushed the unit_test_php_modern branch 4 times, most recently from ee8efbf to 5db1463 Compare October 12, 2023 12:39
gregcorbett and others added 6 commits October 12, 2023 13:41
- they have never worked and our PHP upgrade to 7 is going to be
  to 7.4 as this is the highest 7.X version readily install-able
  on Rocky8
- it requires a later reelase of version 2.X of the Doctrine ORM
  before the tests will even run.
- This involves supplying seperate composer.json/lock files
  to run different versions of Doctrine, as there is no version
  that supports both PHP <7.4 and >7.4.
- Drop the experimental from the PHP 7.4 test as it is now
  expected to pass.
- all tests are currently expected to pass.
- As of PHP 7.2.0 count() yields a warning on invalid countable types passed to the value parameter.
- PHP 7.3 and newer versions use a newer underlying library to handle
  regexes which more strict in the regex pattern validations.
- So now these hyphens have to be escaped.
@gregcorbett gregcorbett marked this pull request as ready for review October 12, 2023 13:20
@gregcorbett gregcorbett changed the title Rework MariaDB tests to run on last PHP 7 version Fix PHP 7.4 MariaDB test, Drop experimental MariaDB tests Oct 12, 2023
@gregcorbett gregcorbett force-pushed the unit_test_php_modern branch 2 times, most recently from 2af5d69 to 1ea3fa7 Compare October 16, 2023 11:09
@gregcorbett gregcorbett merged commit 62a3c8c into GOCDB:dev Oct 16, 2023
13 checks passed
@gregcorbett gregcorbett deleted the unit_test_php_modern branch October 16, 2023 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants