<#7615 feat: add run recovery proto definitions> P...
# flyte-github
a
#7615 feat: add run recovery proto definitions Pull request opened by SVilgelm Tracking issue Union-internal: ENG26-826 (parent ENG26-825 — Run Recovery) Why are the changes needed? Wire contract for the Run Recovery feature: launch a new run that references a failed prior run, reusing every action that succeeded there (recorded as
RECOVERED
without executing) and re-running only what failed or changed. This PR defines the proto surface only — no behavior; consumers land in follow-up PRs (phase support across systems, actions-service recovery logic, SDK/CLI flags). What changes were proposed in this pull request? • `flyteidl2/common/phase.proto`:
ACTION_PHASE_RECOVERED = 10
— terminal, success-equivalent phase for actions recovered as-is from a prior run. • `flyteidl2/task/run.proto`: new
Recover
message (
force_rerun_actions
escape hatch — listed action names always re-execute even if they succeeded in the source run) and
RunSpec.recover = 19
. The run being recovered is identified by the existing
RunSpec.relation
(
related_to
+
RELATION_TYPE_RECOVER
);
Recover
carries only recovery configuration and is the extension point for future recovery parameters. • `flyteidl2/actions/actions_service.proto`:
Action.recovered_from = 10
(optional, server-set provenance: source run + action name; rides in the stored action blob). • `flyteidl2/workflow/internal_run_service.proto`:
RecordActionRequest.recovered_from = 13
(replicates provenance to the run service). • `flyteidl2/workflow/run_definition.proto`:
ActionMetadata.recovered_from = 18
(user-visible provenance; 17 is taken by
relation
). • Terminal-phase classification:
RECOVERED
treated as terminal in the runs service and actions k8s client. • `gen/{go,python,ts,rust}`: regenerated. How was this patch tested? •
buf lint
passes;
make buf
reproduces the committed bindings. •
go build ./...
and
go test ./actions/k8s/... ./runs/service/...
pass. • Additive proto changes only (new enum value + new fields on fresh tags); no wire-compat impact. Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. Related PRs • flyteorg/flyte-sdk#1236, flyteorg/flyte-sdk#1237 (SDK/CLI surface, gated on this field) flyteorg/flyte