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

[CMSP-676] WP Redis PHP 8.3 compatibility checks #446

Merged
merged 21 commits into from
Oct 13, 2023
Merged

Conversation

jazzsequence
Copy link
Contributor

@jazzsequence jazzsequence commented Oct 12, 2023

  • moves all PHP Unit tests from Circle to GH Actions
  • adds pantheon-systems/wpunit-helpers
  • removes install-wp-tests.sh from version control (installed via wpunit-helpers)
  • updates the sniff to ignore on one sniff in object-cache.php

@jazzsequence jazzsequence changed the title Cmsp-676 [CMSP-676] WP Redis PHP 8.3 compatibility checks Oct 12, 2023
@jazzsequence jazzsequence marked this pull request as ready for review October 12, 2023 21:47
@jazzsequence jazzsequence requested review from a team as code owners October 12, 2023 21:47
so they're easier to see and because I'm a dork
.github/workflows/lint-test.yml Outdated Show resolved Hide resolved
bin/install-local-tests.sh Outdated Show resolved Hide resolved
bin/phpunit-redis-test.sh Outdated Show resolved Hide resolved
@jazzsequence jazzsequence requested a review from pwtyler October 13, 2023 15:00
Comment on lines +94 to +95
if [ ${{ matrix.redis_enabled }} = 'true' ]; then
export WP_REDIS_USE_CACHE_GROUPS=1
Copy link
Member

Choose a reason for hiding this comment

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

if you made ${{ matrix.redis_enabled }} 1 and 0, you could just export the env variable and lose the conditional but then you don't have the emoji 😁

Copy link
Contributor Author

Choose a reason for hiding this comment

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

keeping the damn emoji. 😀

"shasum": ""
},
"require": {
"php": "^7.1 || ^8.0"
"php": "^8.1"
Copy link
Member

Choose a reason for hiding this comment

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

could this cause us to unintentionally drop 7.4 compat?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so.

There aren't any required libraries that are consumed by users. So there's nothing that Composer knows about that users on 7.4 would care about. For our 7.4 testing, we composer update specifically because some of the dependencies are different between 7.x and 8.x (for the 8.x builds we don't need to composer update, we can just composer install). I think this must've gotten auto-changed due to some dependency package requiring a higher version of PHP.

@jazzsequence jazzsequence merged commit 9b4bb9c into main Oct 13, 2023
@jazzsequence jazzsequence deleted the cmsp-676 branch October 13, 2023 18:01
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.

3 participants