- Assigned to kunal.sachdev
- @kunalsachdev opened merge request.
- Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 1:28pm 24 January 2023 - ๐บ๐ธUnited States tedbow Ithaca, NY, USA
The summary currently still has "Possible solutions:" so it should updated describing what the current merge request is meant to do. Also we specify which merge request is the chosen fix, and close the other if that is appropriate
- Assigned to kunal.sachdev
- Status changed to Needs work
almost 2 years ago 1:54pm 27 January 2023 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
@tedbow identified an extra thing we need to protect against. I posted a proposal on how to do that.
I identified a few clarity nits โฆ but also just spotted one more thing we need to test: https://github.com/cweagans/composer-patches#allowing-patches-to-be-appl... โ we should expand our test so that the
drupal/alpha
project specifies adrupal/core
patch, which will be installed if and only ifconfig.extra.enable-patching === true
.GREAT job on getting this test to work! ๐คฉ It looks excellent! With just these few additions (from @tedbow and the one I just asked for), we'll be able to be highly confident in our support for https://github.com/cweagans/composer-patches ๐
- ๐ฎ๐ณIndia kunal.sachdev
So, for the build test failure
Failed to copy "/tmp/.package_manager1138399f-efbb-4de5-9615-4d8919835d23/cYjbXr4SVceHzcM14tPFfA2Jnk3JCLZvpjYgEVtk-Xo/vendor/drupal/coder/.git/objects/pack/pack-4a9af0fe0580e9f82296d111933506654039d16a.idx" to "/tmp/build_workspace_1f164ac4a984a2ad22cbee436c59452bfdpZqI/project/vendor/drupal/coder/.git/objects/pack/pack-4a9af0fe0580e9f82296d111933506654039d16a.idx". in Drupal\package_manager\Stage->apply() (line 495 of modules/contrib/automatic_updates/package_manager/src/Stage.php)
which is currently not there as we have a temp fix in GitExcluder , I tried to update drupal/core with Automatic Updates in a real drupal project:- Created drupal project using
composer create-project drupal/recommended-project:10.0.0 ten_zero --no-install --no-interaction
- Ran following commands :
composer config allow-plugins.composer/installers true composer config allow-plugins.drupal/core-project-message true composer config allow-plugins.drupal/core-composer-scaffold true
- Ran
composer require drupal/core-dev
as drupal/core-dev has a dependency ondrupal/coder
- Confirmed presence of the .git folder in
vendor/drupal/coder
- Updated drupal/core from 10.0.0 to 10.0.2 without any problem with Automatic Updates
This points out that we may not have this problem in real time.
- Created drupal project using
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Discussed in detail with @tedbow & @kunal.sachdev.
Conclusions:
- doing a build test for
composer-patches
is something that would be good to have, but it's post-MVP - instead, we do want for MVP a build test that proves there is a reasonable UX whenever composer has a hard failure โ no matter whether that is due to a patch failing to apply from
composer-patches
or whether that is from a networking error, wrong requirement, whatever โ this needs a separate issue - in fact, @tedbow spotted one more thing we should validate:
composer-patches
should never be installed nor removed โ it should stay exactly as it is: so if it's absent in theactive
, it should be instage
, and vice versa
- doing a build test for
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Executing #27:
- doing a build test for
composer-patches
is something that would be good to have, but it's post-MVP - instead, we do want for MVP a build test that proves there is a reasonable UX whenever composer has a hard failure โ no matter whether that is due to a patch failing to apply from
composer-patches
or whether that is from a networking error, wrong requirement, whatever โ this needs a separate issue
Done:
- ๐ Add functional test that proves there is reasonable UX whenever a stage event subscriber has an exception Fixed
- ๐ Add build test to test cweagans/composer-patches end-to-end Closed: won't fix
The third point is up to @kunal.sachdev ๐
- doing a build test for
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Extracted the build test work Kunal did to ๐ Add build test to test cweagans/composer-patches end-to-end Closed: won't fix 's MR, while preserving Kunal's commits ๐
Just pushed a commit that now reverts those changes from this MR.
- Assigned to wim leers
- Status changed to Needs review
almost 2 years ago 11:24am 7 February 2023 - Assigned to kunal.sachdev
- Status changed to Needs work
almost 2 years ago 6:26pm 7 February 2023 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Note that this still uses
::getStageComposer()
and::getActiveComposer()
, but that was already the case in HEAD, so let's not delay it over that.This merge request is looking great, but is still in need of a range of finishing touches before this is RTBC. I'm confident you can get that done by the next time we meet, @kunal.sachdev! ๐
- Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 2:24pm 8 February 2023 - Status changed to RTBC
almost 2 years ago 9:09pm 8 February 2023 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Excellent work here, @kunal.sachdev! ๐
Docs: โ
Tests: โIssue summary update: just did that.
- Status changed to Needs review
almost 2 years ago 2:35pm 9 February 2023 - ๐บ๐ธUnited States phenaproxima Massachusetts
Found a few small things that aren't blocking, and then one thing that looks like a genuine mistake that I'm surprised is not breaking tests.
- Assigned to kunal.sachdev
- Status changed to Needs work
almost 2 years ago 6:40am 10 February 2023 - Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 8:08am 10 February 2023 - Assigned to phenaproxima
- Status changed to RTBC
almost 2 years ago 11:52am 13 February 2023 - Status changed to Needs work
almost 2 years ago 6:45pm 13 February 2023 - ๐บ๐ธUnited States tedbow Ithaca, NY, USA
Test failing on 7.4 ,core 9.5
- Status changed to RTBC
almost 2 years ago 7:21pm 13 February 2023 - ๐บ๐ธUnited States tedbow Ithaca, NY, USA
RTBC again. I haven't reviewed this more, just fixed the php 7.4 error(pretty sure tests will pass now)
Leaving assigned to @phenaproxima
- Status changed to Needs work
almost 2 years ago 4:46am 14 February 2023 - ๐บ๐ธUnited States tedbow Ithaca, NY, USA
Sorry I know this issue has been long slog. See MR comments
- Assigned to kunal.sachdev
- ๐บ๐ธUnited States tedbow Ithaca, NY, USA
- Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 11:28am 14 February 2023 - Status changed to RTBC
almost 2 years ago 6:33pm 14 February 2023 -
tedbow โ
committed c5a246bf on 8.x-2.x authored by
kunal.sachdev โ
Issue #3252299 by kunal.sachdev, phenaproxima, tedbow, Wim Leers:...
-
tedbow โ
committed c5a246bf on 8.x-2.x authored by
kunal.sachdev โ
- Status changed to Fixed
almost 2 years ago 7:01pm 14 February 2023 - ๐บ๐ธUnited States tedbow Ithaca, NY, USA
๐ Thanks @kunal.sachdev, @Wim Leers, and @phenaproxima
And @cweagans for making a plugin that is so useful to so many people in Drupal that we can't just ignore it๐
โ๏ธ gif reserved for critical, core-mvp issues
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
YAY!
Unpostponed ๐ Add build test to test cweagans/composer-patches end-to-end Closed: won't fix .
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
A regression was introduced shortly before commit, spotted by @kunal.sachdev: ๐ Fix language nit in package_manager_help() Fixed .
- ๐บ๐ธUnited States mark_fullmer Tucson
I saw this recent comment from the maintainer of composer-patches: https://github.com/cweagans/composer-patches/issues/411#issuecomment-142...
main doesn't resolve patches from dependencies anymore.
I take that to mean that a future release of
cweagans/composer-patches
simply won't allow patches from this module to apply to a site: the patches *must* be defined in the site'scomposer.json
file.Testing on dev-main of Composer Patches (#f88fd4) seems to confirm this. Can someone corroborate this? Does this mean this approach for automatic_updates simply won't work?
- ๐บ๐ธUnited States cweagans Boise, ID, USA
I can corroborate that :) probably donโt take action on that right away though. Currently traveling, but Iโve gotten a lot of feedback on that and Iโm thinking it through a bit more.
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
@mark_fullmer Thanks for bringing that to our attention! But โฆ
- We need to ensure the existing version of
composer-patches
also works reliably! - In
๐
Tighten ComposerPluginsValidator: support only specified version constraint
Fixed
, we're tightening support for composer plugins further: only the known to be supported version range will be allowed. That means we'll be forced to revisit the validation strategy when a new major version of
composer-patches
is released โฆ and this very upstream change proves that that is a valuable and essential requirement ๐๐
- We need to ensure the existing version of