| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
use crate::domain::{GateKind, Version}; |
| 14 |
use chrono::{DateTime, Utc}; |
| 15 |
use serde::{Deserialize, Serialize}; |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
#[derive(Debug, Clone, Serialize, Deserialize)] |
| 20 |
pub struct GateOutcome { |
| 21 |
pub status: GateStatus, |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
#[serde(skip_serializing_if = "Option::is_none", default)] |
| 26 |
pub log_ref: Option<LogRef>, |
| 27 |
} |
| 28 |
|
| 29 |
impl GateOutcome { |
| 30 |
pub fn passed(note: PassNote) -> Self { |
| 31 |
Self { |
| 32 |
status: GateStatus::Passed { note }, |
| 33 |
log_ref: None, |
| 34 |
} |
| 35 |
} |
| 36 |
pub fn failed(failure: GateFailure) -> Self { |
| 37 |
Self { |
| 38 |
status: GateStatus::Failed { failure }, |
| 39 |
log_ref: None, |
| 40 |
} |
| 41 |
} |
| 42 |
pub fn blocked(blocker: GateBlocker) -> Self { |
| 43 |
Self { |
| 44 |
status: GateStatus::Blocked { blocker }, |
| 45 |
log_ref: None, |
| 46 |
} |
| 47 |
} |
| 48 |
#[must_use] |
| 49 |
pub fn with_log_ref(mut self, log_ref: LogRef) -> Self { |
| 50 |
self.log_ref = Some(log_ref); |
| 51 |
self |
| 52 |
} |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
pub fn is_passed(&self) -> bool { |
| 58 |
matches!(self.status, GateStatus::Passed { .. }) |
| 59 |
} |
| 60 |
|
| 61 |
|
| 62 |
pub fn status_str(&self) -> &'static str { |
| 63 |
match self.status { |
| 64 |
GateStatus::Passed { .. } => "passed", |
| 65 |
GateStatus::Failed { .. } => "failed", |
| 66 |
GateStatus::Blocked { .. } => "blocked", |
| 67 |
} |
| 68 |
} |
| 69 |
} |
| 70 |
|
| 71 |
#[derive(Debug, Clone, Serialize, Deserialize)] |
| 72 |
#[serde(tag = "kind", rename_all = "snake_case")] |
| 73 |
pub enum GateStatus { |
| 74 |
|
| 75 |
|
| 76 |
Passed { note: PassNote }, |
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
Failed { failure: GateFailure }, |
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
Blocked { blocker: GateBlocker }, |
| 86 |
} |
| 87 |
|
| 88 |
#[derive(Debug, Clone, Serialize, Deserialize)] |
| 89 |
#[serde(tag = "kind", rename_all = "snake_case")] |
| 90 |
pub enum PassNote { |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
HealthyProbe { after_ms: u32 }, |
| 97 |
|
| 98 |
|
| 99 |
BurnInElapsed { hours: u32 }, |
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
Migrated { |
| 105 |
backup_path: String, |
| 106 |
#[serde(default)] |
| 107 |
checks: Vec<String>, |
| 108 |
}, |
| 109 |
|
| 110 |
TestsPassed { duration_s: u32 }, |
| 111 |
|
| 112 |
OperatorConfirmed { at: DateTime<Utc> }, |
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
NodesHealthy { nodes: u32 }, |
| 117 |
|
| 118 |
PagesClean { base: String }, |
| 119 |
|
| 120 |
|
| 121 |
Legacy { text: String }, |
| 122 |
} |
| 123 |
|
| 124 |
impl PassNote { |
| 125 |
pub fn summary(&self) -> String { |
| 126 |
match self { |
| 127 |
PassNote::HealthyProbe { after_ms } => format!("served /health in {after_ms}ms"), |
| 128 |
PassNote::BurnInElapsed { hours } => format!("{hours} hours elapsed"), |
| 129 |
PassNote::Migrated { |
| 130 |
backup_path, |
| 131 |
checks, |
| 132 |
} => match checks.len() { |
| 133 |
|
| 134 |
|
| 135 |
0 | 1 => format!("restored {backup_path} + migrated"), |
| 136 |
n => format!("restored + migrated {n} databases: {}", checks.join(", ")), |
| 137 |
}, |
| 138 |
PassNote::TestsPassed { duration_s } => format!("tests passed in {duration_s}s"), |
| 139 |
PassNote::OperatorConfirmed { at } => format!("operator confirmed at {at}"), |
| 140 |
PassNote::NodesHealthy { nodes } => format!("{nodes} node(s) healthy"), |
| 141 |
PassNote::PagesClean { base } => format!("pages clean at {base}"), |
| 142 |
PassNote::Legacy { text } => text.clone(), |
| 143 |
} |
| 144 |
} |
| 145 |
} |
| 146 |
|
| 147 |
#[derive(Debug, Clone, Serialize, Deserialize)] |
| 148 |
#[serde(tag = "kind", rename_all = "snake_case")] |
| 149 |
pub enum GateBlocker { |
| 150 |
|
| 151 |
BurnInClockNotStarted, |
| 152 |
|
| 153 |
BurnInRemaining { |
| 154 |
hours_remaining: u32, |
| 155 |
hours_total: u32, |
| 156 |
}, |
| 157 |
|
| 158 |
|
| 159 |
AwaitingOperatorConfirmation, |
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
NoBackupAvailable { |
| 164 |
#[serde(default)] |
| 165 |
check: String, |
| 166 |
#[serde(default)] |
| 167 |
backup: String, |
| 168 |
}, |
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
BackupStale { |
| 174 |
age_hours: i64, |
| 175 |
max_age_hours: u32, |
| 176 |
#[serde(default)] |
| 177 |
check: String, |
| 178 |
}, |
| 179 |
|
| 180 |
|
| 181 |
ScratchDbUrlUnset, |
| 182 |
|
| 183 |
ArtifactMissing { version: Version }, |
| 184 |
|
| 185 |
|
| 186 |
NoNodesToProbe, |
| 187 |
|
| 188 |
NotConfigured { what: String }, |
| 189 |
} |
| 190 |
|
| 191 |
impl GateBlocker { |
| 192 |
pub fn summary(&self) -> String { |
| 193 |
match self { |
| 194 |
GateBlocker::BurnInClockNotStarted => "burn-in clock not started".into(), |
| 195 |
GateBlocker::BurnInRemaining { |
| 196 |
hours_remaining, |
| 197 |
hours_total, |
| 198 |
} => format!("{hours_remaining} hours remaining of {hours_total}"), |
| 199 |
GateBlocker::AwaitingOperatorConfirmation => "waiting on operator confirmation".into(), |
| 200 |
GateBlocker::NoBackupAvailable { backup, .. } => { |
| 201 |
let which = if backup.is_empty() { |
| 202 |
String::new() |
| 203 |
} else { |
| 204 |
format!("{backup} ") |
| 205 |
}; |
| 206 |
format!("no {which}backup fetched; call /backup/fetch first") |
| 207 |
} |
| 208 |
GateBlocker::BackupStale { |
| 209 |
age_hours, |
| 210 |
max_age_hours, |
| 211 |
check, |
| 212 |
} => { |
| 213 |
let which = if check.is_empty() { |
| 214 |
String::new() |
| 215 |
} else { |
| 216 |
format!(" for {check}") |
| 217 |
}; |
| 218 |
format!( |
| 219 |
"backup{which} is {age_hours}h old (max {max_age_hours}h); re-run \ |
| 220 |
/backup/fetch" |
| 221 |
) |
| 222 |
} |
| 223 |
GateBlocker::ScratchDbUrlUnset => "scratch_db_url unset in daemon config".into(), |
| 224 |
GateBlocker::ArtifactMissing { version } => { |
| 225 |
format!("no artifact for version {version}") |
| 226 |
} |
| 227 |
GateBlocker::NoNodesToProbe => "node_health has no nodes to probe".into(), |
| 228 |
GateBlocker::NotConfigured { what } => format!("{what} is not configured"), |
| 229 |
} |
| 230 |
} |
| 231 |
} |
| 232 |
|
| 233 |
#[derive(Debug, Clone, Serialize, Deserialize)] |
| 234 |
#[serde(tag = "kind", rename_all = "snake_case")] |
| 235 |
pub enum GateFailure { |
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
CargoTest { |
| 243 |
failed_count: u32, |
| 244 |
first_failed: Option<String>, |
| 245 |
#[serde(default, skip_serializing_if = "Option::is_none")] |
| 246 |
first_panic: Option<String>, |
| 247 |
}, |
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
|
| 252 |
|
| 253 |
|
| 254 |
CompileError { |
| 255 |
error_count: u32, |
| 256 |
first_error: Option<String>, |
| 257 |
}, |
| 258 |
|
| 259 |
|
| 260 |
MigrationDrift { migration: String }, |
| 261 |
|
| 262 |
|
| 263 |
MigrationModified { migration: String }, |
| 264 |
|
| 265 |
MigrationSqlError { |
| 266 |
migration: String, |
| 267 |
sqlstate: Option<String>, |
| 268 |
}, |
| 269 |
|
| 270 |
RestoreFailed { reason: String }, |
| 271 |
|
| 272 |
|
| 273 |
|
| 274 |
BootPanic { exit_code: Option<i32> }, |
| 275 |
|
| 276 |
BootExitedEarly { exit_code: Option<i32> }, |
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
BootHealthProbeFailed { last_error: String }, |
| 281 |
|
| 282 |
|
| 283 |
|
| 284 |
NodeUnhealthy { node: String, detail: String }, |
| 285 |
|
| 286 |
PagesBroken { base: String, detail: String }, |
| 287 |
|
| 288 |
|
| 289 |
|
| 290 |
|
| 291 |
CodeSmokeSetup { reason: String }, |
| 292 |
|
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
CodeSmokeSeed { exit_code: Option<i32> }, |
| 297 |
|
| 298 |
|
| 299 |
|
| 300 |
|
| 301 |
|
| 302 |
|
| 303 |
CodeSmokeDocs { broken: u32 }, |
| 304 |
|
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
CodeSmokeNoListeningLog, |
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
|
| 314 |
|
| 315 |
|
| 316 |
CodeSmokeFrontend { dir: String, exit_code: Option<i32> }, |
| 317 |
|
| 318 |
SpawnFailed { message: String }, |
| 319 |
|
| 320 |
Timeout { gate: GateKind, after_s: u32 }, |
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
NeedsSource { gate: GateKind, artifact: String }, |
| 328 |
|
| 329 |
|
| 330 |
Unclassified { legacy_detail: Option<String> }, |
| 331 |
} |
| 332 |
|
| 333 |
impl GateFailure { |
| 334 |
pub fn summary(&self) -> String { |
| 335 |
match self { |
| 336 |
|
| 337 |
GateFailure::CargoTest { |
| 338 |
failed_count, |
| 339 |
first_panic: Some(p), |
| 340 |
.. |
| 341 |
} => format!("{failed_count} test(s) failed; first panic: {p}"), |
| 342 |
GateFailure::CargoTest { |
| 343 |
failed_count, |
| 344 |
first_failed: Some(name), |
| 345 |
first_panic: None, |
| 346 |
} => format!("{failed_count} test(s) failed; first: {name}"), |
| 347 |
GateFailure::CargoTest { |
| 348 |
failed_count, |
| 349 |
first_failed: None, |
| 350 |
first_panic: None, |
| 351 |
} => format!("{failed_count} test(s) failed"), |
| 352 |
GateFailure::CompileError { |
| 353 |
error_count, |
| 354 |
first_error: Some(e), |
| 355 |
} => format!("compile failed ({error_count} error(s)); first: {e}"), |
| 356 |
GateFailure::CompileError { |
| 357 |
error_count, |
| 358 |
first_error: None, |
| 359 |
} => format!("compile failed ({error_count} error(s))"), |
| 360 |
GateFailure::MigrationDrift { migration } => { |
| 361 |
format!("migration {migration} previously applied but missing") |
| 362 |
} |
| 363 |
GateFailure::MigrationModified { migration } => { |
| 364 |
format!("migration {migration} previously applied but modified") |
| 365 |
} |
| 366 |
GateFailure::MigrationSqlError { |
| 367 |
migration, |
| 368 |
sqlstate: Some(s), |
| 369 |
} => format!("migration {migration} sql error ({s})"), |
| 370 |
GateFailure::MigrationSqlError { |
| 371 |
migration, |
| 372 |
sqlstate: None, |
| 373 |
} => format!("migration {migration} sql error"), |
| 374 |
GateFailure::RestoreFailed { reason } => format!("restore: {reason}"), |
| 375 |
GateFailure::BootPanic { exit_code: Some(c) } => format!("binary panicked: exit {c}"), |
| 376 |
GateFailure::BootPanic { exit_code: None } => "binary panicked".into(), |
| 377 |
GateFailure::BootExitedEarly { exit_code: Some(c) } => { |
| 378 |
format!("binary exited early: exit {c}") |
| 379 |
} |
| 380 |
GateFailure::BootExitedEarly { exit_code: None } => "binary exited early".into(), |
| 381 |
GateFailure::BootHealthProbeFailed { last_error } => { |
| 382 |
format!("started but never served /health: {last_error}") |
| 383 |
} |
| 384 |
GateFailure::NodeUnhealthy { node, detail } => { |
| 385 |
format!("node {node} unhealthy: {detail}") |
| 386 |
} |
| 387 |
GateFailure::PagesBroken { base, detail } => { |
| 388 |
format!("page smoke failed at {base}: {detail}") |
| 389 |
} |
| 390 |
GateFailure::CodeSmokeSetup { reason } => format!("code smoke db setup: {reason}"), |
| 391 |
GateFailure::CodeSmokeSeed { exit_code: Some(c) } => { |
| 392 |
format!("migrate+seed run failed: exit {c}") |
| 393 |
} |
| 394 |
GateFailure::CodeSmokeSeed { exit_code: None } => "migrate+seed run failed".into(), |
| 395 |
GateFailure::CodeSmokeDocs { broken: 0 } => "broken internal docs link(s)".into(), |
| 396 |
GateFailure::CodeSmokeDocs { broken } => { |
| 397 |
format!("{broken} broken internal docs link(s)") |
| 398 |
} |
| 399 |
GateFailure::CodeSmokeNoListeningLog => { |
| 400 |
"served /health but never logged 'listening'".into() |
| 401 |
} |
| 402 |
GateFailure::CodeSmokeFrontend { dir, exit_code } => match exit_code { |
| 403 |
Some(c) => format!("frontend build failed in {dir}: exit {c}"), |
| 404 |
None => format!("frontend build failed in {dir}"), |
| 405 |
}, |
| 406 |
GateFailure::NeedsSource { gate, artifact } => format!( |
| 407 |
"{gate} needs a source checkout; this artifact was built elsewhere ({artifact})" |
| 408 |
), |
| 409 |
GateFailure::SpawnFailed { message } => format!("spawn: {message}"), |
| 410 |
GateFailure::Timeout { gate, after_s } => format!("{gate} timed out after {after_s}s"), |
| 411 |
GateFailure::Unclassified { |
| 412 |
legacy_detail: Some(d), |
| 413 |
} => d.clone(), |
| 414 |
GateFailure::Unclassified { |
| 415 |
legacy_detail: None, |
| 416 |
} => "unclassified failure".into(), |
| 417 |
} |
| 418 |
} |
| 419 |
} |
| 420 |
|
| 421 |
|
| 422 |
|
| 423 |
|
| 424 |
|
| 425 |
|
| 426 |
|
| 427 |
|
| 428 |
|
| 429 |
#[derive(Debug, Clone, Serialize, Deserialize)] |
| 430 |
pub struct DeployOutcome { |
| 431 |
pub status: DeployStatus, |
| 432 |
} |
| 433 |
|
| 434 |
impl DeployOutcome { |
| 435 |
pub fn ok() -> Self { |
| 436 |
Self { |
| 437 |
status: DeployStatus::Ok, |
| 438 |
} |
| 439 |
} |
| 440 |
pub fn failed(failure: DeployFailureKind) -> Self { |
| 441 |
Self { |
| 442 |
status: DeployStatus::Failed { failure }, |
| 443 |
} |
| 444 |
} |
| 445 |
pub fn in_progress() -> Self { |
| 446 |
Self { |
| 447 |
status: DeployStatus::InProgress, |
| 448 |
} |
| 449 |
} |
| 450 |
|
| 451 |
|
| 452 |
|
| 453 |
pub fn status_str(&self) -> &'static str { |
| 454 |
match self.status { |
| 455 |
DeployStatus::InProgress => "in_progress", |
| 456 |
DeployStatus::Ok => "ok", |
| 457 |
DeployStatus::Failed { .. } => "failed", |
| 458 |
} |
| 459 |
} |
| 460 |
} |
| 461 |
|
| 462 |
#[derive(Debug, Clone, Serialize, Deserialize)] |
| 463 |
#[serde(tag = "kind", rename_all = "snake_case")] |
| 464 |
pub enum DeployStatus { |
| 465 |
InProgress, |
| 466 |
Ok, |
| 467 |
Failed { failure: DeployFailureKind }, |
| 468 |
} |
| 469 |
|
| 470 |
#[derive(Debug, Clone, Serialize, Deserialize)] |
| 471 |
#[serde(tag = "kind", rename_all = "snake_case")] |
| 472 |
pub enum DeployFailureKind { |
| 473 |
|
| 474 |
|
| 475 |
NodeUnreachable { detail: String }, |
| 476 |
|
| 477 |
|
| 478 |
RsyncFailed { detail: String }, |
| 479 |
|
| 480 |
|
| 481 |
|
| 482 |
SymlinkSwapFailed { detail: String }, |
| 483 |
|
| 484 |
|
| 485 |
|
| 486 |
ServiceRestartFailed { detail: String }, |
| 487 |
|
| 488 |
|
| 489 |
Unclassified { detail: String }, |
| 490 |
} |
| 491 |
|
| 492 |
impl DeployFailureKind { |
| 493 |
pub fn summary(&self) -> String { |
| 494 |
match self { |
| 495 |
DeployFailureKind::NodeUnreachable { detail } => format!("node unreachable: {detail}"), |
| 496 |
DeployFailureKind::RsyncFailed { detail } => format!("rsync: {detail}"), |
| 497 |
DeployFailureKind::SymlinkSwapFailed { detail } => format!("symlink swap: {detail}"), |
| 498 |
DeployFailureKind::ServiceRestartFailed { detail } => { |
| 499 |
format!("service restart: {detail}") |
| 500 |
} |
| 501 |
DeployFailureKind::Unclassified { detail } => detail.chars().take(200).collect(), |
| 502 |
} |
| 503 |
} |
| 504 |
} |
| 505 |
|
| 506 |
|
| 507 |
|
| 508 |
|
| 509 |
|
| 510 |
|
| 511 |
|
| 512 |
|
| 513 |
|
| 514 |
|
| 515 |
|
| 516 |
|
| 517 |
|
| 518 |
|
| 519 |
|
| 520 |
|
| 521 |
|
| 522 |
|
| 523 |
#[derive(Debug, Clone, Serialize, Deserialize)] |
| 524 |
#[serde(transparent)] |
| 525 |
pub struct LogRef(pub String); |
| 526 |
|
| 527 |
impl LogRef { |
| 528 |
pub fn new(scope: &str, gate: GateKind) -> Self { |
| 529 |
Self(format!("{}/{}.log", scope, gate.as_str())) |
| 530 |
} |
| 531 |
pub fn as_str(&self) -> &str { |
| 532 |
&self.0 |
| 533 |
} |
| 534 |
} |
| 535 |
|
| 536 |
impl std::fmt::Display for LogRef { |
| 537 |
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 538 |
self.0.fmt(f) |
| 539 |
} |
| 540 |
} |
| 541 |
|
| 542 |
#[cfg(test)] |
| 543 |
mod tests { |
| 544 |
use super::*; |
| 545 |
|
| 546 |
#[test] |
| 547 |
fn outcome_serialization_is_two_layer_tagged() { |
| 548 |
let o = GateOutcome::failed(GateFailure::MigrationDrift { |
| 549 |
migration: "0047_widgets".into(), |
| 550 |
}); |
| 551 |
let v: serde_json::Value = serde_json::to_value(&o).unwrap(); |
| 552 |
assert_eq!(v["status"]["kind"], "failed"); |
| 553 |
assert_eq!(v["status"]["failure"]["kind"], "migration_drift"); |
| 554 |
assert_eq!(v["status"]["failure"]["migration"], "0047_widgets"); |
| 555 |
} |
| 556 |
|
| 557 |
#[test] |
| 558 |
fn outcome_round_trips_through_json() { |
| 559 |
let o = GateOutcome::passed(PassNote::TestsPassed { duration_s: 42 }); |
| 560 |
let s = serde_json::to_string(&o).unwrap(); |
| 561 |
let back: GateOutcome = serde_json::from_str(&s).unwrap(); |
| 562 |
assert!(back.is_passed()); |
| 563 |
assert_eq!(back.status_str(), "passed"); |
| 564 |
} |
| 565 |
|
| 566 |
#[test] |
| 567 |
fn timeout_failure_renders_and_is_not_passed() { |
| 568 |
|
| 569 |
|
| 570 |
let o = GateOutcome::failed(GateFailure::Timeout { |
| 571 |
gate: GateKind::CargoTest, |
| 572 |
after_s: 2400, |
| 573 |
}); |
| 574 |
assert!(!o.is_passed()); |
| 575 |
let v: serde_json::Value = serde_json::to_value(&o).unwrap(); |
| 576 |
assert_eq!(v["status"]["failure"]["kind"], "timeout"); |
| 577 |
assert!( |
| 578 |
matches!(&o.status, GateStatus::Failed { failure } if failure.summary().contains("timed out")) |
| 579 |
); |
| 580 |
} |
| 581 |
|
| 582 |
#[test] |
| 583 |
fn blocked_is_not_passed() { |
| 584 |
let o = GateOutcome::blocked(GateBlocker::BurnInClockNotStarted); |
| 585 |
assert!(!o.is_passed()); |
| 586 |
assert_eq!(o.status_str(), "blocked"); |
| 587 |
} |
| 588 |
|
| 589 |
#[test] |
| 590 |
fn log_ref_construction_matches_disk_layout() { |
| 591 |
|
| 592 |
assert_eq!( |
| 593 |
LogRef::new("62", GateKind::CargoTest).as_str(), |
| 594 |
"62/cargo_test.log" |
| 595 |
); |
| 596 |
|
| 597 |
let v: Version = "0.9.6".parse().unwrap(); |
| 598 |
assert_eq!( |
| 599 |
LogRef::new(&v.to_string(), GateKind::CargoTest).as_str(), |
| 600 |
"0.9.6/cargo_test.log" |
| 601 |
); |
| 602 |
} |
| 603 |
|
| 604 |
#[test] |
| 605 |
fn unclassified_preserves_legacy_detail() { |
| 606 |
let o = GateOutcome::failed(GateFailure::Unclassified { |
| 607 |
legacy_detail: Some( |
| 608 |
"binary exited early: exit status: 101\n==== stdout ====\n...".into(), |
| 609 |
), |
| 610 |
}); |
| 611 |
let v: serde_json::Value = serde_json::to_value(&o).unwrap(); |
| 612 |
assert_eq!(v["status"]["failure"]["kind"], "unclassified"); |
| 613 |
assert!( |
| 614 |
v["status"]["failure"]["legacy_detail"] |
| 615 |
.as_str() |
| 616 |
.unwrap() |
| 617 |
.contains("exit status: 101") |
| 618 |
); |
| 619 |
} |
| 620 |
} |
| 621 |
|