Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tracking issue
Why are the changes needed?
All functions in
pluginmachinery/utils/marshal_utils.go
are marked as deprecated and should be changed. See:flyte/flyteplugins/go/tasks/pluginmachinery/utils/marshal_utils.go
Lines 18 to 92 in be4d009
Above function is deprecated and suggested using following function instead:
flyte/flytestdlib/utils/marshal_utils.go
Lines 20 to 123 in 554b9e9
What changes were proposed in this pull request?
Based on the suggestion of the deprecated function's docstring, we should use functions in
flytestdlib/utils.marshal_utils.go
instead ofpluginmachinery/utils/marshal_utils.go
. Therefor, I rename the originalutils
import topluginsUtils
, and addflytestdlib/utils
as new utils import. See below:flyte/flyteplugins/go/tasks/plugins/k8s/ray/ray.go
Lines 30 to 31 in 554b9e9
and
flyte/flyteplugins/go/tasks/plugins/k8s/ray/ray_test.go
Line 30 in 554b9e9
Then modify the functions based on this new import. Only functions in
marshal_utils.go
are using new utils moduleflytestdlib/utils
, others still use the originalpluginmachinery/utils
model.This PR only modifies the
ray.go
andray_test.go
files currently.How was this patch tested?
Unit tests
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link