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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c3bfd1d1e40600085dbe880e57230260fa81b4f
4
- data.tar.gz: 84a151198f3d200792e84fbe17715092b33abc15
3
+ metadata.gz: fab2af42b144ed4aa2389827ba675f7da65bc7b9
4
+ data.tar.gz: 81af34ffcac4a101b7b46161b6880812d1b6f0d1
5
5
  SHA512:
6
- metadata.gz: 1db1ccc6ce750393100155219a6b86c012c9126b6dfe77ed7bc2f8e4d8ec7baa113741b51a43765e16513554cae8a077bd005706290b2f139d0e960a21d0d4c2
7
- data.tar.gz: c2d49f2af43611bda75f92f74726bd5c7045ea2d85604b480231b5d0e5729d2d90b60f9c58b89aa12ea1e513eb8f3fa4c38a87b1beab485f266a0c759271383e
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
- raise RuntimeError,"FiberPool#finish: fiber is still alive."
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
-
@@ -71,7 +71,9 @@ module Pwrake
71
71
  $stderr.puts caller
72
72
  if @thread
73
73
  $stderr.puts "in branch thread #{@thread}:"
74
- $stderr.puts @thread.backtrace.join("\n")
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="+@task_queue.inspect
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 += @master.thread.backtrace.join("\n ")
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("@q[id]=#{q.inspect} : @q.keys=#{@q.keys.inspect} id=#{id.inspect}")
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
@@ -141,6 +141,8 @@ EOL
141
141
  case s
142
142
  when /^\s*\((.*)$/
143
143
  get_command($1)
144
+ when /^\s*\w+=\S+\s+(.*)$/
145
+ get_command($1)
144
146
  when /^\s*([\w.,~^\/=+-]+)(.*)$/
145
147
  cmd, rest = $1, $2
146
148
  case cmd
@@ -1,3 +1,3 @@
1
1
  module Pwrake
2
- VERSION = "2.2.3"
2
+ VERSION = "2.2.4"
3
3
  end
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.3
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-07-31 00:00:00.000000000 Z
11
+ date: 2017-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel