#7720 Add cache lineage metadata to action events
Pull request opened by
pvditt
Why are the changes needed?
Flyte 2 cache-hit events need to identify the action attempt that originally produced the cached outputs. This lets API consumers surface cache lineage without carrying the Flyte 1 CatalogMetadata shape into the Flyte 2 API.
What changes were proposed in this pull request?
• Add an extensible CacheMetadata message containing the source ActionAttemptIdentifier.
• Add optional cache_metadata fields to ActionEvent and ActionAttempt.
• Regenerate Go, Python, Rust, and TypeScript bindings.
The additions use new protobuf field numbers and are wire-compatible with older producers and consumers.
How was this patch tested?
• buf lint --path flyteidl2/workflow/run_definition.proto
• buf breaking --against .git#ref=origin/main --path flyteidl2/workflow/run_definition.proto
• go test ./gen/go/flyteidl2/workflow
• npm exec -- tsc --noEmit (from gen/ts)
Rust cargo validation is left to CI because the local Cargo 1.82 toolchain cannot parse a transitive dependency that requires edition-2024 support.
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
flyteorg/flyte