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

upkeep/php-reqs: Update PHP compat check to prevent fatal error #291

Merged
merged 8 commits into from
Aug 12, 2024

Conversation

Sidsector9
Copy link
Member

Description of the Change

Recently Publisher Media Kit reported a fatal issue caused due to redeclaration of a function across our 10up plugins.
Ref: 10up/publisher-media-kit#196

This PR fixes that by using 10up/wp-compat-validation-tool.

How to test the Change

Try running this PR on a PHP env lesser than the minimum supported version (7.4) and see the plugin gracefully exit with an error message in the admin screen.

Changelog Entry

Changed - Update PHP compatibility check by using 10up/wp-compat-validation-tool

Credits

Props @Sidsector9

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@Sidsector9 Sidsector9 self-assigned this Jul 9, 2024
@github-actions github-actions bot added this to the 2.8.0 milestone Jul 9, 2024
@github-actions github-actions bot added the needs:code-review This requires code review. label Jul 9, 2024
@jeffpaul jeffpaul requested review from a team and faisal-alvi and removed request for dkotter, jeffpaul and a team July 9, 2024 13:33
@claudiulodro
Copy link

This solves it nicely in my testing. Thanks!

Copy link
Member

@faisal-alvi faisal-alvi left a comment

Choose a reason for hiding this comment

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

@Sidsector9 LGTM but Cypress and Linting workflows are failing, could you please check/address them?

@jeffpaul
Copy link
Member

jeffpaul commented Aug 1, 2024

@Sidsector9 still seeing Cypress/WP trunk check failing here, can you help look into resolving that?

@github-actions github-actions bot added the needs:refresh This requires a refreshed PR to resolve. label Aug 12, 2024
@github-actions github-actions bot removed the needs:refresh This requires a refreshed PR to resolve. label Aug 12, 2024
@Sidsector9
Copy link
Member Author

Sidsector9 commented Aug 12, 2024

@jeffpaul this is expected because the composer install step doesn't exist in the develop branch used by build release zip. It is added in this PR. Once this is merged to develop, tests will pass.

All tests are passing locally:

Screenshot 2024-08-12 at 10 46 26 PM

@@ -10,10 +10,10 @@ jobs:
name: Push to trunk
runs-on: ubuntu-latest
steps:
- name: Checkout code
Copy link
Member

Choose a reason for hiding this comment

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

any reason this was removed? they can be helpful when reviewing check runs that fail to see where things are going wrong

Copy link
Member Author

@Sidsector9 Sidsector9 Aug 12, 2024

Choose a reason for hiding this comment

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

You're correct, removed it mistakenly, fixed it in bbf74d7.

@jeffpaul jeffpaul merged commit beeccd8 into develop Aug 12, 2024
10 of 13 checks passed
@jeffpaul jeffpaul deleted the upkeep/php-reqs branch August 12, 2024 19:05
@dkotter dkotter removed this from the 2.8.0 milestone Nov 12, 2024
@dkotter dkotter added this to the 2.8.1 milestone Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs:code-review This requires code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants