Skip to content

Instantly share code, notes, and snippets.

@mglaman
Created February 27, 2017 22:11
Show Gist options
  • Save mglaman/d07b9c99dea74c96052247d8eeab432b to your computer and use it in GitHub Desktop.
Save mglaman/d07b9c99dea74c96052247d8eeab432b to your computer and use it in GitHub Desktop.
testbot@drupalci:~$ cd testrunner/
testbot@drupalci:~/testrunner$ ./drupalci run build.jenkins-drupal_contrib-12490.yml
Executing build with build ID: local_c0829e9556640dd1e30512e593d2288f
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/artifacts
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/database
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/artifacts/xml
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary
Using build definition template: build.jenkins-drupal_contrib-12490.yml</options>
---------------- Starting codebase ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/codebase
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/source
---------------- Starting assemble_codebase ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/assemble_codebase
---------------- Starting replicate ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/replicate
Replicating local codebase.
---------------- Finished replicate in 0.0008540153503418 ----------------
---------------- Starting checkout_core ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/checkout_core
Checking out git repos.
Entering setup_checkout_git().
Performing git checkout of git://git.drupal.org/project/drupal.git -b 8.2.x to /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/source.
Git Command: git clone -b 8.2.x --depth 1 git://git.drupal.org/project/drupal.git '/var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/source'
Git commit info:
8153fc6 (grafted, HEAD, origin/HEAD, origin/8.2.x, 8.2.x) Back to dev.
Checkout complete.
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/artifacts/checkout_core
---------------- Finished checkout_core in 9.2555010318756 ----------------
---------------- Starting composer ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/composer.core_install
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/artifacts/composer.core_install
---------------- Finished composer in 3.0400898456573 ----------------
---------------- Starting composer_contrib ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/composer_contrib
Adding packages.drupal.org as composer repository
Composer Command: ./bin/composer require drupal/commerce dev-2.x --ignore-platform-reqs --prefer-source --prefer-stable --no-progress --no-suggest --working-dir /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/source
Adding testing (require-dev) dependencies.
Composer Command: ./bin/composer require --ignore-platform-reqs 'drupal/commerce_cart:*' 'drupal/commerce_order:*' 'drupal/commerce_payment:*' 'drupal/commerce_price:*' 'drupal/commerce_product:*' 'drupal/commerce_store:*' 'drupal/entity_reference_revisions:*' 'drupal/inline_entity_form:*' 'drupal/profile:*' 'drupal/state_machine:*' --ignore-platform-reqs --prefer-stable --no-progress --no-suggest --working-dir /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/source
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/artifacts/composer_contrib
---------------- Finished composer_contrib in 58.408356904984 ----------------
---------------- Starting fetch ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/fetch
Fetch of https://www.drupal.org/files/issues/investigate_why-2855587-4.patch to /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/investigate_why-2855587-4.patch complete.
---------------- Finished fetch in 0.4210729598999 ----------------
---------------- Starting patch ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/patch
Applying patch /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/investigate_why-2855587-4.patch to /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/source/modules/commerce
Patch /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/investigate_why-2855587-4.patch applied to directory /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/source/modules/commerce
---------------- Finished patch in 0.021180152893066 ----------------
---------------- Starting update_dependencies ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/update_dependencies
---------------- Finished update_dependencies in 8.8214874267578E-5 ----------------
---------------- Finished assemble_codebase in 71.163946151733 ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/artifacts/codebase
---------------- Finished codebase in 71.165235996246 ----------------
---------------- Starting environment ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/environment
---------------- Starting startcontainers ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/startcontainers
---------------- Starting runcontainers ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/runcontainers
Parsing required Web container image names ...
Adding image: drupalci/php-5.5.38-apache:production
Pulling from drupalci/php-5.5.38-apache
Digest: sha256:64ef6004078439fede36fe847355bd3e3c57a821c3b6a6adb3a47cb4dd47d0a2
Status: Image is up to date for drupalci/php-5.5.38-apache:production
Container /adoring_carson created from image drupalci/php-5.5.38-apache:production with ID e963dea3
Parsing required database container image names ...
Adding image: drupalci/mysql-5.5
Pulling from drupalci/mysql-5.5
Already exists
Already exists
Already exists
Already exists
Already exists
Already exists
Already exists
Already exists
Already exists
Already exists
Already exists
Already exists
Already exists
Already exists
Already exists
Already exists
Digest: sha256:3455d946fd2da0fa3f616b970266bbbabefc861253e4e372755233e1cb5f88b0
Status: Image is up to date for drupalci/mysql-5.5:latest
Container /berserk_dubinsky created from image drupalci/mysql-5.5 with ID f2c23737
php -v
PHP 5.5.38 (cli) (built: Feb 19 2017 22:22:47)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
php -i > /var/lib/drupalci/workdir/runcontainers/phpinfo.txt
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/artifacts/runcontainers
---------------- Finished runcontainers in 4.0177891254425 ----------------
---------------- Starting start_phantomjs ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/start_phantomjs
supervisorctl start phantomjs
phantomjs: started
---------------- Finished start_phantomjs in 1.8049149513245 ----------------
---------------- Finished startcontainers in 5.8230202198029 ----------------
---------------- Starting create_db ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/create_db
---------------- Starting dbcreate ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/dbcreate
Attempting to connect to database server.
Could not connect to database server.
Sleeping 10 seconds to allow service to start.
Attempting to connect to database server.
Database is active.
---------------- Finished dbcreate in 10.053900957108 ----------------
---------------- Finished create_db in 10.054047822952 ----------------
---------------- Finished environment in 15.877132892609 ----------------
---------------- Starting assessment ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/assessment
---------------- Starting validate_codebase ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/validate_codebase
---------------- Starting phplint ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/phplint
SyntaxCheck checking for php syntax errors.
/var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/phplint/lintable_files.txt
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/artifacts/phplint
cd /var/www/html && xargs -P 31 -a /var/lib/drupalci/workdir/phplint/lintable_files.txt -I {} php -l '{}'
No syntax errors detected in /var/www/html/modules/commerce/modules/payment/tests/src/Functional/PaymentCheckoutOffsiteRedirectTest.php
No syntax errors detected in /var/www/html/modules/commerce/modules/payment/tests/src/Functional/PaymentCheckoutTest.php
No syntax errors detected in /var/www/html/modules/commerce/modules/checkout/tests/src/Functional/CheckoutOrderTest.php
---------------- Finished phplint in 0.27665114402771 ----------------
---------------- Starting container_composer ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/container_composer
Running Composer within the environment.
COMPOSER_ALLOW_SUPERUSER=TRUE /usr/local/bin/composer install --prefer-dist --no-suggest --no-progress --working-dir /var/www/html
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
> Drupal\Core\Composer\Composer::preAutoloadDump
> Drupal\Core\Composer\Composer::ensureHtaccess
---------------- Finished container_composer in 0.81956601142883 ----------------
---------------- Starting eslint ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/eslint
eslinting the project.
No modified files are eligible to be sniffed
---------------- Finished eslint in 3.6001205444336E-5 ----------------
---------------- Starting phpcs ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/phpcs
PHPCS sniffing the project.
Checking for phpcs.xml(.dist) file.
Checking for PHPCS config file: /var/www/html/modules/commerce/phpcs.xml*
test -e /var/www/html/modules/commerce/phpcs.xml*
Using existing PHPCS config file.
Checking for phpcs tool in codebase.
test -e /var/www/html/vendor/squizlabs/php_codesniffer/scripts/phpcs
Attempting to install drupal/coder ^8.2@stable
COMPOSER_ALLOW_SUPERUSER=TRUE composer require --dev drupal/coder ^8.2@stable
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
- Installing squizlabs/php_codesniffer (2.8.0) Loading from cache
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing drupal/coder (8.2.10) Loading from cache
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
Writing lock file
Generating autoload files
> Drupal\Core\Composer\Composer::preAutoloadDump
> Drupal\Core\Composer\Composer::ensureHtaccess
Checking for phpcs tool in codebase.
test -e /var/www/html/vendor/squizlabs/php_codesniffer/scripts/phpcs
/var/www/html/vendor/squizlabs/php_codesniffer/scripts/phpcs --config-set installed_paths /var/www/html/vendor/drupal/coder/coder_sniffer/
Config value "installed_paths" added successfully
/var/www/html/vendor/squizlabs/php_codesniffer/scripts/phpcs -i
The installed coding standards are Zend, Squiz, PSR2, PSR1, PHPCS, PEAR, MySource, DrupalPractice and Drupal
Running PHP Code Sniffer review on modified php files.
Writing: /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/phpcs/sniffable_files.txt
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/artifacts/phpcs
Executing PHPCS.
cd /var/www/html/modules/commerce && /var/www/html/vendor/squizlabs/php_codesniffer/scripts/phpcs --warning-severity=2 --report-full=/var/lib/drupalci/workdir/phpcs/codesniffer_results.txt --report-checkstyle=/var/lib/drupalci/workdir/phpcs/checkstyle.xml --report-diff=/var/lib/drupalci/workdir/phpcs/codesniffer_fixes.patch --file-list=/var/lib/drupalci/workdir/phpcs/sniffable_files.txt
cd /var/www/html/modules/commerce && /var/www/html/vendor/squizlabs/php_codesniffer/scripts/phpcs -e --warning-severity=2 --report-full=/var/lib/drupalci/workdir/phpcs/codesniffer_results.txt --report-checkstyle=/var/lib/drupalci/workdir/phpcs/checkstyle.xml --report-diff=/var/lib/drupalci/workdir/phpcs/codesniffer_fixes.patch --file-list=/var/lib/drupalci/workdir/phpcs/sniffable_files.txt > /var/lib/drupalci/workdir/phpcs/phpcs_sniffs.txt
Adjusting paths in report file: /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/phpcs/checkstyle.xml
---------------- Finished phpcs in 16.294616937637 ----------------
---------------- Finished validate_codebase in 17.391319990158 ----------------
---------------- Starting testing ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/testing
---------------- Starting simpletest ----------------
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/ancillary/simpletest.js
mkdir -p /var/www/html/sites/simpletest/xml
ln -s /var/www/html /var/www/html/checkout
chown -fR www-data:www-data /var/www/html/sites
chmod 0777 /var/lib/drupalci/artifacts
chmod 0777 /tmp
Directory created at /var/lib/drupalci/workspace/local_c0829e9556640dd1e30512e593d2288f/artifacts/simpletest.js
sudo -u www-data php /var/www/html/core/scripts/run-tests.sh --list > /var/lib/drupalci/workdir/simpletest.js/testgroups.txt
cd /var/www/html && sudo -u www-data php /var/www/html/core/scripts/run-tests.sh --color --keep-results --concurrency "1" --types "PHPUnit-FunctionalJavascript" --url "http://localhost/checkout" --sqlite "/var/lib/drupalci/workdir/simpletest.js/simpletest.sqlite" --dburl "mysql://drupaltestbot:[email protected]/local_c0829e9556640dd1e30512e593d2288f" --directory modules/commerce
Drupal test run
---------------
Tests to be run:
- Drupal\Tests\commerce_cart\FunctionalJavascript\AddToCartMultiAttributeTest
- Drupal\Tests\commerce_order\FunctionalJavascript\OrderReassignTest
- Drupal\Tests\commerce_product\FunctionalJavascript\ProductAttributeJavascriptTest
- Drupal\Tests\commerce_promotion\FunctionalJavascript\PromotionTest
- Drupal\Tests\commerce_store\FunctionalJavascript\StoreTest
- Drupal\Tests\commerce\FunctionalJavascript\PluginItemTest
Test run started:
Monday, February 27, 2017 - 22:10
Test summary
------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment