huskies: merge 866

This commit is contained in:
dave
2026-04-29 22:42:59 +00:00
parent a49f668b5a
commit 9a3f60d5d3
19 changed files with 289 additions and 144 deletions
+12 -15
View File
@@ -172,13 +172,7 @@ fn block_from_any_active_stage() {
reason: "stuck".into(),
},
);
assert!(matches!(
result,
Ok(Stage::Archived {
reason: ArchiveReason::Blocked { .. },
..
})
));
assert!(matches!(result, Ok(Stage::Blocked { .. })));
}
let m = Stage::Merge {
@@ -191,17 +185,20 @@ fn block_from_any_active_stage() {
reason: "stuck".into(),
},
);
assert!(matches!(
result,
Ok(Stage::Archived {
reason: ArchiveReason::Blocked { .. },
..
})
));
assert!(matches!(result, Ok(Stage::Blocked { .. })));
}
#[test]
fn unblock_returns_to_backlog() {
fn unblock_returns_to_coding() {
let s = Stage::Blocked {
reason: "test".into(),
};
let result = transition(s, PipelineEvent::Unblock).unwrap();
assert!(matches!(result, Stage::Coding));
}
#[test]
fn legacy_unblock_archived_blocked_returns_to_backlog() {
let s = Stage::Archived {
archived_at: chrono::Utc::now(),
reason: ArchiveReason::Blocked {