Lullabot / drupal9ci

Command Line Interface for implementing Continuous Integration in Drupal 9
GNU General Public License v3.0
161 stars 55 forks source link

Drupal Functional tests not running #48

Closed JakeMilburn closed 2 years ago

JakeMilburn commented 4 years ago

Drupal Unit tests run fine however I'm having trouble running tests in the Functional namespace that extend BrowserTestBase. I am using the config provided in the demo D8 repo.

cURL error 7: Failed to connect to localhost port 80: Connection refused This error is thrown. I'm pretty sure this is the test failing to connect to the db.

In phpunit.xml I've got the simpletest values set as <env name="SIMPLETEST_BASE_URL" value="http://localhost"/> <env name="SIMPLETEST_DB" value="mysql://root@127.0.0.1/drupal8"/>

This issue is the same as described here #35

Not too sure if the base_url is wrong as the DB connection values look correct. This is running in Circle CI. Any help is appreciated.

Screenshot 2020-02-03 at 10 05 05
xpersonas commented 4 years ago

I'm in the same boat here. Wish there was an answer. So far I'm unable to get past this.

deviantintegral commented 4 years ago

Is Apache trying to start, but erroring out? There should be a section further up with that step.

xpersonas commented 4 years ago

I'm not really seeing an error. I don't see apache exactly though. So I can't say for sure. I wish I could share my entire CircleCi workflow result.

I did see this with no other info/error...

#!/bin/bash -eo pipefail
/usr/bin/google-chrome --headless --no-sandbox --port=4444

Fontconfig warning: "/etc/fonts/fonts.conf", line 100: unknown element "blank"

Then here's this in case it is helpful...

#!/bin/bash -eo pipefail
robo job:run-unit-tests

 [Composer\Install] Installing Packages: /usr/local/bin/composer install --optimize-autoloader --ansi
 [Composer\Install] Running /usr/local/bin/composer install --optimize-autoloader --ansi
Gathering patches for root package.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
    1/87:   https://ftp.drupal.org/files/projects/yaml_editor-8.x-1.0.zip
    2/87:   https://ftp.drupal.org/files/projects/views_extras-8.x-1.1.zip
    3/87:   https://ftp.drupal.org/files/projects/views_ef_fieldset-8.x-1.4.zip
    4/87:   https://ftp.drupal.org/files/projects/webform_mailchimp-8.x-5.9.zip
    5/87:   https://ftp.drupal.org/files/projects/viewsreference-8.x-1.4.zip
    6/87:   https://ftp.drupal.org/files/projects/taxonomy_menu_ui-8.x-1.1.zip
    7/87:   https://ftp.drupal.org/files/projects/views_bulk_operations-8.x-3.6.zip
    8/87:   https://ftp.drupal.org/files/projects/view_custom_table-8.x-1.3.zip
    9/87:   https://ftp.drupal.org/files/projects/system_status-8.x-2.8.zip
    10/87:  https://ftp.drupal.org/files/projects/taxonomy_menu-8.x-3.4.zip
    11/87:  https://ftp.drupal.org/files/projects/taxonomy_entity_index-8.x-1.1.zip
    12/87:  https://ftp.drupal.org/files/projects/mailsystem-8.x-4.2.zip
    14/87:  https://ftp.drupal.org/files/projects/webform_views-8.x-5.0-alpha7.zip
    14/87:  https://ftp.drupal.org/files/projects/view_unpublished-8.x-1.0-alpha1.zip
    15/87:  https://ftp.drupal.org/files/projects/svg_image-8.x-1.9.zip
    16/87:  https://ftp.drupal.org/files/projects/twig_tweak-8.x-2.4.zip
    17/87:  https://ftp.drupal.org/files/projects/simplify_menu-8.x-2.0.zip
    18/87:  https://ftp.drupal.org/files/projects/swiftmailer-8.x-1.0-beta2.zip
    19/87:  https://ftp.drupal.org/files/projects/stage_file_proxy-8.x-1.0.zip
    21/87:  https://ftp.drupal.org/files/projects/simple_styleguide-8.x-1.6.zip
    21/87:  https://ftp.drupal.org/files/projects/simple_password_reveal-8.x-1.32.zip
    22/87:  https://ftp.drupal.org/files/projects/rabbit_hole-8.x-1.0-beta6.zip
    23/87:  https://ftp.drupal.org/files/projects/restui-8.x-1.17.zip
    25/87:  https://ftp.drupal.org/files/projects/mailchimp-8.x-1.11.zip
    25/87:  https://ftp.drupal.org/files/projects/select_or_other-8.x-1.0-alpha4.zip
    26/87:  https://ftp.drupal.org/files/projects/reroute_email-8.x-1.1.zip
    27/87:  https://ftp.drupal.org/files/projects/redis-8.x-1.4.zip
    28/87:  https://ftp.drupal.org/files/projects/quicklink-8.x-1.2.zip
    29/87:  https://ftp.drupal.org/files/projects/quick_node_clone-8.x-1.12.zip
    30/87:  https://ftp.drupal.org/files/projects/path_redirect_import-8.x-1.0-beta2.zip
    31/87:  https://ftp.drupal.org/files/projects/pathauto-8.x-1.6.zip
    32/87:  https://ftp.drupal.org/files/projects/simple_sitemap-8.x-3.5.zip
    33/87:  https://ftp.drupal.org/files/projects/ctools-8.x-3.2.zip
    34/87:  https://ftp.drupal.org/files/projects/paragraphs_features-8.x-1.8.zip
    36/87:  https://ftp.drupal.org/files/projects/redirect-8.x-1.5.zip
    36/87:  https://ftp.drupal.org/files/projects/paragraphs_edit-8.x-2.0-alpha6.zip
    37/87:  https://ftp.drupal.org/files/projects/scheduler-8.x-1.1.zip
    38/87:  https://ftp.drupal.org/files/projects/paragraphs_ee-8.x-1.4.zip
    39/87:  https://ftp.drupal.org/files/projects/menu_link_attributes-8.x-1.0.zip
    40/87:  https://ftp.drupal.org/files/projects/nodeorder-8.x-1.0-beta2.zip
    41/87:  https://ftp.drupal.org/files/projects/maxlength-8.x-1.0-beta5.zip
    42/87:  https://ftp.drupal.org/files/projects/token-8.x-1.6.zip
    43/87:  https://ftp.drupal.org/files/projects/mail_safety-8.x-1.0.zip
    44/87:  https://ftp.drupal.org/files/projects/link_attributes-8.x-1.10.zip
    45/87:  https://ftp.drupal.org/files/projects/http2_server_push-8.x-1.1.zip
    46/87:  https://ftp.drupal.org/files/projects/honeypot-8.x-1.30.zip
    48/87:  https://ftp.drupal.org/files/projects/menu_block-8.x-1.5.zip
    48/87:  https://ftp.drupal.org/files/projects/linkit-8.x-4.3.zip
    49/87:  https://ftp.drupal.org/files/projects/inline_entity_form-8.x-1.0-rc3.zip
    50/87:  https://ftp.drupal.org/files/projects/focal_point-8.x-1.2.zip
    51/87:  https://ftp.drupal.org/files/projects/entity-8.x-1.0.zip
    52/87:  https://ftp.drupal.org/files/projects/fontawesome-8.x-2.15.zip
    53/87:  https://ftp.drupal.org/files/projects/google_tag-8.x-1.3.zip
    54/87:  https://ftp.drupal.org/files/projects/crop-8.x-2.0.zip
    56/87:  https://ftp.drupal.org/files/projects/paragraphs-8.x-1.11.zip
    56/87:  https://ftp.drupal.org/files/projects/field_tools-8.x-1.0-alpha5.zip
    57/87:  https://ftp.drupal.org/files/projects/group-8.x-1.0-rc5.zip
    58/87:  https://ftp.drupal.org/files/projects/editor_file-8.x-1.4.zip
    59/87:  https://ftp.drupal.org/files/projects/field_defaults-8.x-1.1.zip
    60/87:  https://ftp.drupal.org/files/projects/entity_reference_revisions-8.x-1.7.zip
    62/87:  https://ftp.drupal.org/files/projects/field_group-8.x-3.0.zip
    62/87:  https://ftp.drupal.org/files/projects/eva-8.x-2.0.zip
    64/87:  https://ftp.drupal.org/files/projects/entityqueue-8.x-1.0-beta5.zip
    64/87:  https://ftp.drupal.org/files/projects/editor_advanced_link-8.x-1.6.zip
    65/87:  https://ftp.drupal.org/files/projects/easy_breadcrumb-8.x-1.12.zip
    66/87:  https://ftp.drupal.org/files/projects/devel_entity_updates-8.x-1.0.zip
    67/87:  https://ftp.drupal.org/files/projects/file_mdm-8.x-1.1.zip
    68/87:  https://ftp.drupal.org/files/projects/custom_pub-8.x-1.0-alpha6.zip
    69/87:  https://ftp.drupal.org/files/projects/config_ignore-8.x-2.2.zip
    70/87:  https://ftp.drupal.org/files/projects/config_split-8.x-1.4.zip
    71/87:  https://ftp.drupal.org/files/projects/ckwordcount-8.x-1.0.zip
    72/87:  https://ftp.drupal.org/files/projects/config_filter-8.x-1.5.zip
    74/87:  https://ftp.drupal.org/files/projects/content_access-8.x-1.0-alpha1.zip
    74/87:  https://ftp.drupal.org/files/projects/notification-8.x-1.0.zip
    76/87:  https://ftp.drupal.org/files/projects/block_field-8.x-1.0-alpha8.zip
    76/87:  https://ftp.drupal.org/files/projects/big_pipe_sessionless-8.x-1.2.zip
    77/87:  https://ftp.drupal.org/files/projects/anchor_link-8.x-2.4.zip
    78/87:  https://ftp.drupal.org/files/projects/fakeobjects-8.x-1.0.zip
    80/87:  https://ftp.drupal.org/files/projects/better_exposed_filters-8.x-4.0-alpha1.zip
    80/87:  https://ftp.drupal.org/files/projects/admin_toolbar-8.x-2.0.zip
    81/87:  https://ftp.drupal.org/files/projects/address-8.x-1.8.zip
    82/87:  https://ftp.drupal.org/files/projects/devel-8.x-2.1.zip
    83/87:  https://ftp.drupal.org/files/projects/advagg-8.x-4.0.zip
    84/87:  https://ftp.drupal.org/files/projects/menu_item_extras-8.x-2.10.zip
    85/87:  https://ftp.drupal.org/files/projects/image_effects-8.x-2.3.zip
    86/87:  https://ftp.drupal.org/files/projects/webform-8.x-5.8.zip
    87/87:  https://codeload.github.com/drupal/core/legacy.zip/f997857003276c2ae6d27db30f0eab9c7dd10e62
    Finished: success: 87, skipped: 0, failure: 0, total: 87
Package operations: 88 installs, 0 updates, 0 removals
Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
  - Installing drupal/core (8.8.2): Loading from cache
  - Applying patches for drupal/core
    https://www.drupal.org/files/issues/2019-06-26/2856823-29.patch (Fix issue with edit/delete rel links for anon)
    https://www.drupal.org/files/issues/2019-10-21/2700147-quickedit-36.patch (Quick edit gets stuck and hides content after save)
    https://www.drupal.org/files/issues/2020-01-08/3100712-8-wsod-on-config-page.patch (Wsod of import)
    https://www.drupal.org/files/issues/2018-07-05/2943172-kernel-test-base-3.patch (https://www.drupal.org/project/drupal/issues/2943172)

  - Installing drupal/address (1.8.0): Loading from cache
  - Installing drupal/admin_toolbar (2.0.0): Loading from cache
  - Installing drupal/advagg (4.0.0): Loading from cache
  - Installing drupal/fakeobjects (1.0.0): Loading from cache
  - Installing drupal/anchor_link (2.4.0): Loading from cache
  - Installing drupal/better_exposed_filters (4.0.0-alpha1): Loading from cache
  - Installing drupal/big_pipe_sessionless (1.2.0): Loading from cache
  - Installing drupal/block_field (1.0.0-alpha8): Loading from cache
  - Installing drupal/notification (1.0.0): Loading from cache
  - Installing drupal/ckwordcount (1.0.0): Loading from cache
  - Installing drupal/config_filter (1.5.0): Loading from cache
  - Installing drupal/config_ignore (2.2.0): Loading from cache
  - Installing drupal/config_split (1.4.0): Loading from cache
  - Installing drupal/content_access (1.0.0-alpha1): Loading from cache
  - Installing drupal/custom_pub (1.0.0-alpha6): Loading from cache
  - Installing drupal/devel (2.1.0): Loading from cache
  - Installing drupal/devel_entity_updates (1.0.0): Loading from cache
  - Installing drupal/draggableviews (dev-1.x 6a92798): Cloning 6a9279864e from cache
  - Installing drupal/easy_breadcrumb (1.12.0): Loading from cache
  - Installing drupal/editor_advanced_link (1.6.0): Loading from cache
  - Installing drupal/editor_file (1.4.0): Loading from cache
  - Installing drupal/entity_reference_revisions (1.7.0): Loading from cache
  - Installing drupal/entityqueue (1.0.0-beta5): Loading from cache
  - Installing drupal/eva (2.0.0): Loading from cache
  - Installing drupal/field_defaults (1.1.0): Loading from cache
  - Installing drupal/field_group (3.0.0): Loading from cache
  - Applying patches for drupal/field_group
    https://www.drupal.org/files/issues/2018-04-30/2968184-03.patch (Update missing region settings)
    https://www.drupal.org/files/issues/2018-11-29/2968184-16.patch (The region part of entity view config isn't set for old installs)

  - Installing drupal/field_tools (1.0.0-alpha5): Loading from cache
  - Installing drupal/file_mdm (1.1.0): Loading from cache
  - Installing drupal/crop (2.0.0): Loading from cache
  - Installing drupal/focal_point (1.2.0): Loading from cache
  - Installing drupal/fontawesome (2.15.0): Loading from cache
  - Installing drupal/google_tag (1.3.0): Loading from cache
  - Installing drupal/entity (1.0.0): Loading from cache
  - Installing drupal/group (1.0.0-rc5): Loading from cache
  - Installing drupal/honeypot (1.30.0): Loading from cache
  - Installing drupal/http2_server_push (1.1.0): Loading from cache
  - Installing drupal/image_effects (2.3.0): Loading from cache
  - Installing drupal/inline_entity_form (1.0.0-rc3): Loading from cache
  - Applying patches for drupal/inline_entity_form
    https://www.drupal.org/files/issues/2018-11-08/2994001-open-on-action.patch (Fix closing inline entity form when editing)
    https://www.drupal.org/files/issues/2019-02-08/ief_complex_quick_edit_error-2855627-5.patch (Quick edit not working)

  - Installing drupal/link_attributes (1.10.0): Loading from cache
  - Installing drupal/linkit (4.3.0): Loading from cache
  - Installing drupal/mail_safety (1.0.0): Loading from cache
  - Installing drupal/maxlength (1.0.0-beta5): Loading from cache
  - Installing drupal/menu_block (1.5.0): Loading from cache
  - Installing drupal/menu_item_extras (2.10.0): Loading from cache
  - Installing drupal/menu_link_attributes (1.0.0): Loading from cache
  - Installing drupal/nodeorder (1.0.0-beta2): Loading from cache
  - Installing drupal/paragraphs (1.11.0): Loading from cache
  - Installing drupal/paragraphs_edit (2.0.0-alpha6): Loading from cache
  - Installing drupal/paragraphs_features (1.8.0): Loading from cache
  - Applying patches for drupal/paragraphs_features
    https://www.drupal.org/files/issues/2019-12-05/3099043-2.patch (Broken add between functionality)

  - Installing drupal/paragraphs_ee (1.4.0): Loading from cache
  - Installing drupal/redirect (1.5.0): Loading from cache
  - Installing drupal/path_redirect_import (1.0.0-beta2): Loading from cache
  - Installing drupal/token (1.6.0): Loading from cache
  - Installing drupal/ctools (3.2.0): Loading from cache
  - Installing drupal/pathauto (1.6.0): Loading from cache
  - Installing drupal/quick_node_clone (1.12.0): Loading from cache
  - Installing drupal/quicklink (1.2.0): Loading from cache
  - Installing drupal/rabbit_hole (1.0.0-beta6): Loading from cache
  - Installing drupal/redis (1.4.0): Loading from cache
  - Installing drupal/reroute_email (1.1.0): Loading from cache
  - Installing drupal/restui (1.17.0): Loading from cache
  - Installing drupal/scheduler (1.1.0): Loading from cache
  - Installing drupal/select_or_other (1.0.0-alpha4): Loading from cache
  - Installing drupal/simple_password_reveal (1.32.0): Loading from cache
  - Installing drupal/simple_sitemap (3.5.0): Loading from cache
  - Installing drupal/simple_styleguide (1.6.0): Loading from cache
  - Installing drupal/simplify_menu (2.0.0): Loading from cache
  - Applying patches for drupal/simplify_menu
    https://www.drupal.org/files/issues/2019-03-07/link_attributes_metadata.patch (Adding attributes)

  - Installing drupal/stage_file_proxy (1.0.0): Loading from cache
  - Installing drupal/svg_image (1.9.0): Loading from cache
  - Installing drupal/mailsystem (4.2.0): Loading from cache
  - Installing drupal/swiftmailer (1.0.0-beta2): Loading from cache
  - Installing drupal/system_status (2.8.0): Loading from cache
  - Installing drupal/taxonomy_entity_index (1.1.0): Loading from cache
  - Installing drupal/taxonomy_menu (3.4.0): Loading from cache
  - Installing drupal/taxonomy_menu_ui (1.1.0): Loading from cache
  - Installing drupal/twig_tweak (2.4.0): Loading from cache
  - Installing drupal/view_custom_table (1.3.0): Loading from cache
  - Installing drupal/view_unpublished (1.0.0-alpha1): Loading from cache
  - Installing drupal/views_bulk_operations (3.6.0): Loading from cache
  - Installing drupal/views_ef_fieldset (1.4.0): Loading from cache
  - Installing drupal/views_extras (1.1.0): Loading from cache
  - Installing drupal/viewsreference (1.4.0): Loading from cache
  - Installing drupal/webform (5.8.0): Loading from cache
  - Installing drupal/mailchimp (1.11.0): Loading from cache
  - Installing drupal/webform_mailchimp (5.9.0): Loading from cache
  - Installing drupal/webform_views (5.0.0-alpha7): Loading from cache
  - Installing drupal/yaml_editor (1.0.0): Loading from cache
drupal/paragraphs suggests installing drupal/entity_browser (Recommended for an improved user experience when using the Paragraphs library module)
drupal/redis suggests installing predis/predis (^1.1.1)
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Package zendframework/zend-diactoros is abandoned, you should avoid using it. Use laminas/laminas-diactoros instead.
Package zendframework/zend-escaper is abandoned, you should avoid using it. Use laminas/laminas-escaper instead.
Package zendframework/zend-feed is abandoned, you should avoid using it. Use laminas/laminas-feed instead.
Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead.
Generating optimized autoload files
Scaffolding files for drupal/core:
  - Copy [project-root]/.editorconfig from assets/scaffold/files/editorconfig
  - Copy [project-root]/.gitattributes from assets/scaffold/files/gitattributes
  - Copy [web-root]/.csslintrc from assets/scaffold/files/csslintrc
  - Copy [web-root]/.eslintignore from assets/scaffold/files/eslintignore
  - Copy [web-root]/.eslintrc.json from assets/scaffold/files/eslintrc.json
  - Copy [web-root]/.ht.router.php from assets/scaffold/files/ht.router.php
  - Copy [web-root]/.htaccess from assets/scaffold/files/htaccess
  - Copy [web-root]/example.gitignore from assets/scaffold/files/example.gitignore
  - Copy [web-root]/index.php from assets/scaffold/files/index.php
  - Copy [web-root]/INSTALL.txt from assets/scaffold/files/drupal.INSTALL.txt
  - Copy [web-root]/README.txt from assets/scaffold/files/drupal.README.txt
  - Copy [web-root]/robots.txt from assets/scaffold/files/robots.txt
  - Copy [web-root]/update.php from assets/scaffold/files/update.php
  - Copy [web-root]/web.config from assets/scaffold/files/web.config
  - Copy [web-root]/sites/README.txt from assets/scaffold/files/sites.README.txt
  - Skip [web-root]/sites/development.services.yml: overridden in drupal-composer/drupal-project
  - Copy [web-root]/sites/example.settings.local.php from assets/scaffold/files/example.settings.local.php
  - Copy [web-root]/sites/example.sites.php from assets/scaffold/files/example.sites.php
  - Copy [web-root]/sites/default/default.services.yml from assets/scaffold/files/default.services.yml
  - Copy [web-root]/sites/default/default.settings.php from assets/scaffold/files/default.settings.php
  - Copy [web-root]/modules/README.txt from assets/scaffold/files/modules.README.txt
  - Copy [web-root]/profiles/README.txt from assets/scaffold/files/profiles.README.txt
  - Copy [web-root]/themes/README.txt from assets/scaffold/files/themes.README.txt
Scaffolding files for drupal-composer/drupal-project:
  - Skip [web-root]/sites/development.services.yml: disabled
 [Composer\Install] Done in 16.485s
 [Exec] Running dockerize -wait tcp://localhost:3306 -timeout 1m
2020/03/09 16:06:32 Waiting for: tcp://localhost:3306
2020/03/09 16:06:32 Connected to tcp://localhost:3306
 [Exec] Done in 0.021s
 [Exec] Running vendor/bin/drush --root=/var/www/html/web site-install --verbose --yes --db-url='sqlite://../drupal.sqlite'
 [info] Executing: command -v sqlite3

 // You are about to Program sqlite3 not found. Proceed if you have already     
 // created or emptied the Drupal database. Do you want to continue?: yes.      

 [info] Sites directory sites/default already exists - proceeding.
 [notice] Starting Drupal installation. This takes a while.
 [success] Installation complete.  User name: admin  User password: bEEbyyW4R3
 [Exec] Done in 34.198s
 [Exec] Running vendor/bin/drush --root=/var/www/html/web status
 Drupal version   : 8.8.2                                      
 Site URI         : http://default                             
 DB driver        : sqlite                                     
 DB port          :                                            
 DB username      :                                            
 DB name          : ../drupal.sqlite                           
 Database         : Connected                                  
 Drupal bootstrap : Successful                                 
 Default theme    : bartik                                     
 Admin theme      : seven                                      
 PHP binary       : /usr/local/bin/php                         
 PHP config       : /usr/local/etc/php/php-cli.ini             
 PHP OS           : Linux                                      
 Drush script     : /var/www/html/vendor/drush/drush/drush     
 Drush version    : 10.2.2                                     
 Drush temp       : /tmp                                       
 Drush configs    : /var/www/html/vendor/drush/drush/drush.yml 
                    /var/www/html/drush/drush.yml              
 Install profile  : standard                                   
 Drupal root      : /var/www/html/web                          
 Site path        : sites/default                              
 Files, Public    : sites/default/files                        
 Files, Temp      : /tmp                                       
 [Exec] Done in 1.147s
 [Filesystem\FilesystemStack] _copy [".circleci/config/phpunit.xml","web/core/phpunit.xml",true]
 [Filesystem\FilesystemStack] mkdir ["artifacts/phpunit",777]
 [ExecStack] ../vendor/bin/phpunit -c core --debug --verbose --log-junit ../artifacts/phpunit/phpunit.xml modules/custom
 [ExecStack] Running ../vendor/bin/phpunit -c core --debug --verbose --log-junit ../artifacts/phpunit/phpunit.xml modules/custom in web
PHPUnit 7.5.20 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.3.12 with Xdebug 2.8.1
Configuration: /var/www/html/web/core/phpunit.xml

Testing modules/custom
Test 'Drupal\Tests\dealers\Functional\FrontPageLinkDependenciesTest::testAddContentMenuItem' started
Test 'Drupal\Tests\dealers\Functional\FrontPageLinkDependenciesTest::testAddContentMenuItem' ended
Test 'Drupal\Tests\dealers\Functional\FrontPageLinkTest::testAddContentMenuItem' started
Test 'Drupal\Tests\dealers\Functional\FrontPageLinkTest::testAddContentMenuItem' ended
Test 'Drupal\Tests\dealers\Functional\LoadTest::testLoad' started
Test 'Drupal\Tests\dealers\Functional\LoadTest::testLoad' ended
Test 'Drupal\Tests\dealers\Functional\SearchBlockTest::testDealerSearchBlockExists' started
Test 'Drupal\Tests\dealers\Functional\SearchBlockTest::testDealerSearchBlockExists' ended
Test 'Drupal\Tests\dealers\Functional\SearchBlockTest::testDealerSearchBlockReturnsResults' started
Test 'Drupal\Tests\dealers\Functional\SearchBlockTest::testDealerSearchBlockReturnsResults' ended
Test 'Drupal\Tests\dealers\Functional\SkeletonTest::testFail' started
Test 'Drupal\Tests\dealers\Functional\SkeletonTest::testFail' ended
Test 'Drupal\Tests\dealers\Kernel\ConfirmModuleInstallationTest::testSystemListing' started
Test 'Drupal\Tests\dealers\Kernel\ConfirmModuleInstallationTest::testSystemListing' ended
Test 'Drupal\tests\dealers\Kernel\UrbanDefinitionPresaveKernelTest::testPresaveHook' started
Test 'Drupal\tests\dealers\Kernel\UrbanDefinitionPresaveKernelTest::testPresaveHook' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testAdd with data set #0 (4, 2, 2)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testAdd with data set #0 (4, 2, 2)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCount with data set #0 ('I can count these on one hand.', 0, 0)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCount with data set #0 ('I can count these on one hand.', 0, 0)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCount with data set #1 ('I can count these on one hand.', 1, 0)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCount with data set #1 ('I can count these on one hand.', 1, 0)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCount with data set #2 ('I can count these on one hand.', 0, 1)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCount with data set #2 ('I can count these on one hand.', 0, 1)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCount with data set #3 ('I need two hands to count these.', 5, 5)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCount with data set #3 ('I need two hands to count these.', 5, 5)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCount with data set #4 ('That's just too many numbers to count.', 5, 6)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCount with data set #4 ('That's just too many numbers to count.', 5, 6)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCount with data set #5 ('That's just too many numbers to count.', 6, 5)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCount with data set #5 ('That's just too many numbers to count.', 6, 5)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #0 ('I can count these on one hand.', 0)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #0 ('I can count these on one hand.', 0)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #1 ('I can count these on one hand.', 1)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #1 ('I can count these on one hand.', 1)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #2 ('I can count these on one hand.', 2)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #2 ('I can count these on one hand.', 2)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #3 ('I can count these on one hand.', 3)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #3 ('I can count these on one hand.', 3)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #4 ('I can count these on one hand.', 4)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #4 ('I can count these on one hand.', 4)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #5 ('I can count these on one hand.', 5)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #5 ('I can count these on one hand.', 5)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #6 ('I need two hands to count these.', 6)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #6 ('I need two hands to count these.', 6)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #7 ('I need two hands to count these.', 7)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #7 ('I need two hands to count these.', 7)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #8 ('I need two hands to count these.', 8)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #8 ('I need two hands to count these.', 8)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #9 ('I need two hands to count these.', 9)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #9 ('I need two hands to count these.', 9)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #10 ('I need two hands to count these.', 10)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #10 ('I need two hands to count these.', 10)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #11 ('That's just too many numbers to count.', 11)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #11 ('That's just too many numbers to count.', 11)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #12 ('That's just too many numbers to count.', 12)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #12 ('That's just too many numbers to count.', 12)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #13 ('That's just too many numbers to count.', 13)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #13 ('That's just too many numbers to count.', 13)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #14 ('That's just too many numbers to count.', 14)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #14 ('That's just too many numbers to count.', 14)' ended
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #15 ('That's just too many numbers to count.', 15)' started
Test 'Drupal\Tests\dealers\Unit\Controller\ContrivedControllerTest::testHandCountIsolated with data set #15 ('That's just too many numbers to count.', 15)' ended
Test 'Drupal\Tests\dealers\Unit\RoutePathTest::testPathsStartWithSlash with data set #0 ('/var/www/html/web/modules/cus...ng.yml')' started
Test 'Drupal\Tests\dealers\Unit\RoutePathTest::testPathsStartWithSlash with data set #0 ('/var/www/html/web/modules/cus...ng.yml')' ended
Test 'Drupal\Tests\entity_product\Kernel\CreateProductEntityTest::testProductCreation' started
Test 'Drupal\Tests\entity_product\Kernel\CreateProductEntityTest::testProductCreation' ended

Time: 1.8 minutes, Memory: 14.00 MB

There were 7 errors:

1) Drupal\Tests\dealers\Functional\FrontPageLinkDependenciesTest::testAddContentMenuItem
GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to localhost port 8088: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:200
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:155
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:105
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php:43
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:51
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:345
/var/www/html/web/core/lib/Drupal/Core/Test/HttpClientMiddleware/TestHttpClientMiddleware.php:31
/var/www/html/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php:37
/var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php:35
/var/www/html/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:54
/var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php:59
/var/www/html/vendor/guzzlehttp/guzzle/src/HandlerStack.php:71
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:361
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:163
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:183
/var/www/html/vendor/fabpot/goutte/Goutte/Client.php:180
/var/www/html/vendor/symfony/browser-kit/Client.php:404
/var/www/html/vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php:144
/var/www/html/vendor/behat/mink/src/Session.php:143
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:285
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:255
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:401
/var/www/html/web/modules/custom/dealers/tests/src/Functional/FrontPageLinkDependenciesTest.php:45

2) Drupal\Tests\dealers\Functional\FrontPageLinkTest::testAddContentMenuItem
GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to localhost port 8088: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:200
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:155
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:105
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php:43
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:51
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:345
/var/www/html/web/core/lib/Drupal/Core/Test/HttpClientMiddleware/TestHttpClientMiddleware.php:31
/var/www/html/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php:37
/var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php:35
/var/www/html/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:54
/var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php:59
/var/www/html/vendor/guzzlehttp/guzzle/src/HandlerStack.php:71
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:361
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:163
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:183
/var/www/html/vendor/fabpot/goutte/Goutte/Client.php:180
/var/www/html/vendor/symfony/browser-kit/Client.php:404
/var/www/html/vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php:144
/var/www/html/vendor/behat/mink/src/Session.php:143
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:285
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:255
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:401

3) Drupal\Tests\dealers\Functional\LoadTest::testLoad
GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to localhost port 8088: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:200
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:155
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:105
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php:43
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:51
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:345
/var/www/html/web/core/lib/Drupal/Core/Test/HttpClientMiddleware/TestHttpClientMiddleware.php:31
/var/www/html/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php:37
/var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php:35
/var/www/html/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:54
/var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php:59
/var/www/html/vendor/guzzlehttp/guzzle/src/HandlerStack.php:71
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:361
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:163
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:183
/var/www/html/vendor/fabpot/goutte/Goutte/Client.php:180
/var/www/html/vendor/symfony/browser-kit/Client.php:404
/var/www/html/vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php:144
/var/www/html/vendor/behat/mink/src/Session.php:143
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:285
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:255
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:401
/var/www/html/web/modules/custom/dealers/tests/src/Functional/LoadTest.php:33

4) Drupal\Tests\dealers\Functional\SearchBlockTest::testDealerSearchBlockExists
GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to localhost port 8088: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:200
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:155
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:105
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php:43
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:51
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:345
/var/www/html/web/core/lib/Drupal/Core/Test/HttpClientMiddleware/TestHttpClientMiddleware.php:31
/var/www/html/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php:37
/var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php:35
/var/www/html/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:54
/var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php:59
/var/www/html/vendor/guzzlehttp/guzzle/src/HandlerStack.php:71
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:361
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:163
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:183
/var/www/html/vendor/fabpot/goutte/Goutte/Client.php:180
/var/www/html/vendor/symfony/browser-kit/Client.php:404
/var/www/html/vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php:144
/var/www/html/vendor/behat/mink/src/Session.php:143
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:285
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:255
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:401
/var/www/html/web/modules/custom/dealers/tests/src/Functional/SearchBlockTest.php:45

5) Drupal\Tests\dealers\Functional\SearchBlockTest::testDealerSearchBlockReturnsResults
GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to localhost port 8088: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:200
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:155
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:105
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php:43
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:51
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:345
/var/www/html/web/core/lib/Drupal/Core/Test/HttpClientMiddleware/TestHttpClientMiddleware.php:31
/var/www/html/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php:37
/var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php:35
/var/www/html/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:54
/var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php:59
/var/www/html/vendor/guzzlehttp/guzzle/src/HandlerStack.php:71
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:361
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:163
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:183
/var/www/html/vendor/fabpot/goutte/Goutte/Client.php:180
/var/www/html/vendor/symfony/browser-kit/Client.php:404
/var/www/html/vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php:144
/var/www/html/vendor/behat/mink/src/Session.php:143
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:285
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:255
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:401
/var/www/html/web/modules/custom/dealers/tests/src/Functional/SearchBlockTest.php:45

6) Drupal\Tests\dealers\Functional\SkeletonTest::testFail
GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to localhost port 8088: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:200
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:155
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:105
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php:43
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28
/var/www/html/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:51
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:345
/var/www/html/web/core/lib/Drupal/Core/Test/HttpClientMiddleware/TestHttpClientMiddleware.php:31
/var/www/html/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php:37
/var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php:35
/var/www/html/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:54
/var/www/html/vendor/guzzlehttp/guzzle/src/Middleware.php:59
/var/www/html/vendor/guzzlehttp/guzzle/src/HandlerStack.php:71
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:361
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:163
/var/www/html/vendor/guzzlehttp/guzzle/src/Client.php:183
/var/www/html/vendor/fabpot/goutte/Goutte/Client.php:180
/var/www/html/vendor/symfony/browser-kit/Client.php:404
/var/www/html/vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php:144
/var/www/html/vendor/behat/mink/src/Session.php:143
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:285
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:255
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:401

7) Drupal\tests\dealers\Kernel\UrbanDefinitionPresaveKernelTest::testPresaveHook
Trying to get property 'value' of non-object

/var/www/html/web/modules/custom/dealers/tests/src/Kernel/UrbanDefinitionPresaveKernelTest.php:91

ERRORS!
Tests: 33, Assertions: 53, Errors: 7.

Remaining self deprecation notices (1)

  1x: Drupal\Tests\BrowserTestBase::$defaultTheme is required in drupal:9.0.0 when using an install profile that does not set a default theme. See https://www.drupal.org/node/3083055, which includes recommendations on which theme to use.
    1x in LoadTest::testLoad from Drupal\Tests\dealers\Functional

 [ExecStack]  Exit code 2  Time 01:48

Exited with code exit status 2
juampynr commented 4 years ago

Hi @xpersonas!

I see that your phpunit file references a MySQL connnection, yet in the output above there is a mention to sqlite. I think that you should change the connection string at phpunit to something like sqlite://../drupal.sqlite, right?

Have you tried debugging the job at CircleCI or locally? Perhaps you could try the following:

  1. Add a sleep 50000 statement right before the command that runs tests.
  2. Push that, let the job fail.
  3. Restart the job with SSH. 4 Once the job hangs (because of the sleep statement), jump into the job.
  4. Perform ping/curl/wget or whatever you need to figure out that the web server is running (and what is the exact hostname), Drupal can reach the database (and the string matches what is at phpunit.xml).

Lately I have been using headless chrome instead of selenium chrome. You can see an example at GitLab at https://gitlab.com/juampynr/drupal8-gitlab/-/blob/master/.gitlab-ci.yml#L73 and https://gitlab.com/juampynr/drupal8-gitlab/-/blob/master/RoboFile.php#L75. It is inspired by https://gitlab.com/weitzman/drupal-test-traits.

JakeMilburn commented 4 years ago

Hey @juampynr . The repo that i have been basing what I am doing off of is this one. https://github.com/juampynr/drupal8-circleci

So my phpunit.xml looks very similar to this one. https://github.com/juampynr/drupal8-circleci/blob/master/.circleci/config/phpunit.xml

This is the output from the Container maridadb:10.3 step that gets cancelled on each run.

2020-01-20 16:59:08+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.3.21+maria~bionic started.
2020-01-20 16:59:09+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2020-01-20 16:59:09+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.3.21+maria~bionic started.
2020-01-20 16:59:09+00:00 [Note] [Entrypoint]: Initializing database files

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h  password 'new-password'

Alternatively you can run:
'/usr/bin/mysql_secure_installation'

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.

Please report any problems at http://mariadb.org/jira

The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/

2020-01-20 16:59:13+00:00 [Note] [Entrypoint]: Database files initialized
2020-01-20 16:59:13+00:00 [Note] [Entrypoint]: Starting temporary server
2020-01-20 16:59:13+00:00 [Note] [Entrypoint]: Waiting for server startup
2020-01-20 16:59:13 0 [Note] mysqld (mysqld 10.3.21-MariaDB-1:10.3.21+maria~bionic) starting as process 162 ...
2020-01-20 16:59:13 0 [Note] InnoDB: Using Linux native AIO
2020-01-20 16:59:13 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-01-20 16:59:13 0 [Note] InnoDB: Uses event mutexes
2020-01-20 16:59:13 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-01-20 16:59:13 0 [Note] InnoDB: Number of pools: 1
2020-01-20 16:59:13 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-01-20 16:59:13 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
2020-01-20 16:59:13 0 [Note] InnoDB: Completed initialization of buffer pool
2020-01-20 16:59:13 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-01-20 16:59:13 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-01-20 16:59:13 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-01-20 16:59:13 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-01-20 16:59:13 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2020-01-20 16:59:13 0 [Note] InnoDB: Waiting for purge to start
2020-01-20 16:59:13 0 [Note] InnoDB: 10.3.21 started; log sequence number 1625448; transaction id 21
2020-01-20 16:59:13 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2020-01-20 16:59:13 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-01-20 16:59:13 0 [Note] InnoDB: Buffer pool(s) load completed at 200120 16:59:13
2020-01-20 16:59:13 0 [Warning] 'user' entry 'root@bd811b0fc103' ignored in --skip-name-resolve mode.
2020-01-20 16:59:13 0 [Warning] 'user' entry '@bd811b0fc103' ignored in --skip-name-resolve mode.
2020-01-20 16:59:13 0 [Warning] 'proxies_priv' entry '@% root@bd811b0fc103' ignored in --skip-name-resolve mode.
2020-01-20 16:59:13 0 [Note] Reading of all Master_info entries succeeded
2020-01-20 16:59:13 0 [Note] Added new Master_info '' to hash table
2020-01-20 16:59:13 0 [Note] mysqld: ready for connections.
Version: '10.3.21-MariaDB-1:10.3.21+maria~bionic'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  mariadb.org binary distribution
2020-01-20 16:59:14+00:00 [Note] [Entrypoint]: Temporary server started.
Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
2020-01-20 16:59:16 10 [Warning] 'proxies_priv' entry '@% root@bd811b0fc103' ignored in --skip-name-resolve mode.

2020-01-20 16:59:16+00:00 [Note] [Entrypoint]: Stopping temporary server
2020-01-20 16:59:16 0 [Note] mysqld (initiated by: root[root] @ localhost []): Normal shutdown
2020-01-20 16:59:16 0 [Note] Event Scheduler: Purging the queue. 0 events
2020-01-20 16:59:16 0 [Note] InnoDB: FTS optimize thread exiting.
2020-01-20 16:59:16 0 [Note] InnoDB: Starting shutdown...
2020-01-20 16:59:16 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2020-01-20 16:59:16 0 [Note] InnoDB: Buffer pool(s) dump completed at 200120 16:59:16
2020-01-20 16:59:21 0 [Note] InnoDB: Shutdown completed; log sequence number 21783769; transaction id 14604
2020-01-20 16:59:21 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2020-01-20 16:59:21 0 [Note] mysqld: Shutdown complete

2020-01-20 16:59:22+00:00 [Note] [Entrypoint]: Temporary server stopped

2020-01-20 16:59:22+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.

2020-01-20 16:59:22 0 [Note] mysqld (mysqld 10.3.21-MariaDB-1:10.3.21+maria~bionic) starting as process 7 ...
2020-01-20 16:59:22 0 [Note] InnoDB: Using Linux native AIO
2020-01-20 16:59:22 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-01-20 16:59:22 0 [Note] InnoDB: Uses event mutexes
2020-01-20 16:59:22 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-01-20 16:59:22 0 [Note] InnoDB: Number of pools: 1
2020-01-20 16:59:22 0 [Note] InnoDB: Using SSE2 crc32 instructions
2020-01-20 16:59:22 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
2020-01-20 16:59:22 0 [Note] InnoDB: Completed initialization of buffer pool
2020-01-20 16:59:22 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-01-20 16:59:22 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-01-20 16:59:22 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-01-20 16:59:22 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-01-20 16:59:22 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2020-01-20 16:59:22 0 [Note] InnoDB: 10.3.21 started; log sequence number 21783769; transaction id 14604
2020-01-20 16:59:22 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2020-01-20 16:59:22 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-01-20 16:59:22 0 [Note] Server socket created on IP: '::'.
2020-01-20 16:59:22 0 [Warning] 'proxies_priv' entry '@% root@bd811b0fc103' ignored in --skip-name-resolve mode.
2020-01-20 16:59:22 0 [Note] InnoDB: Buffer pool(s) load completed at 200120 16:59:22
2020-01-20 16:59:22 0 [Note] Reading of all Master_info entries succeeded
2020-01-20 16:59:22 0 [Note] Added new Master_info '' to hash table
2020-01-20 16:59:22 0 [Note] mysqld: ready for connections.
Version: '10.3.21-MariaDB-1:10.3.21+maria~bionic'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution

Job was canceled

In the Run PHPHUnit tests job though the site install command does run successfully though

 [Composer\Install] Done in 18.398s
 [Exec] Running dockerize -wait tcp://localhost:3306 -timeout 1m
2020/01/20 16:59:50 Waiting for: tcp://localhost:3306
2020/01/20 16:59:50 Connected to tcp://localhost:3306
 [Exec] Done in 0.006s
 [Exec] Running vendor/bin/drush --root=/var/www/html/web site-install --verbose --yes --db-url='mysql://root@127.0.0.1/drupal8'
 [info] Executing: command -v mysql
 [info] Executing: mysql --defaults-file=/tmp/drush_QB2Ze1 --database=drupal8 --host=127.0.0.1 --silent -A < /tmp/drush_BD0Pff

 // You are about to CREATE the 'drupal8' database. Do you want to continue?:   
 // yes.                                                                        

 [info] Sites directory sites/default already exists - proceeding.
 [info] Executing: mysql --defaults-file=/tmp/drush_K9L1hz --database=drupal8 --host=127.0.0.1 --silent -A < /tmp/drush_HJctgN
 [info] Executing: mysql --defaults-file=/tmp/drush_ef8qo7 --database=information_schema --host=127.0.0.1 --silent -A < /tmp/drush_fkH9kl
 [notice] Starting Drupal installation. This takes a while.
 [info] Undefined index: PLATFORM_APP_DIR settings.php:33
 [warning] The configuration name "backup_migrate.backup_migrate_schedule.daily" does not match the ID "daily_schedule" ConfigInstaller.php:345
 [info] EntityDefinitionUpdateManagerInterface::applyUpdates() is deprecated in 8.7.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface::getChangeList() and execute each entity type and field storage update manually instead. See https://www.drupal.org/node/3034742. EntityDefinitionUpdateManager.php:175
 [success] Installation complete.  User name: admin  User password: mRKBcac6Um
 [Exec] Done in 42.663s
 [Filesystem\FilesystemStack] mkdir ["artifacts/phpunit",777]
 [ExecStack] vendor/bin/phpunit -c phpunit.xml --debug --verbose --log-junit artifacts/phpunit/phpunit.xml web/modules/custom
 [ExecStack] Running vendor/bin/phpunit -c phpunit.xml --debug --verbose --log-junit artifacts/phpunit/phpunit.xml web/modules/custom
PHPUnit 6.5.14 by Sebastian Bergmann and contributors.
juampynr commented 4 years ago

Yep, the PHPHUnit tests look fine.

Can you add a sleep statement to the functional job and jump into the environment via SSH to verify what I mentioned at https://github.com/Lullabot/drupal8ci/issues/48#issuecomment-598131675 ?