Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion clients/installinator-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ license = "MPL-2.0"
workspace = true

[dependencies]
installinator-common.workspace = true
omicron-common.workspace = true
omicron-uuid-kinds.workspace = true
progenitor.workspace = true
Expand Down
8 changes: 3 additions & 5 deletions clients/installinator-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ progenitor::generate_api!(
},
replace = {
Duration = std::time::Duration,
EventReportForInstallinatorSpec = installinator_common::EventReport,
EventReportForGenericSpec = update_engine::events::EventReport<update_engine::NestedSpec>,
M2Slot = omicron_common::disk::M2Slot,
ProgressEventForGenericSpec = installinator_common::ProgressEvent<update_engine::NestedSpec>,
ProgressEventForInstallinatorSpec = installinator_common::ProgressEvent,
StepEventForGenericSpec = installinator_common::StepEvent<update_engine::NestedSpec>,
StepEventForInstallinatorSpec = installinator_common::StepEvent,
ProgressEventForGenericSpec = update_engine::events::ProgressEvent<update_engine::NestedSpec>,
StepEventForGenericSpec = update_engine::events::StepEvent<update_engine::NestedSpec>,
}
);

Expand Down
2 changes: 1 addition & 1 deletion installinator-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ workspace = true
anyhow.workspace = true
dropshot.workspace = true
hyper.workspace = true
installinator-common.workspace = true
omicron-common.workspace = true
omicron-uuid-kinds.workspace = true
omicron-workspace-hack.workspace = true
schemars.workspace = true
serde.workspace = true
slog.workspace = true
tufaceous-artifact.workspace = true
update-engine.workspace = true
uuid.workspace = true
4 changes: 2 additions & 2 deletions installinator-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ use dropshot::{
RequestContext, TypedBody,
};
use hyper::header;
use installinator_common::EventReport;
use omicron_uuid_kinds::MupdateUuid;
use schemars::JsonSchema;
use serde::Deserialize;
use tufaceous_artifact::ArtifactHashId;
use update_engine::{NestedSpec, events::EventReport};

const PROGRESS_REPORT_MAX_BYTES: usize = 4 * 1024 * 1024;

Expand Down Expand Up @@ -57,7 +57,7 @@ pub trait InstallinatorApi {
async fn report_progress(
rqctx: RequestContext<Self::Context>,
path: Path<ReportQuery>,
report: TypedBody<EventReport>,
report: TypedBody<EventReport<NestedSpec>>,
) -> Result<HttpResponseUpdatedNoContent, HttpError>;
}

Expand Down
2 changes: 1 addition & 1 deletion installinator/src/artifact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl ArtifactClient {
report: EventReport,
) -> Result<(), ClientError> {
self.client
.report_progress(&update_id, &report)
.report_progress(&update_id, &report.into_generic())
.await
.map(|resp| resp.into_inner())
}
Expand Down
Loading
Loading