Problem/Motivation

Finder's exclude is overly aggressive. It finds any vendor folder (as an example) and excludes it. That means thinks like #3088095: Automatic Updates isn't ready to handle composer sites, but has 3rd party dependencies of its own where we are trying to bundle php-signify in a vendor folder as part of the project fall on their face in build tests.

Proposed resolution

Switch to use notPath instead.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

heddn created an issue. See original summary.

heddn’s picture

Title: BuildTestBase->copyCodebase overly aggressive » BuildTestBase->copyCodebase overly aggressive in exclusions
Status: Active » Needs review
FileSize
2.52 KB

Probably needs more tests, but let's see how things go to begin with.

heddn’s picture

And here's some tests.

Status: Needs review » Needs work

The last submitted patch, 3: 3088400-3_test_only.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

heddn’s picture

Status: Needs work » Needs review
FileSize
3.17 KB
500 bytes

phpcs

The last submitted patch, 3: 3088400-3.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

Status: Needs review » Needs work

The last submitted patch, 5: 3088400-4.patch, failed testing. View results

heddn’s picture

Status: Needs work » Needs review
FileSize
517 bytes
3.23 KB
Mile23’s picture

Status: Needs review » Reviewed & tested by the community

LGTM.

The tests still demonstrate that we didn't copy the root vendor directory.

alexpott’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

Committed and pushed 3b6698e973 to 9.0.x and aa9d5a31dd to 8.9.x. Thanks!

Will backport once 8.8.x code freeze is over.

+++ b/core/tests/Drupal/BuildTests/Framework/BuildTestBase.php
@@ -540,13 +540,12 @@ public function copyCodebase(\Iterator $iterator = NULL, $working_dir = NULL) {
+        ->ignoreUnreadableDirs()

+1

  • alexpott committed 3b6698e on 9.0.x
    Issue #3088400 by heddn, Mile23: BuildTestBase->copyCodebase overly...

  • alexpott committed aa9d5a3 on 8.9.x
    Issue #3088400 by heddn, Mile23: BuildTestBase->copyCodebase overly...
alexpott’s picture

Status: Patch (to be ported) » Fixed

Discussed with @catch we agreed this was good to backport to 8.8.x

  • alexpott committed 8d8963f on 8.8.x
    Issue #3088400 by heddn, Mile23: BuildTestBase->copyCodebase overly...

Status: Fixed » Closed (fixed)

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