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

Run tests on PHP 8.2 #9840

Merged
merged 3 commits into from
Jun 16, 2022
Merged

Run tests on PHP 8.2 #9840

merged 3 commits into from
Jun 16, 2022

Conversation

derrabus
Copy link
Member

PHP 8.2.0-alpha1 has been released and I think we should start monitoring our compatibility with the next PHP version.

@derrabus derrabus added the CI label Jun 12, 2022
@derrabus derrabus added this to the 2.12.3 milestone Jun 12, 2022
@derrabus derrabus force-pushed the ci/php-8.2 branch 2 times, most recently from 3e2ece0 to ff0748f Compare June 12, 2022 12:16
@@ -31,6 +31,8 @@ jobs:
dbal-version: "2.13"
- php-version: "8.1"
dbal-version: "3@dev"
- php-version: "8.2"
dbal-version: "3@dev"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as doctrine/dbal#5381 is not released, the tests will fail on PHP 8.2 if we don't test against a dev snapshot.

@@ -52,6 +54,8 @@ jobs:

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
with:
composer-options: "--ignore-platform-req=php+"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to ignore the upper boundary of PHP version constraints. Otherwise, we cannot install Prophecy (as a dependency of PHPUnit) on PHP 8.2.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know about that + syntax 💡

@derrabus
Copy link
Member Author

The test failures on Postgres are most likely unrelated to PHP 8.2.

@derrabus
Copy link
Member Author

@greg0ire @morozov Can you have a look that the failing Postgres tests in this PR? It looks like those tests have been deleted on higher branches (e.g. #9799). Can you check if we can backport that to 2.12.x as well? Otherwise, our CI on 2.12.x will break as soon as DBAL 3.3.7 is tagged.

@greg0ire
Copy link
Member

Can you check if we can backport that to 2.12.x as well?

I pushed the cherry-picked commit to your branch since it's the easiest way to test.

@derrabus derrabus marked this pull request as ready for review June 16, 2022 11:50
@derrabus
Copy link
Member Author

I have reverted all changes to production code. I think it's better to deliver those with 2.13.x. The CI is green now. Shall we merge?

@derrabus derrabus merged commit c05e170 into doctrine:2.12.x Jun 16, 2022
derrabus added a commit to derrabus/orm that referenced this pull request Jun 17, 2022
* 2.13.x:
  Deprecate omitting the alias in QueryBuilder (doctrine#9765)
  Run tests on PHP 8.2 (doctrine#9840)
  PHPStan 1.7.13 (doctrine#9844)
  Flip conditional extension of legacy AnnotationDriver class (doctrine#9843)
  PHP CodeSniffer 3.7 (doctrine#9842)
  Make Reflection available to ConvertMappingCommand (doctrine#9619)
  Add missing property declaration
  Use proper API for introspection of tables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants