Skip to content

Instantly share code, notes, and snippets.

View ncdc's full-sized avatar

Andy Goldstein ncdc

View GitHub Profile
An error occurred while collecting items to be installed
No repository found containing: com.caucho.hessian/osgi.bundle/3.1.3
No repository found containing: com.lowagie.itext/osgi.bundle/1.5.4.v20090608
No repository found containing: javax.persistence/osgi.bundle/1.99.0.v200906021518
No repository found containing: javax.transaction/osgi.bundle/1.1.1.v200909161740
No repository found containing: org.apache.commons.lang/osgi.bundle/2.4.0.v20081016-1030
No repository found containing: org.apache.commons.logging/osgi.bundle/1.1.1.v200904062255
No repository found containing: org.eclipse.core.databinding/osgi.bundle/1.2.0.M20090819-0800
No repository found containing: org.eclipse.core.databinding.observable/osgi.bundle/1.2.0.M20090902-0800
No repository found containing: org.eclipse.core.databinding.property/osgi.bundle/1.2.0.M20090819-0800
Exception in thread Thread-17:
Traceback (most recent call last):
File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
self.run()
File "/usr/lib/python2.4/threading.py", line 422, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.4/site-packages/qpid/queue.py", line 82, in run
self.listener(o)
File "/usr/lib/python2.4/site-packages/qmf/console.py", line 1493, in _replyCb
elif opcode == 'h': self.session._handleHeartbeatInd (self, codec, seq, msg)
@ncdc
ncdc / gist:951862
Created May 2, 2011 16:20
mock --shell python profile results
18028 function calls (17395 primitive calls) in 56.449 CPU seconds
Ordered by: internal time, call count
List reduced from 883 to 20 due to restriction <20>
ncalls tottime percall cumtime percall filename:lineno(function)
10 51.451 5.145 51.451 5.145 subprocess.py:896(_execute_child)
1 4.677 4.677 56.449 56.449 mock:550(main)
10 0.171 0.017 0.171 0.017 util.py:216(logOutput)
1 0.009 0.009 0.010 0.010 sre_compile.py:296(_optimize_unicode)
class RunsController < ApplicationController
# GET /runs
# GET /runs.json
def index
# start with all runs
@runs = Run.where('')
@since = params[:since]
@runs = @runs.since(@since.to_i.days.ago) if params[:since]
class ReportingController < ApplicationController
def tabulation
# get name/id pairs
#FeatureFile.joins(:feature_file_name).select('feature_file_names.name, max(feature_files.id)').group('feature_file_names.name')
@release =
if params[:release_id]
Release.find(params[:release_id])
else
Release.first
end
qapoc=# explain select tcr.id, rs.status from newsite.test_case_results tcr, public.result_statuses rs, public.examples e, public.scenarios s, public.feature_files pff, newsite.feature_files ff, newsite.test_cases tc where rs.result_parent_type = 'Example' and rs.result_parent_id = e.id and e.scenario_id = s.id and tcr.run_id = rs.run_id and tcr.test_case_id = tc.id and pff.short_name = ff.name and tc.name = to_number(substring(s.short_name, length(s.short_name)-2, length(s.short_name)),'999');
QUERY PLAN
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hash Join (cost=696199.91..1445979.42 rows=61891866 width=11)
Hash Cond: ((pff.short_name)::t
andy@dhcp-64-117:~/Projects/itc/itcm/qapoc (master) RAILS_ENV=test rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
ActiveRecord::JDBCError: query does not return ResultSet: PRAGMA table_info("feature_files")
arjdbc/jdbc/RubyJdbcConnection.java:281:in `execute_query'
/Users/andy/.rvm/gems/jruby-1.6.5@newsite/gems/activerecord-jdbc-adapter-1.2.1/lib/arjdbc/sqlite3/adapter.rb:212:in `table_structure'
/Users/andy/.rvm/gems/jruby-1.6.5@newsite/gems/activerecord-3.1.3/lib/active_record/connection_adapters/abstract_adapter.rb:244:in `log'
/Users/andy/.rvm/gems/jruby-1.6.5@newsite/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
Processing by RunsController#create as JSON
Parameters: {"run"=>{"uuid"=>"8dbc2ab5-dd5d-4515-adf1-1183eeebbd28"}, "release"=>"1.1.0.0", "devhost"=>{"name"=>"develhost6", "packages"=>{}}, "feature"=>{"test_cases"=>{"1"=>{"
status"=>"passed"}}, "status"=>"passed", "mapping"=>"Component", "type"=>"component", "name"=>"ml_ff01", "topology"=>"ml_top01", "topology_git_commit"=>"e9cfd61087f1f736f4bf2cde59
e9cc641287382a"}, "testhosts"=>[], "run_end_time"=>"2012-01-26 15:31:06 -0500"}
(0.0ms) SAVEPOINT active_record_1
Creating run from upload {"run"=>{"uuid"=>"8dbc2ab5-dd5d-4515-adf1-1183eeebbd28"}, "release"=>"1.1.0.0", "devhost"=>{"name"=>"develhost6", "packages"=>{}}, "feature"=>{"test_cases
"=>{"1"=>{"status"=>"passed"}}, "status"=>"passed", "mapping"=>"Component", "type"=>"component", "name"=>"ml_ff01", "topology"=>"ml_top01", "topology_git_commit"=>"e9cfd61087f1f73
6f4bf2cde59e9cc641287382a"}, "testhosts"=>[], "run_end_time"=>"2012-01-26 15:31:06 -0500", "format"=>"json", "controller"=>"runs", "action"=>"
2012-02-21 10:03:38
Full thread dump OpenJDK 64-Bit Server VM (20.0-b11 mixed mode):
"Thread-2" daemon prio=10 tid=0x00007f12d82aa000 nid=0x2c17 in Object.wait() [0x00007f12d49fb000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at org.jruby.util.ShellLauncher$StreamPumper.run(ShellLauncher.java:1323)
- locked <0x00000000f886da68> (a java.lang.Object)
"Thread-1" daemon prio=10 tid=0x00007f12d82a9000 nid=0x2c14 runnable [0x00007f12d4bfc000]
agoldstein@krusty:~ sudo -u jboss jstack 21279
2012-02-27 16:45:59
Full thread dump OpenJDK 64-Bit Server VM (20.0-b11 mixed mode):
"Thread-82 (HornetQ-remoting-threads-HornetQServerImpl::serverUUID=71163980-60be-11e1-8cb0-00163e21cc62-1952466133-1548171171)" prio=10 tid=0x00007fb3f01bb000 nid=0x67fa waiting on condition [0x00007fb428955000]
java.lang.Thread.State: TIMED_WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000000e1594190> (a java.util.concurrent.SynchronousQueue$TransferStack)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:453)