<#7556 feat: add app substate and FailureInfo to a...
# flyte-github
a
#7556 feat: add app substate and FailureInfo to app IDL Pull request opened by AdilFayyaz Why are the changes needed? When a Union App fails to start, the UI only surfaces a coarse status badge with no reason — users can't tell why without kubectl. This adds the IDL primitives (substate taxonomy + structured failure detail) the operator and UI need to surface exact failure reasons. Purely additive proto, no behavior change. What changes were proposed in this pull request? • Add nested Status.Substate enum (PULLING_IMAGE, INITIALIZING, WEBHOOK_ERROR, IMAGE_PULL_ERROR, SECRET_MOUNT_ERROR, CRASH_LOOP, OOM_KILLED). • Add top-level FailureInfo message carrying structured failure detail (image/secret/exit-code/restart-count/log-lines) plus an Action enum (NONE/REDEPLOY/OPEN_SECRETS) to drive the UI CTA. • Add substate and failure_info fields to Condition (tags 6/7), tying failure detail to the transition that produced it. • Regenerate Go, TypeScript, Python, and Rust bindings (gen/**). How was this patch tested? • buf lint --path flyteidl2/app/app_definition.proto → clean. • go build + go vet ./gen/go/flyteidl2/app/... → pass; new symbols present. • npx tsc --noEmit in gen/ts → pass. This is important to improve the readability of release notes. Setup process Screenshots Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. Related PRs Stack If you do use
git town
to manage PR Stacks, the stack relevant to this PR will show below. Otherwise, you can ignore this section. Docs link flyteorg/flyte