Problem/Motivation

Discovered whilst working on #3393170: [random test failure] in GenerateThemeTest::testGeneratingFromAnotherThem

In \Drupal\BuildTests\Framework\BuildTestBase::getCodebaseFinder we don't exclude the node dependencies from being copied.

Steps to reproduce

Proposed resolution

Exclude directory core/node_modules in \Drupal\BuildTests\Framework\BuildTestBase::getCodebaseFinder.

It's not needed, cause slowness and disk-space issues when used in a repeated run test.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3396574

Command icon Show commands

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

Spokje created an issue. See original summary.

spokje’s picture

Status: Active » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Won't pretend I know know that system but the idea of excluding node_modules makes sense.

catch’s picture

Version: 11.x-dev » 10.1.x-dev
Status: Reviewed & tested by the community » Fixed

Yes this just looks like an oversight.

I started wondering whether we should try to use (or find a way to add a common default for) $settings['file_scan_ignore_directories'] but then persuaded myself that just hardcoding this here is fine.

Committed/pushed to 11.x, cherry-picked to 10.2.x and 10.1.x, thanks!

  • catch committed 2265d661 on 10.1.x
    Issue #3396574 by Spokje: Exclude copying 'core/node_modules' in...

  • catch committed 01d61d0f on 10.2.x
    Issue #3396574 by Spokje: Exclude copying 'core/node_modules' in...

  • catch committed 465cb227 on 11.x
    Issue #3396574 by Spokje: Exclude copying 'core/node_modules' in...
catch’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.