Checklet¶
- checklet mtrchk.org.momotor.run.inout.RunInOut(recipe, product, config, results, task_id, work_dir=None)¶
Execute an external command providing input and capturing output from that program through standard input and output streams or files.
- tasks@scheduler option¶
Enable multiple tasks for this step. If not provided, a single task is generated for this step.
See Scheduler tasks option for the documentation of this option.
- Type:
string
- Required:
False
- Multiple:
False
- Location:
config, recipe, step
- Default:
No default
Provided by:
StepTasksCheckletMixin
- timeLimit option¶
Maximum time allowed for execution. Can be supplied in
hh:mm:ssformat, or as seconds- Type:
Any
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
ExecutionMixin
- blockLimit option¶
Maximum time allowed without any progress (wall clock time). Can be supplied in
hh:mm:ssformat, or as seconds- Type:
Any
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
ExecutionMixin
- memoryLimit option¶
Maximum memory usage allowed for execution. Can use IEC or SI units, eg.
1k(for 1000 bytes) or1KiB(for 1024 bytes)- Type:
Any
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
ExecutionMixin
- processLimit option¶
Maximum number of child processes
- Type:
integer
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
ExecutionMixin
- stdin option¶
Content to provide on stdin. Mutually exclusive with the
stdin-file-refoption. If neitherstdinandstdin-file-refoptions are provided, stdin is closed.- Type:
Any
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
CapturedExecutionMixin
- stdin-file-ref option¶
Reference to a file to provide text on stdin. Mutually exclusive with the
stdinoption. If neitherstdin-file-refand :momotor:option:.stdin` options are provided, stdin is closed.The reference is parsed with
find_files(), see that method for details.- Type:
Any
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
CapturedExecutionMixin
- input-file-ref option¶
Reference for file(s) to put in execution tree.
The reference is parsed with
find_files(), see that method for details.- Type:
Any
- Required:
False
- Multiple:
True
- All:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
CapturedExecutionMixin
- input-delay option¶
Delay (in milliseconds) between sending lines on stdin
- Type:
integer
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
CapturedExecutionMixin
- capture-stdio option¶
Capture the stream on stdin/out/err. When enabled, the checklet outputs a property stdio containing a (json) list of objects. The objects contains entries for I/O on ‘stdin’, ‘stdout’, ‘stderr’ (with key 0, 1 and 2 respectively), and a timestamp in seconds since execution start (with key
@)- Type:
boolean
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
False
Provided by:
CapturedExecutionMixin
- stdout-file-class option¶
Export output produced on stdout to a file with this class
- Type:
Any
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
CapturedExecutionMixin
- stderr-file-class option¶
Export output produced on stderr to a file with this class
- Type:
Any
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
CapturedExecutionMixin
- stdouterr-file-class option¶
Export combined output produced on stdout/stderr combined to a file with this class
- Type:
Any
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
CapturedExecutionMixin
- output-file-class option¶
Export produced or modified files with this class
- Type:
Any
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
CapturedExecutionMixin
- pass-on-exitcode option¶
A comma-separated list of exit codes that should not be considered a failure. Ranges can be indicated as X..Y. This list should include the “0” exit code if it should be a pass. e.g.
0, 1, 100..109allows exit codes 0, 1 and 100 up to and including 109- Type:
Any
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
0
Provided by:
CapturedExecutionMixin
- fail-on-stderr option¶
Produce a fail outcome if any (non-whitespace) output is produced on stderr
- Type:
boolean
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
False
Provided by:
CapturedExecutionMixin
- report-stdio option¶
Report stdio.
Either
true,falseor a (comma or space-seperated) list of streams (in,out,err) to include.instream will be formatted bold,outstream will be in regular font anderrstream will be in red.Default:
false- Type:
Any
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
false
Provided by:
CapturedExecutionMixin
- truncate-stdout-lines option¶
Limit for the number of lines captured from stdout.
Can be use IEC or SI units, eg.
1k(for 1000 lines) or1KiB(for 1024 lines). Default =5000, hard limit =100k- Type:
string
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
CapturedExecutionMixin
- truncate-stdout-bytes option¶
Limit for the number of bytes captured from stdout.
Can be use IEC or SI units, eg.
1k(for 1000 bytes) or1KiB(for 1024 bytes). Default =1 MiB, hard limit =16 MiB- Type:
string
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
CapturedExecutionMixin
- truncate-stderr-lines option¶
Limit for the number of lines captured from stderr.
Can be use IEC or SI units, eg.
1k(for 1000 lines) or1KiB(for 1024 lines). Default =5000, hard limit =100k- Type:
string
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
CapturedExecutionMixin
- truncate-stderr-bytes option¶
Limit for the number of bytes captured from stderr. Can be use IEC or SI units, eg.
1k(for 1000 bytes) or1KiB(for 1024 bytes).Default =
1 MiB, hard limit =16 MiB- Type:
string
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
CapturedExecutionMixin
- fail-on-truncation option¶
Fail if an output is truncated.
Can be a boolean ‘true’ to fail if either stdout or stderr is truncated, ‘false’ to never fail on truncation, or the values ‘stdout’ or ‘stderr’ to only fail if that stream is truncated
- Type:
string
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
false
Provided by:
CapturedExecutionMixin
- secret option¶
Dynamic secret property value for the result. Momotor LTI will not show steps with a secret property set to
trueto learners, but will still show that step to reviewers.The option value can be one of the following:
alwaysortrue: adds a secret property with valuetrueto the result.false: do not add a secret property to the result.on-fail: adds a secret property with valuetrueto the result if the step fails.on-pass: adds a secret property with valuetrueto the result if the step passed.default: inherits the value from the next provider. If the last provider is ‘default’ no property will be added.
Note that this only adds a secret property with value
true, but never one with valuefalse. This ensures that a default defined in a recipe will be used unless the step or config explicitly override it.The value can contain reference placeholders to inherit the value from another step’s options or properties.
- Type:
Any
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
default
Provided by:
SecretOptionMixin
- label option¶
Label for this step. Momotor LTI uses labels as the header of the step in the result view. If a step does not have a label, Momotor LTI will use the step id as the label.
Can contain reference placeholders and task id placeholders.
- Type:
Any
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
LabelOptionMixin
- feedback-pass option¶
Feedback to prepend to the report property when this step passes.
Can contain reference placeholders and task id placeholders.
- Type:
Any
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
FeedbackOptionMixin
- feedback-fail option¶
Feedback to prepend to the report property when this step fails.
Can contain reference placeholders and task id placeholders.
- Type:
Any
- Required:
False
- Multiple:
False
- Location:
config, step, recipe
- Default:
No default
Provided by:
FeedbackOptionMixin
- exec-file-ref option¶
Reference to the executable file to run.
The reference is parsed with
find_files(), see that method for details.- Type:
Any
- Required:
True
- Multiple:
True
- All:
False
- Location:
config, step, recipe
- Default:
No default
- extra-file-ref option¶
Reference to additional files to add to the executable directory.
The reference is parsed with
find_files(), see that method for details.- Type:
Any
- Required:
False
- Multiple:
True
- All:
False
- Location:
config, step, recipe
- Default:
No default