Skip to content

fix(launch_manager): report kRecoveryAction from recovery, not name - #773

Merged
NicolasFussberger merged 2 commits into
eclipse-score:mainfrom
hskang-amelia:fix/recovery-source-flag
Oct 13, 2026
Merged

NicolasFussberger merged 2 commits into
eclipse-score:mainfrom
hskang-amelia:fix/recovery-source-flag

Conversation

@hskang-amelia

Copy link
Copy Markdown
Contributor

finalizeTransitionSuccess() decided the activation source by comparing the reached Run Target with Graph::recovery_state_name ("fallback_run_target"). An explicit State Manager request for that Run Target (accepted by ControlProvider, since the name exists) was therefore reported as kRecoveryAction although nothing had failed.

Carry the origin with the transition instead: setPendingState() and startTransition() take an is_recovery flag (default false), set only on the recovery paths in ProcessGroupManager (handleRecoveryRequest and the undefined-state fallback in processGroupHandler), and the source is derived from that flag. A recovery is still reported as kRecoveryAction, so fallback_to_same_target_restarts is unchanged.

Add graph_UT cases for both origins and for the flag not leaking into the next transition, and an explicit_fallback_request integration test that fails without this change (fallback reported as kRecoveryAction).

finalizeTransitionSuccess() decided the activation source by comparing
the reached Run Target with Graph::recovery_state_name
("fallback_run_target"). An explicit State Manager request for that
Run Target (accepted by ControlProvider, since the name exists) was
therefore reported as kRecoveryAction although nothing had failed.

Carry the origin with the transition instead: setPendingState() and
startTransition() take an is_recovery flag (default false), set only on
the recovery paths in ProcessGroupManager (handleRecoveryRequest and the
undefined-state fallback in processGroupHandler), and the source is
derived from that flag. A recovery is still reported as kRecoveryAction,
so fallback_to_same_target_restarts is unchanged.

Add graph_UT cases for both origins and for the flag not leaking into
the next transition, and an explicit_fallback_request integration test
that fails without this change (fallback reported as kRecoveryAction).

Signed-off-by: hskang <amelia@ivis.ai>

@danth danth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch :))

I have some suggestions about the implementation.

Comment thread score/launch_manager/src/daemon/src/process_group_manager/details/graph.cpp Outdated
Comment thread score/launch_manager/src/daemon/src/process_group_manager/details/graph.cpp Outdated
Comment thread tests/integration/explicit_fallback_request/control_client_test_driver.cpp Outdated
Address review on eclipse-score#773:
- startTransition() and setPendingState() take a
  RunTargetActivationSource instead of a bool is_recovery.
- The pending Run Target and its source are kept together in a
  PendingTransition struct; isPendingRecovery() is replaced by
  getPendingTransition().
- explicit_fallback_request no longer switches back to Startup; only
  the explicit fallback_run_target activation is checked.

Signed-off-by: hskang <amelia@ivis.ai>
@hskang-amelia
hskang-amelia deployed to workflow-approval October 9, 2026 16:04 — with GitHub Actions Active
@hskang-amelia
hskang-amelia deployed to workflow-approval October 9, 2026 16:04 — with GitHub Actions Active
@hskang-amelia
hskang-amelia deployed to workflow-approval October 9, 2026 16:04 — with GitHub Actions Active
@hskang-amelia
hskang-amelia deployed to workflow-approval October 9, 2026 16:04 — with GitHub Actions Active
@hskang-amelia
hskang-amelia requested a review from danth October 12, 2026 02:05
@NicolasFussberger
NicolasFussberger added this pull request to the merge queue Oct 13, 2026
Merged via the queue into eclipse-score:main with commit da699f3 Oct 13, 2026
18 of 20 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in LCM - Lifecycle & Health FT Oct 13, 2026
@hskang-amelia
hskang-amelia deleted the fix/recovery-source-flag branch October 13, 2026 06:09

This branch was successfully deployed

1 active deployment
workflow-approval — 625c78cc Deployed Oct 9, 2026 by hskang-amelia via Build and test arm64-qnx / approval #1375
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants