testinst#

class TestInstance(file_root: str, file_path: str, name: str, file: str, cpu_ids: list[str], gpu_ids: list[str], family: str, keywords: list[str], parameters: _canary.util.paramview.Parameters, timeout: float | int | None, runtime: float | int | None, baseline: list[_canary.jobspec.BaselineCopyAction | _canary.jobspec.BaselineScriptAction], sources: dict[str, list[tuple[str, str | None]]], work_tree: str, working_directory: str, state: _canary.job.JobState, status: _canary.status.Status, start: float, stop: float, id: str, returncode: int, variables: dict[str, str], dependencies: list['TestInstance'], ofile: str, efile: str | None, lockfile: str, attributes: dict[str, typing.Any] = <factory>)#

Bases: object

file_root: str#
file_path: str#
name: str#
file: str#
cpu_ids: list[str]#
gpu_ids: list[str]#
family: str#
keywords: list[str]#
parameters: Parameters#
timeout: float | int | None#
runtime: float | int | None#
baseline: list[BaselineCopyAction | BaselineScriptAction]#
sources: dict[str, list[tuple[str, str | None]]]#
work_tree: str#
working_directory: str#
state: JobState#
status: Status#
start: float#
stop: float#
id: str#
returncode: int#
variables: dict[str, str]#
dependencies: list[TestInstance]#
ofile: str#
efile: str | None#
lockfile: str#
attributes: dict[str, Any]#
property analyze: bool#
property multicase: bool#
logfile(stage: str = 'run') str#
output() str#
property processors: int#
property cpus: int#
property gpus: int#
set_attribute(**kwargs: Any) None#
get_dependency(**params: Any) TestInstance | None#
class TestMultiInstance(file_root: str, file_path: str, name: str, file: str, cpu_ids: list[str], gpu_ids: list[str], family: str, keywords: list[str], parameters: ~_canary.util.paramview.Parameters, timeout: float | int | None, runtime: float | int | None, baseline: list[~_canary.jobspec.BaselineCopyAction | ~_canary.jobspec.BaselineScriptAction], sources: dict[str, list[tuple[str, str | None]]], work_tree: str, working_directory: str, state: ~_canary.job.JobState, status: ~_canary.status.Status, start: float, stop: float, id: str, returncode: int, variables: dict[str, str], dependencies: list[~_canary.testinst.TestInstance], ofile: str, efile: str | None, lockfile: str, attributes: dict[str, ~typing.Any] = <factory>)#

Bases: TestInstance

property analyze: bool#
property multicase: bool#
from_job(job: Job) TestInstance#
load_instance(arg: Path | str | None, lookup: dict[str, TestInstance] | None = None) TestInstance#
exception MissingTestInstanceError(file: str | Path | None, attr: str)#

Bases: RuntimeError

class MissingTestInstance(file: str | pathlib.Path | None)#

Bases: object

file: str | Path | None#
property analyze: bool#
property multicase: bool#
logfile(stage: str = 'run') str#
output() str#
property processors: int#
property cpus: int#
property gpus: int#
set_attribute(**kwargs: Any) None#
get_dependency(**params: Any)#
property file_root#
property file_path#
property name#
property cpu_ids#
property gpu_ids#
property family#
property keywords#
property parameters#
property timeout#
property runtime#
property baseline#
property sources#
property work_tree#
property working_directory#
property state#
property status#
property start#
property stop#
property id#
property returncode#
property variables#
property dependencies#
property ofile#
property efile#
property lockfile#
property attributes#
exception LockFileNotFoundError#

Bases: FileNotFoundError