pub struct Resolver {
pub manifest: Manifest,
pub workdir: PathBuf,
pub store: Store,
pub backend: Backend,
pub harness_override: Option<String>,
/* private fields */
}Expand description
Aggregated metrics container produced by the resolver.
Fields§
§manifest: Manifest§workdir: PathBuf§store: Store§backend: Backend§harness_override: Option<String>Target harness from the CLI (--harness), overriding [target] harness.
Implementations§
Source§impl Resolver
impl Resolver
Sourcepub fn new(manifest: Manifest, workdir: impl Into<PathBuf>) -> Resolver
pub fn new(manifest: Manifest, workdir: impl Into<PathBuf>) -> Resolver
Create a resolver that runs on the local, in-process reference harness.
Sourcepub fn with_backend(
manifest: Manifest,
workdir: impl Into<PathBuf>,
backend: Backend,
) -> Resolver
pub fn with_backend( manifest: Manifest, workdir: impl Into<PathBuf>, backend: Backend, ) -> Resolver
Create a resolver for a specific backend. devbox/cluster delegate trials
to the Python worker (which may lift them to real Flyte tasks); local
keeps the deterministic offline reference harness.
Sourcepub fn load_packs(&mut self) -> Vec<Task>
pub fn load_packs(&mut self) -> Vec<Task>
Load the manifest’s eval packs and return the search-split tasks.
Sourcepub fn enumerate_stacks(&self) -> Vec<Stack>
pub fn enumerate_stacks(&self) -> Vec<Stack>
Cartesian product over the manifest’s candidate axes.
Sourcepub fn run_trial(
&self,
stack: &Stack,
task: &Task,
seed: u64,
ws_root: &Path,
) -> TrialResult
pub fn run_trial( &self, stack: &Stack, task: &Task, seed: u64, ws_root: &Path, ) -> TrialResult
Run one trial (copying fixtures, running the harness, grading).
Sourcepub fn resolve(&mut self) -> Result<Lockfile, Error>
pub fn resolve(&mut self) -> Result<Lockfile, Error>
Resolve: enumerate, run, aggregate, select, and write harness.lock.
Sourcepub fn resolve_lock(&mut self) -> Result<Lockfile, Error>
pub fn resolve_lock(&mut self) -> Result<Lockfile, Error>
Resolve and return the winning lock without writing it.
Auto Trait Implementations§
impl !RefUnwindSafe for Resolver
impl !Send for Resolver
impl !Sync for Resolver
impl !UnwindSafe for Resolver
impl Freeze for Resolver
impl Unpin for Resolver
impl UnsafeUnpin for Resolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more