google / site-kit-wp

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
https://sitekit.withgoogle.com
Apache License 2.0
1.25k stars 291 forks source link

Fix PHPUnit tests running on WP nightly #1883

Closed aaemnnosttv closed 4 years ago

aaemnnosttv commented 4 years ago

Bug Description

Currently we have one job which runs our PHPUnit tests against WordPress trunk/nightly but it also uses the nightly version of PHP which is currently PHP 8. This has resulted in that job failing consistently ever since PHP 8 became the version used in PHP nightly. While some work has been done to try to fix this (#1555), it doesn't seem like this will be working anytime soon as our dependencies (including our minimum supported version of PHP 5.6) aren't completely compatible with PHP 8 yet.

With WP 5.5 coming very soon, we've already seen at least one issue that was caught by E2E (https://github.com/google/site-kit-wp/issues/1710) - let's make sure we don't miss anything due to a broken job.

Rather than introduce yet another job in CI, let's update the current job that runs PHPUnit on the WP nightly build to use a stable version of PHP so that this job is useful again. We can create a new issue in the future for adding a PHP 8/nightly job in the future as it will likely require additional changes to support.


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation Brief

QA Brief

Changelog entry

felixarntz commented 4 years ago

IB ✅

cole10up commented 4 years ago

Verified fixed.

image

Passed QA ✅