Skip to content

Conversation

@majiayu000
Copy link

Fixes #6308

Summary

Adds GetExecutionID() and GetExecutionDomain() methods to the TaskExecutionMetadata interface, allowing plugins to access the workflow execution identifier and domain.

Changes

  • Added GetExecutionID() *core.WorkflowExecutionIdentifier to TaskExecutionMetadata interface
  • Added GetExecutionDomain() string to TaskExecutionMetadata interface
  • Implemented both methods in taskExecutionMetadata struct using existing NodeExecutionMetadata data
  • Regenerated mocks with mockery

Test Plan

  • All existing tests pass
  • Changes reuse existing context data, no new testing required

🤖 Generated with Claude Code

This adds two new convenience methods to the TaskExecutionMetadata
interface to provide direct access to execution_id and execution_domain
for plugins. Previously, plugins had to traverse the nested protobuf
structure to access this information.

Fixes flyteorg#6308

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: majiayu000 <1835304752@qq.com>
@codecov
Copy link

codecov bot commented Dec 31, 2025

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.93%. Comparing base (fba30ad) to head (641e4f2).

Files with missing lines Patch % Lines
...ller/pkg/controller/nodes/task/taskexec_context.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6832      +/-   ##
==========================================
- Coverage   56.94%   56.93%   -0.01%     
==========================================
  Files         929      929              
  Lines       58139    58143       +4     
==========================================
+ Hits        33105    33106       +1     
- Misses      21993    21996       +3     
  Partials     3041     3041              
Flag Coverage Δ
unittests-datacatalog 53.51% <ø> (ø)
unittests-flyteadmin 53.14% <ø> (ø)
unittests-flytecopilot 43.06% <ø> (ø)
unittests-flytectl 64.02% <ø> (ø)
unittests-flyteidl 75.71% <ø> (ø)
unittests-flyteplugins 60.13% <ø> (ø)
unittests-flytepropeller 53.53% <0.00%> (-0.02%) ⬇️
unittests-flytestdlib 63.29% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant