Skip to content

Instantly share code, notes, and snippets.

View jerith's full-sized avatar

Jeremy Thurgood jerith

  • Cape Town, South Africa
View GitHub Profile
diff --git a/puppet/modules/seed_stack/manifests/controller.pp b/puppet/modules/seed_stack/manifests/controller.pp
index b03cd4e..d02e821 100644
--- a/puppet/modules/seed_stack/manifests/controller.pp
+++ b/puppet/modules/seed_stack/manifests/controller.pp
@@ -79,7 +79,7 @@ class seed_stack::controller (
class { 'mesos':
ensure => $mesos_ensure,
repo => 'mesosphere',
- listen_address => $address,
+ listen_address => '0.0.0.0',
diff --git a/go/vumitools/tests/helpers.py b/go/vumitools/tests/helpers.py
index 595de65..3a30dd8 100644
--- a/go/vumitools/tests/helpers.py
+++ b/go/vumitools/tests/helpers.py
@@ -357,7 +357,7 @@ class VumiApiHelper(object):
import go.base.utils
# We might need an AMQP connection at some point.
broker = self.get_worker_helper().broker
- broker.exchange_declare('vumi', 'direct')
+ broker.exchange_declare('vumi', 'direct', durable=True)
diff --git a/.gitignore b/.gitignore
index 8f68217..3daa95d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,3 +26,4 @@ dropin.cache
/django_test_results.xml
/pep8.txt
/.tox
+/.cache/
diff --git a/vumi/transports/smpp/tests/test_protocol.py b/vumi/transports/smpp/tests/test_protocol.py
index da83453..a3d2441 100644
--- a/vumi/transports/smpp/tests/test_protocol.py
+++ b/vumi/transports/smpp/tests/test_protocol.py
@@ -172,6 +172,7 @@ class TestEsmeProtocol(VumiTestCase):
@inlineCallbacks
def test_deliver_sm_fail(self):
yield self.get_protocol()
+ yield self.fake_smsc.bind()
yield self.fake_smsc.send_pdu(DeliverSM(
diff --git a/vumi/components/tests/test_message_store_api.py b/vumi/components/tests/test_message_store_api.py
index 0dbc1fd..dc4fedb 100644
--- a/vumi/components/tests/test_message_store_api.py
+++ b/vumi/components/tests/test_message_store_api.py
@@ -120,6 +120,9 @@ class TestMessageStoreAPI(VumiTestCase):
returnValue(token)
def assertResultCount(self, response, count):
+ in_progress = response.headers.getRawHeaders(
+ self.match_resource.RESP_IN_PROGRESS_HEADER)[0]
diff --git a/MANIFEST.in b/MANIFEST.in
index 3fc58cb..9514531 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -22,6 +22,7 @@ include twisted/plugins/*.py
include vumi/demos/tests/wikipedia_sample.xml
include vumi/scripts/tests/sample-smpp-output.log
recursive-include vumi/resources *
+recursive-include vumi *.xml
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x00007ffff7ddcae0 0x00007ffff7df5170 Yes /lib64/ld-linux-x86-64.so.2
No linux-vdso.so.1
0x00007ffff4af7720 0x00007ffff5fe535c Yes /home/jerith/.virtualenvs/[email protected]/bin/libpypy-c.so
0x00007ffff33b59f0 0x00007ffff33c1731 Yes /lib/x86_64-linux-gnu/libpthread.so.0
0x00007ffff30264a0 0x00007ffff31506a3 Yes /lib/x86_64-linux-gnu/libc.so.6
0x00007ffff2e03ed0 0x00007ffff2e0497e Yes /lib/x86_64-linux-gnu/libdl.so.2
0x00007ffff2bf4760 0x00007ffff2c00432 Yes (*) /lib/x86_64-linux-gnu/libbz2.so.1.0
0x00007ffff28f7580 0x00007ffff2962d96 Yes /lib/x86_64-linux-gnu/libm.so.6
@jerith
jerith / gdb
Created August 20, 2015 11:22
pypy 2.6.0-lldebug psycopg2cffi segfault
#0 0x00007ffff303c107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff303d4e8 in __GI_abort () at abort.c:89
#2 0x00007ffff5fe04bd in RPyAssertFailed (filename=filename@entry=0x7ffff60ebc68 "rpython_memory_gc_incminimark.c",
lineno=lineno@entry=11979, function=function@entry=0x7ffff60ecbe0 <__FUNCTION__.395395> "pypy_g_IncrementalMiniMarkGC_visit",
msg=msg@entry=0x7ffff60a5f8e "invalid type_id") at support.c:20
#3 0x00007ffff5c963b3 in pypy_g_IncrementalMiniMarkGC_visit (
l_self_20621=l_self_20621@entry=0x7ffff68452c0 <pypy_g_rpython_memory_gc_incminimark_IncrementalMiniMar>,
l_obj_80628=l_obj_80628@entry=0x7ffff7fc3c18) at rpython_memory_gc_incminimark.c:11979
#4 0x00007ffff5c964e5 in pypy_g_IncrementalMiniMarkGC_visit_all_objects_step (
l_self_20602=l_self_20602@entry=0x7ffff68452c0 <pypy_g_rpython_memory_gc_incminimark_IncrementalMiniMar>,
from functools import wraps
from inspect import getargspec
from hypothesis import given
from hypothesis.internal.reflection import copy_argspec
from twisted.internet import reactor
from twisted.internet.threads import deferToThread, blockingCallFromThread
def given_defer(*generator_arguments, **generator_kwargs):
(hypothesis-twisted)[11:12|jerith@kilrah] ~/code/hypothesis-twisted% pip install -e ../hypothesis
Obtaining file:///Users/jerith/code/hypothesis
Installing collected packages: hypothesis
Running setup.py develop for hypothesis
Complete output from command /Users/jerith/.virtualenvs/hypothesis-twisted/bin/python -c "import setuptools, tokenize; __file__='/Users/jerith/code/hypothesis/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps:
running develop
error: ("Can't get a consistent path to setup script from installation directory", '/', '/Users/jerith/code/hypothesis')
----------------------------------------
Command "/Users/jerith/.virtualenvs/hypothesis-twisted/bin/python -c "import setuptools, tokenize; __file__='/Users/jerith/code/hypothesis/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps" failed with error code 1 in /Use