- Issue created by @wim leers
- Open on Drupal.org โCore: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
over 1 year ago Not currently mergeable. - @wim-leers opened merge request.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 6:58am 29 May 2023 - last update
over 1 year ago 783 pass, 6 fail - Assigned to wim leers
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Looks like
OverwriteExistingPackagesValidatorTest
now fails. Which kinda makes sense โ it relates to the changes that 2.5.6/2.5.7 made โ at @phenaproxima's request by the way! ๐ - last update
over 1 year ago 783 pass, 6 fail - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Locally, I was not getting
Testing Drupal\Tests\package_manager\Kernel\OverwriteExistingPackagesValidatorTest F 1 / 1 (100%) Time: 00:24.096, Memory: 4.00 MB There was 1 failure: 1) Drupal\Tests\package_manager\Kernel\OverwriteExistingPackagesValidatorTest::testNewPackagesOverwriteExisting Failed asserting that Drupal\package_manager\Event\PostCreateEvent Object (...) is an instance of class "Drupal\package_manager\Event\PreApplyEvent". /var/www/html/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:122 /var/www/html/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:55 /var/www/html/modules/contrib/automatic_updates/package_manager/tests/src/Kernel/PackageManagerKernelTestBase.php:216 /var/www/html/modules/contrib/automatic_updates/package_manager/tests/src/Kernel/OverwriteExistingPackagesValidatorTest.php:155 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
but:
Testing /Users/wim.leers/core/modules/contrib/automatic_updates/package_manager/tests/src/Kernel E 1 / 1 (100%) Time: 00:02.666, Memory: 10.00 MB There was 1 error: 1) Drupal\Tests\package_manager\Kernel\OverwriteExistingPackagesValidatorTest::testNewPackagesOverwriteExisting Undefined array key "type" /Users/wim.leers/core/modules/contrib/automatic_updates/package_manager/src/ComposerInspector.php:326 /Users/wim.leers/core/modules/contrib/automatic_updates/package_manager/tests/src/Traits/ComposerInstallersTrait.php:25 /Users/wim.leers/core/modules/contrib/automatic_updates/package_manager/tests/src/Kernel/OverwriteExistingPackagesValidatorTest.php:33 /Users/wim.leers/core/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
(That was happening for the
Chi-teck/drupal-code-generator
package.)So I had to first overcome that.
Fix just pushed.
Now I get the same test failure. ๐
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
The hard failures imply that if you're on the latest stable Composer version, Package Manager/Automatic Updates will not work. That makes this a hard blocker for the alpha AFAICT.
- last update
over 1 year ago 758 pass, 1 fail - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 794 pass - Issue was unassigned.
- ๐บ๐ธUnited States phenaproxima Massachusetts
Is there a reason we don't just bump our Composer requirement to ~2.5.7, rather than build in more workarounds for older versions?
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
There will always be something in upcoming Composer versions that's new/different, won't there be? We gotta draw the line somewhere.
2.5.5
has been out for >2 months.2.5.7
for a few days.But โฆ sure, I'm not opposed to that ๐ ๐
- ๐บ๐ธUnited States phenaproxima Massachusetts
In this case, though, we're specifically bumping it to avoid regressions and things that directly affect us. We're not just bumping it for the sake of bumping it.
So IMHO that's the appropriate course of action, rather than adding even more code to an existing, complex workaround.
- Assigned to wim leers
- Status changed to Needs work
over 1 year ago 12:58pm 30 May 2023 - Assigned to tedbow
- Status changed to RTBC
over 1 year ago 1:47pm 30 May 2023 - ๐บ๐ธUnited States tedbow Ithaca, NY, USA
re #12 I think since this Drupalcon is coming up next wee and we want people to test and install Auto Updates on an Alpha release(to be cut soon) we should not rely on a version of composer that came out last week. I think it is much likely people will already have a version 2.5.5 that was released over 2 months ago.
Many people may not want to update Composer or won't be able to because of hosting. Also the fix we want in #11455 has a BC warning so it is likely that some sites might not be able to update to it because will make another Composer plugin break. Or if update at Drupalcon they could get weird behavior because it breaks another plugin(if they were to allow it with our module). Also the fix we want already caused 1 regression https://github.com/composer/composer/pull/11481
- Status changed to Needs work
over 1 year ago 5:38pm 30 May 2023 - ๐บ๐ธUnited States tedbow Ithaca, NY, USA
I fix needed otherwise looks good
- last update
over 1 year ago 758 pass, 1 fail - last update
over 1 year ago 798 pass - Issue was unassigned.
- Status changed to RTBC
over 1 year ago 12:51pm 31 May 2023 - last update
over 1 year ago 799 pass - ๐บ๐ธUnited States tedbow Ithaca, NY, USA
Merged 3.0.x. Looks good to commit when tests pass. Thanks!
- Status changed to Needs work
over 1 year ago 3:52am 1 June 2023 - ๐ฎ๐ณIndia omkar.podey
omkar.podey โ made their first commit to this issueโs fork.
- last update
over 1 year ago 808 pass - Status changed to Needs review
over 1 year ago 7:29am 2 June 2023 - Status changed to RTBC
over 1 year ago 8:00am 2 June 2023 - Status changed to Needs review
over 1 year ago 12:55pm 2 June 2023 - ๐บ๐ธUnited States phenaproxima Massachusetts
One thing: can we at least have a
@todo
to remove the metapackage workaround when 2.5.7 is the minimum required version of Composer? ๐ - last update
over 1 year ago 800 pass - Status changed to RTBC
over 1 year ago 3:39pm 6 June 2023 - ๐บ๐ธUnited States chrisfromredfin Portland, Maine
Tested manually and it fixed the problem for me (in DrupalPod / on 2.5.7). I will also close https://www.drupal.org/project/automatic_updates/issues/3365125 ๐ realpath() cannot take NULL but NULL expected for metapackages Closed: duplicate
- last update
over 1 year ago 800 pass - last update
over 1 year ago 800 pass -
phenaproxima โ
committed 747c518f on 3.0.x authored by
Wim Leers โ
Issue #3363259 by Wim Leers, tedbow, phenaproxima, omkar.podey:...
-
phenaproxima โ
committed 747c518f on 3.0.x authored by
Wim Leers โ
- Status changed to Fixed
over 1 year ago 4:31pm 6 June 2023 Automatically closed - issue fixed for 2 weeks with no activity.