huskies: merge 988

This commit is contained in:
dave
2026-05-13 17:28:52 +00:00
parent a078d3df7c
commit caed894db9
15 changed files with 169 additions and 81 deletions
+30 -3
View File
@@ -362,12 +362,30 @@ fn stage_is_blocked_returns_true_for_archived_blocked() {
reason: "too many retries".to_string(),
},
};
assert!(stage.is_blocked());
assert!(matches!(
stage,
Stage::Blocked { .. }
| Stage::MergeFailure { .. }
| Stage::MergeFailureFinal { .. }
| Stage::Archived {
reason: ArchiveReason::Blocked { .. },
..
}
));
}
#[test]
fn stage_is_blocked_returns_false_for_coding() {
assert!(!Stage::Coding.is_blocked());
assert!(!matches!(
Stage::Coding,
Stage::Blocked { .. }
| Stage::MergeFailure { .. }
| Stage::MergeFailureFinal { .. }
| Stage::Archived {
reason: ArchiveReason::Blocked { .. },
..
}
));
}
#[test]
@@ -376,7 +394,16 @@ fn stage_is_blocked_returns_false_for_archived_completed() {
archived_at: Utc::now(),
reason: ArchiveReason::Completed,
};
assert!(!stage.is_blocked());
assert!(!matches!(
stage,
Stage::Blocked { .. }
| Stage::MergeFailure { .. }
| Stage::MergeFailureFinal { .. }
| Stage::Archived {
reason: ArchiveReason::Blocked { .. },
..
}
));
}
// -- status output shows idle dot for items with no active agent --------