Keep verification behind unavailable modeling

This commit is contained in:
Meta Vens 2026-04-30 04:19:29 +01:00
commit d1660270ba
2 changed files with 22 additions and 0 deletions

View file

@ -14034,6 +14034,7 @@ fn map_epiphany_coordinator(
}) && matches!(
signals.modeling_result_status,
ThreadEpiphanyRoleResultStatus::MissingBinding
| ThreadEpiphanyRoleResultStatus::BackendUnavailable
| ThreadEpiphanyRoleResultStatus::BackendMissing
| ThreadEpiphanyRoleResultStatus::Cancelled
| ThreadEpiphanyRoleResultStatus::Failed
@ -14070,6 +14071,7 @@ fn map_epiphany_coordinator(
}) && matches!(
signals.verification_result_status,
ThreadEpiphanyRoleResultStatus::MissingBinding
| ThreadEpiphanyRoleResultStatus::BackendUnavailable
| ThreadEpiphanyRoleResultStatus::BackendMissing
| ThreadEpiphanyRoleResultStatus::Cancelled
| ThreadEpiphanyRoleResultStatus::Failed
@ -19585,6 +19587,25 @@ mod tests {
EpiphanyCoordinatorAutomationAction::None
);
let modeling_backend_unavailable = coordinator_signals(
ThreadEpiphanyCrrcAction::Continue,
ThreadEpiphanyReorientResultStatus::MissingBinding,
ThreadEpiphanyRoleResultStatus::BackendUnavailable,
ThreadEpiphanyRoleResultStatus::MissingBinding,
);
let relaunch_modeling = map_epiphany_coordinator(
ThreadEpiphanyReorientStateStatus::Ready,
true,
&pressure,
&recommendation,
&roles,
&modeling_backend_unavailable,
);
assert_eq!(
relaunch_modeling.action,
ThreadEpiphanyCoordinatorAction::LaunchModeling
);
let modeling_done = coordinator_signals(
ThreadEpiphanyCrrcAction::Continue,
ThreadEpiphanyReorientResultStatus::MissingBinding,