Skip to content

Commit e12fc62

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix/8306-finalize-committed-branch
2 parents b377014 + ebfde7b commit e12fc62

11 files changed

Lines changed: 827 additions & 721 deletions

File tree

src/command_contract/lab/handoff.rs

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
//! Durable handoff and run-location evidence for detached Lab jobs.
22
3-
use crate::core::run_outcome_envelope::RunOutcomeEnvelope;
4-
use crate::core::runner_execution_envelope::{
5-
PathMaterializationPlan, RunnerExecutionArtifactRef, RunnerExecutionNextAction,
6-
RunnerExecutionRecord,
7-
};
3+
use crate::core::path_materialization::PathMaterializationPlan;
84

95
use super::RunnerWorkloadArtifactRef;
106

@@ -258,46 +254,6 @@ impl RunnerHandoffEnvelope {
258254
follow_commands,
259255
}
260256
}
261-
262-
pub fn runner_execution_record(&self) -> RunnerExecutionRecord {
263-
let record = if self.status == "running" {
264-
RunnerExecutionRecord::in_flight(self.job_id.clone(), self.runner_id.clone(), "daemon")
265-
} else {
266-
RunnerExecutionRecord::terminal(
267-
self.job_id.clone(),
268-
self.runner_id.clone(),
269-
"daemon",
270-
if self.status == "succeeded" { 0 } else { 1 },
271-
)
272-
};
273-
record
274-
.with_job_id(self.job_id.clone())
275-
.with_mirror_run_id(
276-
self.mirror_run_id
277-
.clone()
278-
.or_else(|| self.persisted_run_id.clone())
279-
.or_else(|| self.durable_run_id.clone()),
280-
)
281-
.with_path_materialization_plan(self.path_materialization_plan.clone())
282-
.with_artifact_refs(self.evidence.artifact_refs.iter().map(|artifact| {
283-
RunnerExecutionArtifactRef {
284-
id: artifact.id.clone(),
285-
name: artifact.name.clone(),
286-
path: artifact.path.clone(),
287-
url: artifact.url.clone(),
288-
}
289-
}))
290-
.with_next_actions(self.evidence.next_commands.iter().map(|command| {
291-
RunnerExecutionNextAction {
292-
label: command.label.clone(),
293-
command: command.command.clone(),
294-
}
295-
}))
296-
}
297-
298-
pub fn run_outcome_envelope(&self) -> RunOutcomeEnvelope {
299-
RunOutcomeEnvelope::from_runner_execution_record(&self.runner_execution_record())
300-
}
301257
}
302258

303259
impl RunnerHandoffArtifactManifestRef {

src/command_contract/lab/workload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub struct RunnerWorkloadAgentTask {
4848
pub plan_ref: Option<String>,
4949
#[serde(default, skip_serializing_if = "Option::is_none")]
5050
pub resolved_provider_policy:
51-
Option<crate::core::agent_task_dispatch_service::ResolvedAgentTaskProviderPolicy>,
51+
Option<crate::core::agent_task_schedule::ResolvedAgentTaskProviderPolicy>,
5252
pub dispatch_kind: RunnerWorkloadAgentTaskDispatchKind,
5353
pub lifecycle_mirror_policy: RunnerWorkloadAgentTaskLifecycleMirrorPolicy,
5454
}

0 commit comments

Comments
 (0)