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 +4 -4
- data/bin/rbbt +1 -1
- data/lib/rbbt/workflow.rb +5 -5
- data/lib/rbbt/workflow/accessor.rb +2 -0
- data/lib/rbbt/workflow/step/dependencies.rb +5 -1
- data/lib/rbbt/workflow/step/run.rb +2 -0
- data/share/rbbt_commands/rsync +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 472836abad9da3e74360c01bf0b6889d5d180274
|
4
|
+
data.tar.gz: 997deade2fa19ec1060789a4d06d1d20e484d6c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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--
|
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
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
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]
|
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
|
-
|
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
|
data/share/rbbt_commands/rsync
CHANGED
@@ -36,7 +36,7 @@ test_str = options[:test] ? '-nv' : ''
|
|
36
36
|
|
37
37
|
source, target, _sep, *other = ARGV
|
38
38
|
|
39
|
-
cmd = "rsync -
|
39
|
+
cmd = "rsync -at #{test_str} #{excludes_str} #{source} #{target} #{other * " "}"
|
40
40
|
|
41
41
|
if options[:print]
|
42
42
|
puts cmd
|