Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
See #2927746-62: Update Symfony components to 3.4.*
Proposed resolution
Try to support Pecl Yaml and remove this deprecation
Remove deprecation from whitelist in the deprecation bridge listener.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#23 | 2937543.patch | 2.1 KB | JeremySkinner |
#14 | 2937543-14.patch | 2.4 KB | alexpott |
#14 | 10-14-interdiff.txt | 659 bytes | alexpott |
#10 | 2937543-10.patch | 3.04 KB | alexpott |
#8 | 2937543-8.patch | 3.04 KB | alexpott |
Comments
Comment #2
larowlanComment #3
fgmRelying on a rare PECL extension is not really a solution: many sites won't have it and will have to rely on a user-space implementation anyway.
Comment #4
anavarre.
Comment #5
alexpottLet's see what breaks.
Comment #6
BerdirThis deprecation message is thrown *a lot*, it actually broke chrome/selenium based tests for me because chrome died with an ERR_RESPONSE_HEADERS_TOO_BIG error.
So I guess we need to try and get rid of this asap.
@fgm: I think there is a misunderstanding. Nobody wants to make the yaml extension a requirement. We already optionally support it, I think the comment from @alexpott was that we need the option to have compatibility between the two different implementations.
Was about to upload the same patch as @alexpott and got a crosspost conflict :)
Comment #7
Berdirarg, stupid crosspost resolution.. reuploading.
Comment #8
alexpottLet's force drupalci to use Symfony YAML just so we can see.
Comment #9
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedI think you want
==
here :)Comment #10
alexpottMy only excuse is it was late... lol.
Comment #12
BerdirYeah, didn't spot that either :) Also, "if (FALSE == TRUE)", for days when if (FALSE) is too easy ;)
Strange, I did run the config tests locally and they passed for me, I don't have the yaml extension enabled either.
Comment #13
BerdirComment #14
alexpottIt's because the \Drupal\Tests\config\Functional\ConfigSingleImportExportTest has specific code for when the PECl yaml extension is loaded. So actually we're good to go here.
Comment #15
BerdirAh I see, and it was enabled but the we didn't use it, which confused the test. That makes sense.
Lets get this in then. There are hundreds of such deprecation messages on the module patch and others when parsing a lot of yml files, enough to break running tests.
Comment #16
andypost+1 to get this in, really hard to by-pass it running contrib tests
Comment #19
alexpottThanks @catch
Comment #21
hchonovThis has to be backported to 8.5.x. I've described in #2979317: Duplicate deprecation header messages break Chromedriver that due to the flag
SymfonyYaml::PARSE_KEYS_AS_STRINGS
javascript functional tests might fail when being run with chrome in Drupal 8.5.x.I've reopened the issue, but feel free to close it and probably commit this as part of the referenced issue, where I've provided a test that unfortunately has to be run manually as we don't yet have chrome tests on the CI.
Comment #23
JeremySkinner CreditAttribution: JeremySkinner commentedHere's a version of the patch backported to 8.5.x
Comment #24
JeremySkinner CreditAttribution: JeremySkinner commentedComment #25
BerdirSetting back to fixed, only critical issues have a chance to be backported to 8.5 now.