Skip to content

test(engine): cover SLA timeout escalation - #13

Merged
ObaidulKabir merged 1 commit into
mainfrom
test/sla-timeout-escalation
Oct 26, 2026
Merged

ObaidulKabir merged 1 commit into
mainfrom
test/sla-timeout-escalation

Conversation

@ObaidulKabir

Copy link
Copy Markdown
Owner

Tests: SLA timeout escalation in WorkflowEngine.Advance

Commit 22b82f8 was labelled as telemetry, but it also changed engine behaviour. When a step's SLA TimeoutEvent has no NextSteps edge, the instance now moves to Sla.EscalationStepId, and fails when none is set. No engine test covered this.

New tests:

  • timeout → escalation step;
  • END as the escalation step → the instance completes;
  • no escalation step → the advance fails and the step is unchanged;
  • an explicit NextSteps edge takes precedence;
  • ordinary events are unaffected.

Please confirm the intended behaviour. Before 22b82f8, a timeout event with no edge could still be applied as a state-machine-only sync. Now it fails when no escalation step is set.


Generated by Claude Code

Commit 22b82f8 (labelled as telemetry) also changed how Advance handles a
step's SLA TimeoutEvent: when the step has no NextSteps edge for it, the
instance now moves to Sla.EscalationStepId, and fails when none is set. No
engine test covered this. Add tests for:

- timeout -> escalation step
- timeout with END as escalation -> instance completed
- timeout without an escalation step -> failure, step unchanged
- an explicit NextSteps edge for the timeout event takes precedence
- ordinary events are unaffected

Behaviour to confirm separately: before 22b82f8 a timeout event without an
edge could still be applied as a state-machine-only synchronisation; it now
fails when no escalation step is set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Db5nX38Equ6fWErg3oD32F
@ObaidulKabir
ObaidulKabir merged commit db21a89 into main Oct 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants