Skip to content
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: modify deprecated functions #6052

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

machichima
Copy link
Contributor

Tracking issue

Why are the changes needed?

Some functions are marked as deprecated (see image below), and should be changed to others

image

What changes were proposed in this pull request?

Name origin import "github.com/flyteorg/flyte/flyteplugins/go/tasks/pluginmachinery/utils" as pluginsUtils and add new import suggested in deprecated function docs "github.com/flyteorg/flyte/flytestdlib/utils". Modify code based on those in ray.go and ray_test.go.

How was this patch tested?

Unit tests

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

Docs link

Use suggested function from the deprecated function's docs

Signed-off-by: machichima <[email protected]>
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.08%. Comparing base (6f187ae) to head (554b9e9).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6052      +/-   ##
==========================================
+ Coverage   37.05%   37.08%   +0.03%     
==========================================
  Files        1316     1318       +2     
  Lines      132247   132284      +37     
==========================================
+ Hits        48998    49060      +62     
+ Misses      78987    78953      -34     
- Partials     4262     4271       +9     
Flag Coverage Δ
unittests-datacatalog 51.58% <ø> (ø)
unittests-flyteadmin 54.10% <ø> (ø)
unittests-flytecopilot 30.99% <ø> (+8.76%) ⬆️
unittests-flytectl 62.29% <ø> (-0.18%) ⬇️
unittests-flyteidl 7.23% <ø> (-0.01%) ⬇️
unittests-flyteplugins 53.73% <100.00%> (ø)
unittests-flytepropeller 42.63% <ø> (ø)
unittests-flytestdlib 57.57% <ø> (-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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant