Add deployment handoff to repo swarm MVP gate
This commit is contained in:
parent
58d8f453e1
commit
a60d0b27d5
5 changed files with 54 additions and 2 deletions
|
|
@ -23,6 +23,7 @@ struct Args {
|
|||
fresh_repo_summary: Option<PathBuf>,
|
||||
readiness_summary: Option<PathBuf>,
|
||||
bifrost_accounting_summary: Option<PathBuf>,
|
||||
deployment_handoff_summary: Option<PathBuf>,
|
||||
daemon_survival_summary: Option<PathBuf>,
|
||||
}
|
||||
|
||||
|
|
@ -33,6 +34,7 @@ impl Args {
|
|||
let mut fresh_repo_summary = None;
|
||||
let mut readiness_summary = None;
|
||||
let mut bifrost_accounting_summary = None;
|
||||
let mut deployment_handoff_summary = None;
|
||||
let mut daemon_survival_summary = None;
|
||||
let mut args = env::args().skip(1).peekable();
|
||||
while let Some(arg) = args.next() {
|
||||
|
|
@ -49,6 +51,10 @@ impl Args {
|
|||
bifrost_accounting_summary =
|
||||
Some(take_path(&mut args, "--bifrost-accounting-summary")?)
|
||||
}
|
||||
"--deployment-handoff-summary" => {
|
||||
deployment_handoff_summary =
|
||||
Some(take_path(&mut args, "--deployment-handoff-summary")?)
|
||||
}
|
||||
"--daemon-survival-summary" => {
|
||||
daemon_survival_summary =
|
||||
Some(take_path(&mut args, "--daemon-survival-summary")?)
|
||||
|
|
@ -62,6 +68,7 @@ impl Args {
|
|||
fresh_repo_summary,
|
||||
readiness_summary,
|
||||
bifrost_accounting_summary,
|
||||
deployment_handoff_summary,
|
||||
daemon_survival_summary,
|
||||
})
|
||||
}
|
||||
|
|
@ -99,6 +106,9 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
let bifrost_accounting_summary = args
|
||||
.bifrost_accounting_summary
|
||||
.unwrap_or_else(|| latest_summary(&args.smoke_root, "repo-bifrost-accounting-bundle-"));
|
||||
let deployment_handoff_summary = args
|
||||
.deployment_handoff_summary
|
||||
.unwrap_or_else(|| latest_summary(&args.smoke_root, "repo-deployment-config-family-"));
|
||||
let daemon_survival_summary = args
|
||||
.daemon_survival_summary
|
||||
.unwrap_or_else(|| latest_summary(&args.smoke_root, "daemon-survival-rehearsal-"));
|
||||
|
|
@ -106,11 +116,13 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
let fresh = read_json(&fresh_repo_summary)?;
|
||||
let readiness = read_json(&readiness_summary)?;
|
||||
let bifrost = read_json(&bifrost_accounting_summary)?;
|
||||
let deployment_handoff = read_json(&deployment_handoff_summary)?;
|
||||
let daemon_survival = read_json(&daemon_survival_summary)?;
|
||||
|
||||
verify_fresh_repo(&fresh)?;
|
||||
verify_readiness(&readiness)?;
|
||||
verify_bifrost_accounting(&bifrost)?;
|
||||
verify_deployment_handoff(&deployment_handoff)?;
|
||||
verify_daemon_survival(&daemon_survival)?;
|
||||
|
||||
let gate_rows = vec![
|
||||
|
|
@ -161,6 +173,11 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
"Bifrost",
|
||||
"readiness, artifact acceptance, and metrics accounting rows are closed",
|
||||
),
|
||||
green(
|
||||
"idunn-deployment-handoff",
|
||||
"Idunn",
|
||||
"deployment config, operator runbook, and aftercare receipt readback are sealed",
|
||||
),
|
||||
green(
|
||||
"long-running-daemon-proof",
|
||||
"Idunn",
|
||||
|
|
@ -204,10 +221,12 @@ fn run_smoke(args: Args) -> Result<Value> {
|
|||
"freshRepoSummary": fresh_repo_summary,
|
||||
"readinessSummary": readiness_summary,
|
||||
"bifrostAccountingSummary": bifrost_accounting_summary,
|
||||
"deploymentHandoffSummary": deployment_handoff_summary,
|
||||
"daemonSurvivalSummary": daemon_survival_summary,
|
||||
"freshRepoSmokeDir": fresh["smokeDir"],
|
||||
"readinessSmokeDir": readiness["smokeDir"],
|
||||
"bifrostAccountingSmokeDir": bifrost["smokeDir"],
|
||||
"deploymentHandoffSmokeDir": deployment_handoff["smokeDir"],
|
||||
"daemonSurvivalSmokeDir": daemon_survival["smokeDir"],
|
||||
"mvpReady": false,
|
||||
"demoReady": true,
|
||||
|
|
@ -332,6 +351,35 @@ fn verify_daemon_survival(value: &Value) -> Result<()> {
|
|||
require_bool(value, &["privateStateExposed"], false)
|
||||
}
|
||||
|
||||
fn verify_deployment_handoff(value: &Value) -> Result<()> {
|
||||
require_eq(
|
||||
value,
|
||||
&["schemaVersion"],
|
||||
"epiphany.repo_deployment_config_family_smoke.v0",
|
||||
)?;
|
||||
require_eq(value, &["status"], "ok")?;
|
||||
require_bool(value, &["deploymentConfigEnabled"], false)?;
|
||||
require_eq(
|
||||
value,
|
||||
&["deploymentConfigAuditStatus"],
|
||||
"ready-for-idunn-review",
|
||||
)?;
|
||||
require_bool(value, &["readyForIdunnReview"], true)?;
|
||||
require_eq(
|
||||
value,
|
||||
&["deploymentExecutionRunbookStatus"],
|
||||
"ready-for-operator-git-push",
|
||||
)?;
|
||||
require_eq(value, &["deploymentAftercareAuditStatus"], "complete")?;
|
||||
require_bool(value, &["deploymentComplete"], true)?;
|
||||
require_eq(value, &["idunnDeploymentReceiptSource"], "cultmesh")?;
|
||||
require_eq(value, &["idunnAftercareAuditReceiptSource"], "cultmesh")?;
|
||||
require_eq(value, &["deploymentTrigger"], "git-push-observed-by-idunn")?;
|
||||
require_eq(value, &["deploymentOwner"], "Idunn")?;
|
||||
require_bool(value, &["deploymentAuthority"], false)?;
|
||||
require_bool(value, &["privateStateExposed"], false)
|
||||
}
|
||||
|
||||
fn green(gate: &str, owner: &str, evidence: &str) -> Value {
|
||||
json!({
|
||||
"gate": gate,
|
||||
|
|
|
|||
Reference in a new issue