Runner
A runner which can be used to execute a pipeline.
Parameters
Types
Context captures paths and naming conventions of the various machines involved in the Runner
Such that this could be dynamically crafted and injected to the Runner
, independent of the pipeline
The data associated with the execution state used by StateTraceable.
Properties
The current CloseableState of this runner.
The temporary directory relative to the virtualization environment created for file exchange between the grader and the virtualization environment.
The time taken to run execWithInput, or null
if the method has not started or has not terminated.
The temporary directory relative to the grader environment created for file exchange between the grader and the virtualization environment.
Generates and memoizes ReportT from collected _reportUnits This should be a pure operation in that successive generations of the report yields the same result
List of all PipelineError, in order of appearance.
_reportUnits is to be updated across stages of a runner for appending reporting information
Functions
Appends content to a file relative to context.outPaths.hostRoot
for exporting.
Implementation for AutoCloseable.close.
Creates directories for exchanging files between the grader environment and the virtualization environment.
Decompresses a file relative to context.outPaths.hostRoot
.
Executes the pipeline using the given input as the input to the entire pipeline.
Implementation for execWithInput.
Returns the generated ReportT
Generates ErrorUnit.PipelineErrorUnit.NonFatalError's based on a _pipelineErrs Intended to be used with pipelineErrs after successful pipeline execution
Records an error emitted by a pipeline stage.
Appends ReportUnit of a Reportable to _reportUnits
readLinesFromFile reads files on reachable from context.outPaths.hostRoot
and return the file content as lines for reporting readFromFile does the same as readLinesFromFile but returns a long string
Removes the directories created from createLogDirectories.
Returns a string representation of this Runner, simplified to only contain the assignment configuration and submission IDs.
writeToFile writes content to a file reachable from context.outPaths.hostRoot
for exporting