Problem/Motivation
Recipe packaging tests using composer commands have started to fail. Example: https://git.drupalcode.org/issue/drupal-3608303/-/jobs/10722905.
From investigation, the failures can be reproduced locally by updating the composer executable to 2.10.2. The tests do not fail when composer executable version is changed back to 2.9.8.
There was an update to the CI images today, so the issue is likely related to that.
Steps to reproduce
Proposed resolution
There appears to be additional output from composer require commands captured from stdout that includes the line:
No security vulnerability advisories found.
This goes away if the env variable COMPOSER_NO_AUDIT is set to 1.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3608308
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:
- 3608308-composer-2.10-causing
changes, plain diff MR !16214
Comments
Comment #2
godotislateComment #3
godotislateComment #5
godotislateBumping to critical because this is blocking builds.
Comment #6
godotislateMR: https://git.drupalcode.org/project/drupal/-/merge_requests/16214
The PHPUnit Build job is now passing. There's a ignorable warning in the PHPUnit Unit job for PHP 8.6, but that doesn't need to be dealt with here.
Comment #7
macsim commentedAdding the NRQI tag but to me it's RTBC
The patch is simple and PHPUnit Build job is now green
Comment #8
macsim commented... forgot the tag ...
Comment #9
godotislateComment #14
catchCommitted/pushed to main, 11.x and 11.4.x and 11.3.x - from needs review since this had a +1 from macsim, it's trivial, and HEAD is broken.
Comment #17
mondrake#6
It's due to PHP RFC: Deprecate returning values from __construct() and __destruct(), that was committed in https://github.com/php/php-src/pull/21982.
AFAICS it's an upstream issue for Prophecy, I filed https://github.com/phpspec/prophecy/issues/672