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

Tests: Add PHP 8.4 and move PCOV to PHP 8.2 #2872

Closed

Conversation

acicovic
Copy link
Collaborator

Description

This PR adds PHP 8.4 to our unit and integration test matrices in experimental mode, as PHP 8.4 is on its merry way to release towards the end of November.

It also moves PCOV from using PHP 8.1 to 8.2, which is currently the most popular PHP version in the 8.x branch according to WordPress Stats.

Motivation and context

  • Keep our testing current
  • Catch issues early if they occur.

How has this been tested?

  • No functionality changes.
  • GitHub testing workflows should start using PHP 8.4 and PCOV with PHP 8.2.

vaurdan and others added 30 commits August 22, 2024 14:23
…o refactor/internal-api-stats

# Conflicts:
#	tests/Integration/RestAPI/ContentHelper/ContentHelperFeatureTestTrait.php
…elper

REST API Refactor: Base classes and Content Helper namespace implementation
@acicovic acicovic added this to the 3.17.0 milestone Oct 17, 2024
@acicovic acicovic self-assigned this Oct 17, 2024
@acicovic
Copy link
Collaborator Author

I can confirm that tests now also run on PHP 8.4 in experimental mode, and that PHP 8.2 runs with code coverage.

It's also worth noting that testing on PHP 8.4 surfaces some deprecation messages, and it seems that many integration tests are failing as well. Since many of the failures are about internal endpoints, I suggest merging our API refactoring work before tending to these.

@acicovic acicovic changed the base branch from develop to refactor/internal-api October 17, 2024 10:17
@acicovic acicovic changed the base branch from refactor/internal-api to develop October 17, 2024 10:18
@acicovic
Copy link
Collaborator Author

I tried to base this upon our refactoring branch, but chaos ensued, so I went back to develop for now.

@acicovic acicovic changed the base branch from develop to refactor/external-services October 18, 2024 12:58
@acicovic acicovic changed the base branch from refactor/external-services to develop October 18, 2024 13:11
@acicovic
Copy link
Collaborator Author

Closing in favor of #2878 because I broke this PR with changing bases.

@acicovic acicovic closed this Oct 18, 2024
@acicovic acicovic deleted the update/add-php-8.4-to-tests-and-move-pcov-to-php-8.2 branch October 18, 2024 13:25
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.

2 participants