Problem/Motivation
During Drupal 8, we added support for \Drupal::MINIMUM_SUPPORTED_PHP
, which defines a PHP version that allows sites to run, but displays warnings on update and errors on the status report for existing sites. (New installations are not allowed except within the test runner.)
However, numerous tests now fail when MINIMUM_SUPPORTED_PHP
is actually used, either due to issues with the test or possible regressions in HEAD.
One of these tests is Drupal\Tests\system\Functional\UpdateSystem\UpdateScriptTest
Proposed resolution
Fix the tests.
This issue has three MRs:
- 3265376-FAIL lowers the minimum supported PHP (and skips a couple out-of-scope tests) to demonstrate the problem in HEAD.
- 3265376-update-script-test combines the above with a fix. Its PHP 7.3 test run should prove that the test now works on a version below
MINIMUM_SUPPORTED_PHP
. - 3265376-fix-only is the version for commit, demonstrating that the fix alone also passes on HEAD.
Remaining tasks
Followups for other issues and to actually change the PHP version.
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
N/A
Issue fork drupal-3265376
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
xjmUnlike the other two, this one has a simple obvious fix.
Comment #6
xjmExplained the three MRs in the IS.
Comment #7
xjmComment #8
xjmComment #9
xjmComment #10
xjmLooks like there are a couple other tests to investigate.
Comment #11
xjmThe other out-of-scope test failures are due to #3265412: QuickStartTestBase is incompatible with the current implementation of MINIMUM_SUPPORTED_PHP.
Comment #12
xjmThere we go. The FAIL MR demonstrates the bug with:
The combined MR passes on PHP 7.3 and proves the fix addresses the failure of this particular test, and the fix-only patch is committable as it passes on both PHP 8.0 and PHP 7.3.
This is ready for review.
Comment #13
daffie CreditAttribution: daffie commentedThe code changes look good to me.
The combination of the Mr that fails and the MR with the fix convincing.
For me it is RTBC.
Comment #14
alexpottCommitted and pushed 3f55b8268f2 to 10.0.x and ffdbfa52fe1 to 9.4.x and a17f93cce31 to 9.3.x. Thanks!