Skip to content

Instantly share code, notes, and snippets.

➜ drupalci_testbot git:(2597778-composer-build-for-contrib) ✗ vagrant box list
ubuntu/xenial64 (virtualbox, 20161014.0.0)
➜ drupalci_testbot git:(2597778-composer-build-for-contrib) ✗ vagrant box remove ubuntu/xenial64
Removing box 'ubuntu/xenial64' (v20161014.0.0) with provider 'virtualbox'...
➜ drupalci_testbot git:(2597778-composer-build-for-contrib) ✗ vagrant up
Bringing machine 'testbot' up with 'virtualbox' provider...
==> testbot: Box 'ubuntu/xenial64' could not be found. Attempting to find and install...
testbot: Box Provider: virtualbox
testbot: Box Version: >= 0
==> testbot: Loading metadata for box 'ubuntu/xenial64'
MariaDB [(none)]> show slave status\G
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: 10.1.1.42
Master_User: repl_user
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: drupal-db5-binlog.041531
Read_Master_Log_Pos: 4814904
Relay_Log_File: relay-bin.000077
root@db6:/var/lib/mysql# kill 10142
root@db6:/var/lib/mysql# ps auxwwww |grep mysql
root 10142 0.0 0.0 21864 3552 ? S 18:00 0:00 /bin/bash /usr/bin/mysqld_safe
mysql 13615 81.0 6.6 120122304 8763384 ? Rl 18:18 0:04 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --skip-log-error --open-files-limit=65535 --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306
root 13616 0.0 0.0 23720 2528 ? S 18:18 0:00 logger -t mysqld -p daemon.error
root 13704 0.0 0.0 12732 2224 pts/2 R+ 18:18 0:00 grep mysql
root@db6:/var/lib/mysql# kill 10142 13615 13616
root@db6:/var/lib/mysql# ps auxwwww |grep mysql
root 10142 0.0 0.0 21868 3556 ? S 18:00 0:00 /bin/bash /usr/bin/mysqld_safe
mysql 13615 86.1 0.0 0 0 ? Zl 18:18 0:26 [mysqld] <defunct>
@ryanaslett
ryanaslett / gist:36e6d2ad8d5345cff81dc784d55d1bb4
Created December 1, 2016 23:08
This doesnt look promising. Looks like that file was only created a couple seconds earlier.
161201 22:18:30 >> log scanned up to (46434753699577)
161201 22:18:31 [10] Streaming ./mysql/gtid_slave_pos.ibd
161201 22:18:31 [08] Streaming ./mysql/innodb_table_stats.ibd
161201 22:18:31 [08] ...done
161201 22:18:31 [11] Streaming ./mysql/innodb_index_stats.ibd
161201 22:18:31 [14] Streaming ./events/actions.ibd
161201 22:18:31 [14] ...done
161201 22:18:31 >> log scanned up to (46434754429909)
161201 22:18:32 [08] Streaming ./events/advanced_help_index.ibd
161201 22:18:32 [08] ...done
80.6279 https://dispatcher.drupalci.org/job/default/222731/console
81.0173 https://dispatcher.drupalci.org/job/default/223563/console
81.6139 https://dispatcher.drupalci.org/job/default/221748/console
82.0563 https://dispatcher.drupalci.org/job/default/223514/console
82.0609 https://dispatcher.drupalci.org/job/default/222099/console
82.0948 https://dispatcher.drupalci.org/job/default/222197/console
82.5083 https://dispatcher.drupalci.org/job/default/223132/console
82.9138 https://dispatcher.drupalci.org/job/default/222689/console
84.2821 https://dispatcher.drupalci.org/job/default/226748/console
84.7883 https://dispatcher.drupalci.org/job/default/226243/console
@ryanaslett
ryanaslett / context modules
Last active August 10, 2016 04:27
Drupal project machine names that have at least one release with a dependency on context module
context_addassets
context_condition_theme
context_field
context_inline_editor
context_keywords
context_locale_cookie
context_menu_block
context_respect
context_ssl
debut_article
@ryanaslett
ryanaslett / Fails
Created July 27, 2016 14:55
Fails in FieldUpdateTest with apc 4.0.11
176815|301|Drupal\field\Tests\Update\FieldUpdateTest|fail|GET http://localhost/checkout/update.php returned 0 (0 bytes).|Browser|Drupal\system\Tests\Update\UpdatePathTestBase->runUpdates()|243|/var/www/html/core/modules/system/src/Tests/Update/UpdatePathTestBase.php
176817|301|Drupal\field\Tests\Update\FieldUpdateTest|exception|simplexml_import_dom(): Invalid Nodetype to import<pre class="backtrace">simplexml_import_dom(Object) (Line: 133)
Drupal\simpletest\WebTestBase->parse() (Line: 226)
Drupal\simpletest\WebTestBase->xpath('//a[normalize-space()=:label]', Array) (Line: 2343)
Drupal\simpletest\WebTestBase->clickLinkHelper(Object, 0, '//a[normalize-space()=:label]') (Line: 2304)
Drupal\simpletest\WebTestBase->clickLink(Object) (Line: 244)
Drupal\system\Tests\Update\UpdatePathTestBase->runUpdates() (Line: 55)
Drupal\field\Tests\Update\FieldUpdateTest->testFieldUpdate8001() (Line: 1057)
Drupal\simpletest\TestBase->run(Array) (Line: 731)
simpletest_script_run_one_test('301', 'Drupal\field\Tests\Update\FieldUpda
root@d8dc3dd9b155:/# which php
/opt/phpenv/shims/php
root@d8dc3dd9b155:/# more /opt/phpenv/shims/php
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
program="${0##*/}"
if [ "$program" = "ruby" ]; then
for arg; do
#!/bin/bash
export DCI_DrupalciBranch=production
export DCI_RunScript=/var/www/html/core/scripts/run-tests.sh
export DCI_PHPVersion=5.5
export DCI_JobType=simpletest
export BUILD_TAG=jenkins-DCI_XML-113
export DCI_ComposerInstall=true
export DCI_CoreBranch=8.0.x
export DCI_Patch=2560643_26.patch,.
export JOB_URL=http://dispatcher-origin.drupalci.aws:8080/job/DCI_XML/
@ryanaslett
ryanaslett / pasteboard
Created September 1, 2015 17:54
Put this somewhere in your path. Phpstorm has a hard time with proper escaping because it cannot handle shell pipes etc. Easier to just give it the script to run.
#!/bin/bash
pbcopy <<< $1