ir#
- class DependencySelector(pattern: str, expects: str | int = '+', when: str = 'on_success')#
Bases:
objectString representation of test dependencies
Dependency resolution is performed after job discovery. The
DependencySelectorobject holds information needed to perform the resolution.- Parameters:
value – The dependency name or glob pattern.
expect – For glob patterns, how many dependencies are expected to be found
result – The job will run if the dependency exits with this status. Usually
success
- pattern: str#
- expects: str | int = '+'#
- when: str = 'on_success'#
- matches(spec: Any) bool#
- verify(n: int) list[str]#
- class JobSpecIR(file_root: Path, file_path: Path, id: str | None = None, family: str | None = None, stdout: str = 'canary-out.txt', stderr: str | None = None, dependencies: list[DependencySelector] | None = None, parameters: dict[str, Any] | None = None, meta_parameters: dict[str, Any] | None = None, attributes: dict[str, Any] | None = None, keywords: list[str] | None = None, assets: list[Asset] | None = None, artifacts: list[Artifact] | None = None, exclusive: bool = False, timeout: float = -1.0, xstatus: int = 0, preload: str | None = None, modules: list[str] | None = None, rcfiles: list[str] | None = None, owners: list[str] | None = None, environment: dict[str, str | None] | None = None, command: list[str] | None = None, mask: Mask = Mask(value=False, reason=None), baseline: list[BaselineCopyAction | BaselineScriptAction] | None = None, view_path: str | None = None, exec_path: str | None = None)#
Bases:
object- file_root: Path#
- file_path: Path#
- family: str#
- parameters: dict[str, Any]#
- meta_parameters: dict[str, Any]#
- stdout: str#
- stderr: str | None#
- dependencies: list[DependencySelector]#
- attributes: dict[str, Any]#
- keywords: list[str]#
- timeout: float#
- xstatus: int#
- preload: str | None#
- modules: list[str] | None#
- rcfiles: list[str] | None#
- owners: list[str] | None#
- environment: dict[str, str | None]#
- exec_path: str | None#
- view_path: str | None#
- id: str#
- add_artifact(pattern: str, when: Literal['always', 'never', 'on_failure', 'on_success'] = 'always') None#
- set_attribute(name: str, value: Any) None#
- set_attributes(**kwds: Any) None#
- build_dependencies(args: Sequence[str | DependencySelector]) list[DependencySelector]#
- property name: str#
- property fullname: str#
- display_name(resolve: bool = False) str#