feat: introduce topology readiness and initialization #10

Merged
johnride merged 12 commits from feat/topologyDependencies into master 2025-04-23 15:58:32 +00:00
Owner

Adds a ensure_ready method to the Topology trait to ensure the infrastructure is prepared before score execution.

  • Introduces a new Outcome status to indicate the result of the readiness check.
  • Implements a topology_preparation_result field in Maestro to track initialization status.
  • Adds a check in interpret to warn if the topology isn't fully initialized.
  • Provides detailed documentation for the Topology trait and ensure_ready method, including recommended patterns for complex setups.
  • Adds async_trait dependency.
Adds a `ensure_ready` method to the `Topology` trait to ensure the infrastructure is prepared before score execution. - Introduces a new `Outcome` status to indicate the result of the readiness check. - Implements a `topology_preparation_result` field in `Maestro` to track initialization status. - Adds a check in `interpret` to warn if the topology isn't fully initialized. - Provides detailed documentation for the `Topology` trait and `ensure_ready` method, including recommended patterns for complex setups. - Adds `async_trait` dependency.
johnride force-pushed feat/topologyDependencies from 60c72bb328 to a73880e0f6 2025-04-19 03:41:09 +00:00 Compare
johnride force-pushed feat/topologyDependencies from 0ac8ba054a to 45668638e1 2025-04-23 15:17:46 +00:00 Compare
taha approved these changes 2025-04-23 15:49:23 +00:00
@@ -0,0 +79,4 @@
info!(
"Harmony autoinstallation is not activated, do you wish to launch autoinstallation? (y/N) : "
);
let mut input = String::new();
Collaborator

Could replace with call to inquire

Could replace with call to `inquire`
@@ -0,0 +171,4 @@
responders, Expectation, Server,
};
const BASE_TEST_PATH: &str = "/tmp/harmony-test-k3d-download";
Collaborator

Maybe use temp-dir crate?
https://crates.io/crates/temp-dir

Maybe use `temp-dir` crate? https://crates.io/crates/temp-dir
johnride added 1 commit 2025-04-23 15:57:32 +00:00
johnride merged commit 8f470278a7 into master 2025-04-23 15:58:32 +00:00
johnride deleted branch feat/topologyDependencies 2025-04-23 15:58:32 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NationTech/harmony#10
No description provided.