Skip to content

Instantly share code, notes, and snippets.

diff --git a/socorro/storage/storageMover.py b/socorro/storage/storageMover.py
index 2a60f27..4e4dbcd 100644
--- a/socorro/storage/storageMover.py
+++ b/socorro/storage/storageMover.py
@@ -31,12 +31,18 @@ def move (conf,
are no new entries, it yields None"""
sourceStorage = crashStoragePoolForSource.crashStorage() # thread local
try:
+ logger.debug('PROFILING - start worker thread')
while True:
diff --git a/socorro/storage/storageMover.py b/socorro/storage/storageMover.py
index 2a60f27..c6487ae 100644
--- a/socorro/storage/storageMover.py
+++ b/socorro/storage/storageMover.py
@@ -31,12 +31,18 @@ def move (conf,
are no new entries, it yields None"""
sourceStorage = crashStoragePoolForSource.crashStorage() # thread local
try:
+ logger.debug('PROFILING - start worker thread')
while True:
# Recipients of traceback emails and other notifications.
ADMINS = (
('Socorro Admins', '[email protected]'),
)
MANAGERS = ADMINS
$ ./manage.py runserver
/home/rhelmer/src/socorro-crashstats/vendor-local/lib/python/raven/__init__.py:12: UserWarning: Module raven was already imported from /home/rhelmer/src/socorro-crashstats/vendor-local/lib/python/raven/__init__.py, but /home/rhelmer/.virtualenvs/socorro-crashstats/lib/python2.7/site-packages is being added to sys.path
VERSION = __import__('pkg_resources') \
/home/rhelmer/src/socorro-crashstats/vendor-local/lib/python/raven/__init__.py:12: UserWarning: Module raven was already imported from /home/rhelmer/src/socorro-crashstats/vendor-local/lib/python/raven/__init__.pyc, but /home/rhelmer/.virtualenvs/socorro-crashstats/lib/python2.7/site-packages is being added to sys.path
VERSION = __import__('pkg_resources') \
Validating models...
Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x7f2c4106dbd0>>
Traceback (most recent call last):
File "/home/rhelmer/src/socorro-crashstats/vend
openssl.rs:25:21: 25:39 error: moving out of immutable vec content
openssl.rs:25 io::println(sha1(core::os::args()[1]));
^~~~~~~~~~~~~~~~~~
error: aborting due to previous error
diff --git a/puppet/manifests/classes/socorro-base.pp b/puppet/manifests/classes
index 9f57344..6a23670 100644
--- a/puppet/manifests/classes/socorro-base.pp
+++ b/puppet/manifests/classes/socorro-base.pp
@@ -266,7 +266,7 @@ class socorro-test inherits socorro-base {
cwd => '/home/socorro/dev/socorro',
timeout => '3600',
require => [Exec['socorro-reinstall'], Exec['create-roles'],
- Exec['create-user']],
+ Exec['create-user'], Exec['install-json-enhancements']]
@rhelmer
rhelmer / gist:5905781
Created July 2, 2013 00:04
turn a local git-controlled file path/name into a github link
#!/bin/sh
BRANCH=`git rev-parse --abbrev-ref HEAD`
REMOTES=`git remote -v | awk '{print $2}' | uniq | sort`
if [ $# != 1 ]
then
echo 'Syntax: githubify <path_to_file>'
exit 1
fi
diff --git a/crashstats/crashstats/views.py b/crashstats/crashstats/views.py
index 40459ef..983887a 100644
--- a/crashstats/crashstats/views.py
+++ b/crashstats/crashstats/views.py
@@ -780,8 +780,16 @@ def report_index(request, crash_id, default_context=None):
context['report'] = api.get(crash_id=crash_id)
+++ b/crashstats/crashstats/views.py
@@ -780,8 +780,16 @@ def report_index(request, crash_id, default_context=None):
context['report'] = api.get(crash_id=crash_id)
except models.BadStatusCodeError as e:
# -*- mode: ruby -*-
# # vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "coreos"
config.vm.box_url = "http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_vagrant.box"
config.vm.define :admin1 do |admin1|
admin1.vm.box = "coreos"
admin1.vm.network :private_network, type: :dhcp
end
diff --git a/plugins/guests/coreos/cap/change_host_name.rb b/plugins/guests/coreos/cap/change_host_name.rb
new file mode 100644
index 0000000..8de9171
--- /dev/null
+++ b/plugins/guests/coreos/cap/change_host_name.rb
@@ -0,0 +1,17 @@
+module VagrantPlugins
+ module GuestCoreOS
+ module Cap
+ class ChangeHostName