fix(lifecycle): harden manual transition rollout checks (#5344)

Co-authored-by: heihutu <heihutu@gmail.com>
This commit is contained in:
houseme
2026-07-28 01:29:06 +08:00
committed by GitHub
parent 0e42a3d1d9
commit 6d3ce90c0f
7 changed files with 271 additions and 51 deletions
@@ -1148,6 +1148,16 @@ mod tests {
assert_eq!(response_state(&report), "partial");
}
#[test]
fn manual_transition_response_reports_partial_for_in_flight_skip() {
let report = ManualTransitionRunReport {
skipped_already_in_flight: 1,
..Default::default()
};
assert_eq!(response_state(&report), "partial");
}
#[test]
fn manual_transition_response_reports_partial_for_duration_budget() {
let report = ManualTransitionRunReport {