CoreRecipesTest is slow

Created on 18 July 2024, 5 months ago
Updated 28 August 2024, 4 months ago

Problem/Motivation

CoreRecipesTest appears to be the single longest running functional test, this is because it uses a dataprovider to install 25 different recipes, meaning core has to be installed 25 times.

See https://git.drupalcode.org/project/drupal/-/jobs/2157400 test run duration 4m25s. All other functional test jobs tend to finish in 4m or less.

vs https://git.drupalcode.org/project/drupal/-/jobs/2157401 4m

or https://git.drupalcode.org/project/drupal/-/jobs/2157404 3m29s

Steps to reproduce

Proposed resolution

I tried to ditch the data provider and just apply every recipe twice in a foreach loop instead, but got:

1) Drupal\FunctionalTests\Core\Recipe\CoreRecipesTest::testApplyRecipe
In ConfigConfigurator.php line 47:
                                                                               
  The configuration 'block.block.claro_messages' exists already and does not   
  match the recipe's configuration                                             
    

Can we do something more like GenericTest where we add a test for every recipe, but where that test is a minimal subclass of a recipe test base class?

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Fixed

Version

11.0 πŸ”₯

Component
recipe systemΒ  β†’

Last updated 2 days ago

Created by

πŸ‡¬πŸ‡§United Kingdom catch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024