mate.build.compile module

exception mate.build.compile.CompilationError(compilation_id: str, message: str, challenge_id: Optional[str] = None)

Bases: mate_common.error.MateError

An exception denoting a compilation-phase-specific error.

Parameters
  • compilation_id (str) –

  • message (str) –

  • challenge_id (Optional[str]) –

Return type

None

challenge_id: Optional[str] = None
compilation_id: str
classmethod from_process_error(cpe: subprocess.CalledProcessError, compilation_id: str, challenge_id: Optional[str] = None) mate.build.compile.CompilationError
Parameters
  • cpe (subprocess.CalledProcessError) –

  • compilation_id (str) –

  • challenge_id (Optional[str]) –

Return type

mate.build.compile.CompilationError

message: str
mate.build.compile.compile_artifact(artifact: mate_query.db.Artifact, compilation: mate_query.db.Compilation, session: sqlalchemy.orm.session.Session, options: mate_common.models.compilations.CompileOptions) None

Run the MATE compilation pipeline for the given artifact, which is assumed to be one of the “source” compile targets (i.e., any except for JSONL).

The compilation pipeline produces a series of artifacts, each of which is associated with the given db.Compilation via the supplied session.

Parameters
Return type

None