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

[flyteplugins] Make the TF Job Worker Spec Correct #4169

Conversation

Future-Outlier
Copy link
Member

@Future-Outlier Future-Outlier commented Oct 4, 2023

Describe your changes

As title.

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

#4167

Signed-off-by: Future Outlier <[email protected]>
@@ -122,7 +122,7 @@ func (tensorflowOperatorResourceHandler) BuildResource(ctx context.Context, task
workerReplicaSpec := kfTensorflowTaskExtraArgs.GetWorkerReplicas()
if workerReplicaSpec != nil {
err := common.OverrideContainerSpec(
replicaSpecMap[kubeflowv1.MPIJobReplicaTypeWorker].PodSpec,
replicaSpecMap[kubeflowv1.TFJobReplicaTypeWorker].PodSpec,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we add a test for it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes no problem, I will do it!

@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (a9f5d24) 54.59% compared to head (024f61c) 59.29%.
Report is 4 commits behind head on master.

❗ Current head 024f61c differs from pull request most recent head e6aadd8. Consider uploading reports for the commit e6aadd8 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4169      +/-   ##
==========================================
+ Coverage   54.59%   59.29%   +4.69%     
==========================================
  Files         178      550     +372     
  Lines       16038    39692   +23654     
==========================================
+ Hits         8756    23535   +14779     
- Misses       6568    13836    +7268     
- Partials      714     2321    +1607     
Flag Coverage Δ
unittests ?

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

Files Coverage Δ
...s/plugins/k8s/kfoperators/tensorflow/tensorflow.go 77.18% <100.00%> (ø)

... and 524 files with indirect coverage changes

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

Copy link
Contributor

@hamersaw hamersaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's really no need for a test here right?

@Future-Outlier
Copy link
Member Author

There's really no need for a test here right?

I can add it!

@pingsutw pingsutw merged commit c88f8f5 into flyteorg:master Oct 5, 2023
36 checks passed
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.

3 participants