rbbt-util 5.23.9 → 5.23.10

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: 5039b747779f4ab3bb5f237cfdb35f4e3ba11230
4
- data.tar.gz: bca0e98c2659e71646f81ffa211aa71ce9a4711c
3
+ metadata.gz: 472836abad9da3e74360c01bf0b6889d5d180274
4
+ data.tar.gz: 997deade2fa19ec1060789a4d06d1d20e484d6c2
5
5
  SHA512:
6
- metadata.gz: 32fb5664be7b3c4b997c6391b1b8c6980fa57843740bd660a8d3f9b13be2258d56147919a2f0d79572a121ce223c598a36defbe21888eada34dcb775131b129a
7
- data.tar.gz: 81b64644c640cca0dcf2cdf49538a184ca6ad863028b2a7bd7f96cc979f7a03e0cff05a91336a694af698c84579ff3ddbb0b99d8fb31edded51ca463461d46c8
6
+ metadata.gz: cc65674762a492eff698fa64f646a0f9bf9bfa148e96bc5910b03f4fe904e0cc17b2c9d6f3c78739aa3e78e8c5f0140c83719b601843311972d6e8aac97f9763
7
+ data.tar.gz: 4ec976bc296528a9d824ee0c763b63bf33a1a401748ec40518d6705084cf5191c8e7c9e385e0ef49fd87b9b5acf230b67c556bd3206b563f63812acabb8c09ba
data/bin/rbbt CHANGED
@@ -49,7 +49,7 @@ $ rbbt <command> <subcommand> ... -a --arg1 --arg2='value' --arg3 'another-value
49
49
  --locate_file #{Log.color :yellow, "Report the location of the script instead of executing it"}
50
50
  --dump_mem* #{Log.color :yellow, "Dump strings in memory each second into file"}
51
51
  -nolock--no_lock_id #{Log.color :yellow, "Do not track lockfiles with ids (prevent stale file handlers for high-througput and high-concurrency)"}
52
- -ji--jobname_as_inputs #{Log.color :yellow, "Use inputs as part of the jobname in workflows instead of digesting them"}
52
+ -ji--jobname_show_inputs #{Log.color :yellow, "Show inputs as part of the jobname in workflows instead of digesting them"}
53
53
  -ck--config_keys* #{Log.color :yellow, "Override some config keys"}
54
54
  EOF
55
55
 
data/lib/rbbt/workflow.rb CHANGED
@@ -203,10 +203,10 @@ module Workflow
203
203
 
204
204
  def self.workdir
205
205
  @@workdir ||= if defined? Rbbt
206
- Rbbt.var.jobs.find
207
- else
208
- Path.setup('var/jobs')
209
- end
206
+ Rbbt.var.jobs
207
+ else
208
+ Path.setup('var/jobs')
209
+ end
210
210
  end
211
211
 
212
212
  def workdir=(path)
@@ -217,7 +217,7 @@ module Workflow
217
217
  def workdir
218
218
  @workdir ||= begin
219
219
  text = Module === self ? self.to_s : "Misc"
220
- Workflow.workdir[text].find
220
+ Workflow.workdir[text]
221
221
  end
222
222
  end
223
223
 
@@ -376,6 +376,8 @@ class Step
376
376
  end
377
377
 
378
378
  def dirty_files
379
+ rec_dependencies = self.rec_dependencies
380
+ return [] if rec_dependencies.empty?
379
381
  canfail_paths = self.canfail_paths
380
382
  dirty_files = rec_dependencies.reject{|dep|
381
383
  (defined?(WorkflowRESTClient) && WorkflowRESTClient::RemoteStep === dep) ||
@@ -281,6 +281,7 @@ class Step
281
281
  end
282
282
 
283
283
  def canfail_paths
284
+ return Set.new if ! File.exists?(info_file)
284
285
  if info[:canfail_paths]
285
286
  Set.new(info[:canfail_paths])
286
287
  else
@@ -293,7 +294,10 @@ class Step
293
294
  canfail_paths += dep.rec_dependencies.collect{|d| d.path }
294
295
  end
295
296
  canfail_paths
296
- set_info :canfail_paths, canfail_paths.to_a
297
+ begin
298
+ set_info :canfail_paths, canfail_paths.to_a
299
+ rescue Errno::EROFS
300
+ end
297
301
  canfail_paths
298
302
  end
299
303
  end
@@ -123,6 +123,8 @@ class Step
123
123
 
124
124
  def out_of_date
125
125
 
126
+ checks = self.checks
127
+ return [] if checks.empty?
126
128
  outdated_time = []
127
129
  outdated_dep = []
128
130
  canfail_paths = self.canfail_paths
@@ -36,7 +36,7 @@ test_str = options[:test] ? '-nv' : ''
36
36
 
37
37
  source, target, _sep, *other = ARGV
38
38
 
39
- cmd = "rsync -a #{test_str} #{excludes_str} #{source} #{target} #{other * " "}"
39
+ cmd = "rsync -at #{test_str} #{excludes_str} #{source} #{target} #{other * " "}"
40
40
 
41
41
  if options[:print]
42
42
  puts cmd
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.23.9
4
+ version: 5.23.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez