Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2025 at 18:16 UTC
Updated:
28 Mar 2025 at 19:29 UTC
Jump to comment: Most recent
After #3484966: Allow executing unit tests on multiple PHP images without having to duplicate unit tests across all environment combinations and #3512443: Add a PHP 8.5 image for early testing we can now get Unit tests run under PHP 8.5, allowing failures.
This way we can spot deprecations and/or behavior changes well in advance of PHP 8.5 release.
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 #4
andypostFixed image tag to `dev`
Comment #5
andypostI think we can reuse the issue to add daily test with 8.5
Comment #6
andypostBuild tests fail for reason as Prophecy is strict in composer for supported versions
Comment #7
andypostbut kernel test repeatedly fail
Comment #8
mondrakeIMHO we should not change the PHP default in this issue. Only use PHP 8.5 to run unit tests (no kernel, no build, no functional)
Comment #9
mondrakeI suggest to address GD failures of the GDToolkit elsewhere.
Comment #10
mondrakeftr, #3497431: Deprecate TestDiscovery test file scanning, use PHPUnit API instead would add printout by run-tests.sh of the PHP version in use, which now is missing. ATM we would only be able to see it if a test fails and the full PHPUnit test class report is output.
Comment #11
smustgrave commentedSeems pretty straight forward lets do it.
personal question how would contrib opt into 8.5?
Also as someone mentioned in slack thank you for keeping up with these.
Comment #12
mondrake#11 well that's a new image thanks to @andypost, following the scheme of the Docker images in use by Drupal - so theoretically it should be available to contrib too. But not my piece of cake, maybe some fine guys from the infra team can comment.
Comment #13
andypostI bet contrib testing needs some changes in templates but surely doable
Comment #14
andypostFiled for contrib #3513062: Allow opt-in PHP 8.5 testing
Comment #16
catchCommitted/pushed to 11.x, thanks!
We should add PHP 8.5 testing to Drupal 10.5.x too, but I think we can do that with a full pipeline once 11.x is green on a beta or similar. A lot of changes in the pipeline yaml between 10.x and 11.x these days so backporting this will be tricky.
Comment #18
andypostas of core 11.2 expected in June but first alpha of PHP 8.5 in July the only thing to change is
CORE_PHP_NEXTafter it #3513062-2: Allow opt-in PHP 8.5 testingPS: usually in PHP lots of deprecations are commited in late beta cycle(