Closed (fixed)
Project:
Drupal core
Version:
10.4.x-dev
Component:
composer
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2024 at 11:43 UTC
Updated:
17 Dec 2024 at 23:29 UTC
Jump to comment: Most recent
There's new release which breaks lots of tests https://github.com/twigphp/Twig/blob/v3.15.0/CHANGELOG
Upgrade and run tests
Upgrade and fix deprecations
- https://github.com/twigphp/Twig/pull/4335
- https://github.com/twigphp/Twig/pull/4398
- fix code and review
- commit
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 #2
andypostComment #4
andypostComment #5
andypostComment #6
andypostAdded the most breaking changes to summary
- https://github.com/twigphp/Twig/pull/4335
- https://github.com/twigphp/Twig/pull/4398
Comment #7
longwave@andypost given we are so close to 11.1/10.4 it might be worth just skipping the new deprecations and then fixing them individually in followups like we did for the last round in Twig?
Comment #8
andypost@longwave sounds like the best option!
Comment #10
andypostFiled plan issue #3488409: Fix twig 3.15 deprecations
PS: looks like few tests still needs tuning
Comment #11
andypostOn other hand there's only 3 places to fix in core and tests are green https://git.drupalcode.org/project/drupal/-/merge_requests/10247
Comment #12
andypostAs new classes in-use - pinned the minimal version
Comment #13
andypostFixed deprecations as they are regular expressions, thanks @longwave
Comment #14
longwaveLooks good to me, I think we should just commit the fixes here given it is only changing Node to Nodes - not worth deferring that to a followup.
Ideally we will get this into both 11.1.0 and 10.4.0.
Comment #15
bbralaI agree, we should commit the fixes too if possible. Don't want the same as we did with 3.14.
Comment #16
bbralaThe code looks good. The split between node and nodes did confuse me a little when seeing the namespace still there, but that does make sense.
Id opt to fix with deprecation fixes. Since, as longwace argues, its pretty small change.
+1 on rtbc
Comment #17
longwaveCommitted and pushed to 11.x, 11.1.x, 10.5.x and 10.4.x. Thanks!
Comment #22
longwaveComment #23
longwaveComment #28
longwaveThis broke various tests on 10.4/10.5:
Comment #30
longwaveComment #31
spokjeFail in tests seems like a random
BlockCacheTestfail. RTBC-ingComment #34
longwaveCommitted and pushed to 10.5.x and 10.4.x, thanks!
Comment #36
andypostThere's 3.16 release but looks to downgrades detected https://github.com/twigphp/Twig/blob/v3.16.0/CHANGELOG
Added it for 10.4/10.5 in #3490183: Update Composer dependencies for 10.4.0