pwrake 2.2.3 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pwrake/master/fiber_pool.rb +1 -2
- data/lib/pwrake/master/master.rb +5 -2
- data/lib/pwrake/master/master_application.rb +2 -2
- data/lib/pwrake/queue/locality_aware_queue.rb +6 -2
- data/lib/pwrake/report/parallelism.rb +2 -0
- data/lib/pwrake/report/report.rb +2 -0
- data/lib/pwrake/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fab2af42b144ed4aa2389827ba675f7da65bc7b9
|
4
|
+
data.tar.gz: 81af34ffcac4a101b7b46161b6880812d1b6f0d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7090c590af93e6b1d2ad56b4235888ddd6edf22de3c107f5f97df805893563e8d41b2b3090352139b13fcb2fdb4d425fb16bcd32320c90dcb40e813e2a88ceb4
|
7
|
+
data.tar.gz: 6f51a807cad92475432495a5eeeaf95b5e892730229fd889283dc2c15c7ec83b2f14a9ca8f7f2a59fa987c1cfad2ec059f5fda6240187531ba0297b002312ba8
|
@@ -46,7 +46,7 @@ module Pwrake
|
|
46
46
|
run
|
47
47
|
while f = @fibers.shift
|
48
48
|
if f.alive?
|
49
|
-
|
49
|
+
$stderr.puts "FiberPool#finish: fiber is still alive."
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
@@ -66,4 +66,3 @@ module Pwrake
|
|
66
66
|
|
67
67
|
end
|
68
68
|
end
|
69
|
-
|
data/lib/pwrake/master/master.rb
CHANGED
@@ -71,7 +71,9 @@ module Pwrake
|
|
71
71
|
$stderr.puts caller
|
72
72
|
if @thread
|
73
73
|
$stderr.puts "in branch thread #{@thread}:"
|
74
|
-
|
74
|
+
if bt = @thread.backtrace
|
75
|
+
$stderr.puts bt.join("\n")
|
76
|
+
end
|
75
77
|
end
|
76
78
|
end
|
77
79
|
kill_end(sig)
|
@@ -199,6 +201,7 @@ module Pwrake
|
|
199
201
|
|
200
202
|
if @option['GRAPH_PARTITION']
|
201
203
|
setup_postprocess0
|
204
|
+
@branch_setup_thread.join
|
202
205
|
@task_queue.deq_noaction_task do |tw|
|
203
206
|
tw.preprocess
|
204
207
|
tw.status = "end"
|
@@ -322,7 +325,7 @@ module Pwrake
|
|
322
325
|
if count == 0 && !@task_queue.empty? && @hostinfo_by_taskname.empty?
|
323
326
|
m="No task was invoked while unexecuted tasks remain"
|
324
327
|
Log.error m
|
325
|
-
Log.error "@task_queue
|
328
|
+
Log.error "count=#{count} @hostinfo_by_taskname.empty?=#{@hostinfo_by_taskname.empty?} @task_queue=\n"+@task_queue.inspect_q
|
326
329
|
raise RuntimeError,m
|
327
330
|
end
|
328
331
|
#Log.debug "#{self.class}#send_task_to_idle_core end time=#{Time.now-tm}"
|
@@ -40,8 +40,8 @@ module Pwrake
|
|
40
40
|
m = Log.bt(e)
|
41
41
|
if @master.thread
|
42
42
|
m += "\nIn branch thread #{@master.thread}:\n "
|
43
|
-
if @master.thread.backtrace
|
44
|
-
m +=
|
43
|
+
if bt = @master.thread.backtrace
|
44
|
+
m += bt.join("\n ")
|
45
45
|
end
|
46
46
|
end
|
47
47
|
Log.fatal m
|
@@ -34,16 +34,20 @@ module Pwrake
|
|
34
34
|
hints.each do |h|
|
35
35
|
HostMap.ipmatch_for_name(h).each{|id| kv[id] = true}
|
36
36
|
end
|
37
|
+
q_success = false
|
37
38
|
if !kv.empty?
|
38
39
|
kv.each_key do |id|
|
39
|
-
t.assigned.push(id)
|
40
40
|
q = @q[id]
|
41
41
|
if q
|
42
42
|
q.push(t)
|
43
|
+
q_success = true
|
44
|
+
t.assigned.push(id)
|
43
45
|
else
|
44
|
-
Log.warn("
|
46
|
+
Log.warn("lost queue for host id=#{id.inspect}: @q.keys=#{@q.keys.inspect}")
|
45
47
|
end
|
46
48
|
end
|
49
|
+
end
|
50
|
+
if q_success
|
47
51
|
@size_q += 1
|
48
52
|
else
|
49
53
|
@q_remote.push(t)
|
@@ -222,6 +222,8 @@ plot '-' w l axis x1y1 title 'parallelism', '-' w l axis x1y2 title 'exec/sec'
|
|
222
222
|
case s
|
223
223
|
when /^\s*\((.*)$/
|
224
224
|
get_command_key($1)
|
225
|
+
when /^\s*\w+=\S+\s+(.*)$/
|
226
|
+
get_command_key($1)
|
225
227
|
when /^\s*([\w.,~^\/=+-]+)(.*)$/
|
226
228
|
cmd, rest = $1, $2
|
227
229
|
if cmd == "cd" && /[^;]*;(.*)$/ =~ rest
|
data/lib/pwrake/report/report.rb
CHANGED
data/lib/pwrake/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pwrake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masahiro TANAKA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|