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
\Drupal\Tests\Component\Serialization\YamlTest::providerYamlFilesInCore() scans all yaml files in ./core. Once we have a js build process we'll have core/node_modules and this can have yml inside. We shouldn't be scanning in there.
Proposed resolution
Stop scanning in core/node_modules.
Steps to reproduce:
- Applied the latest on #2488860: Bring phpunit bridge into drupal and use it for unit tests and simpletest to handle Deprecation - this detects deprecated core path and Symfony 3 contains a deprecated code path for duplicate yaml keys.
- Go to ./core and run
npm install
- run
phpunit tests/Drupal/Tests/Component/Serialization/YamlTest.php
Note you will need the pecl yaml parser installed.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#11 | 2874904-drupal8.4-10.patch | 1.04 KB | Mixologic |
#11 | 2874904-drupal8.5-10.patch | 1.04 KB | Mixologic |
#7 | 2874904-7.patch | 1.04 KB | Mixologic |
#3 | 2874904-3.patch | 1.03 KB | alexpott |
Comments
Comment #2
alexpottComment #3
alexpottSo the vendor exclude is wrong because we're scanning from
core/
.Comment #6
dawehnerThank you @alexpott
This fix is needed for not failing when
yarn install
is executed on the testbot.Comment #7
MixologicNeeded a reroll
Comment #8
MixologicComment #9
dawehnerI was about to suggest: Using
$this->core/node_modules
would be way more readable, but then I realized, this test is for a component, too bad.Comment #11
MixologicTurns out that 8.4.x, 8.5.x and 8.6.x have different contents in that file.
Comment #14
larowlanCommitted as 409b393 and pushed to 8.6.x
Cherry-picked as b6408bb and pushed to 8.5.x
Even though 8.4.x is criticals only, this impacts the test infrastructure, and we're going to want to keep being able to test on 8.4, so committed 625a4d6 and pushed to 8.4.x.
Thanks folks