-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Enable kubeflow plugins to use dynamic log links #6284
Fix: Enable kubeflow plugins to use dynamic log links #6284
Conversation
Signed-off-by: Fabio Graetz <[email protected]>
Code Review Agent Run #7f6d32Actionable Suggestions - 10
Review Details
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6284 +/- ##
==========================================
- Coverage 33.82% 33.82% -0.01%
==========================================
Files 1329 1329
Lines 147791 147808 +17
==========================================
+ Hits 49991 49993 +2
- Misses 92961 92973 +12
- Partials 4839 4842 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Changelist by BitoThis pull request implements the following key changes.
|
flyteplugins/go/tasks/plugins/k8s/kfoperators/common/common_operator_test.go
Show resolved
Hide resolved
flyteplugins/go/tasks/plugins/k8s/kfoperators/common/common_operator_test.go
Show resolved
Hide resolved
flyteplugins/go/tasks/plugins/k8s/kfoperators/common/common_operator_test.go
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thank you!
Thank you for the super quick reviews @eapolinario 🙏 🚀 |
Why are the changes needed?
So-called dynamic log links are log links which are not activated by default for all tasks but need to be activated for specific tasks. This is done setting a respective "log link type" in the so-called task config, see e.g. here in the wandb plugin.
These dynamic log links currently don't work for the kubeflow plugins (pytorch, tensorflow, mpi tasks). The reason is that the so-called "task template" in flytepropeller - which contains the task-specific log link config - is not made available to the log link templating engine. This PR fixes this.
How was this patch tested?
Added unit test.
Check all the applicable boxes
Summary by Bito
This PR addresses a bug in Kubeflow plugins by enabling dynamic log links through task template integration. The changes modify the GetLogs function signature to include taskTemplate parameter and update PyTorch, TensorFlow, and MPI plugins accordingly. The implementation ensures proper template availability for log link generation with comprehensive test coverage.Unit tests added: True
Estimated effort to review (1-5, lower is better): 3