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(backend): fixes "cannot save parameter" error message. Fixes #9678 #10459

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

hbelmiro
Copy link
Contributor

@hbelmiro hbelmiro commented Feb 8, 2024

Fixes: #9678

Description of your changes:

I propose these changes as an initial solution, but I'm not sure it's the best one. So, feel free to recommend a better one and I'll be happy to implement it.

This PR modifies the driver so it creates the needed files with default values when IterationCount and Condition are nil.

The errors happen because we return an Execution without setting IterationCount and Condition here:

Which prevents it from creating the files here:

Checklist:

Copy link

Hi @hbelmiro. Thanks for your PR.

I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@HumairAK
Copy link
Collaborator

HumairAK commented Feb 8, 2024

/ok-to-test

@hbelmiro
Copy link
Contributor Author

hbelmiro commented Feb 8, 2024

/retest

@hbelmiro hbelmiro changed the title WIP - Fixed "cannot save parameter" error message Fixed "cannot save parameter" error message Feb 8, 2024
@hbelmiro hbelmiro changed the title Fixed "cannot save parameter" error message fix(backend): fixes "cannot save parameter" error message. Fixes #9678 Feb 8, 2024
@hbelmiro hbelmiro marked this pull request as ready for review February 8, 2024 18:13
@hbelmiro
Copy link
Contributor Author

hbelmiro commented Feb 8, 2024

The failing test is unrelated.

AttributeError: module 'kfp_server_api' has no attribute 'ApiGetHealthzResponse'
make: *** [Makefile:18: sample-test] Error 1

@rimolive
Copy link
Member

rimolive commented Feb 8, 2024

@chensun @connor-mccarthy @zijianjoy Can we ignore this failed test and just merge?

@zijianjoy
Copy link
Collaborator

/assign @chensun

Copy link
Member

@Tomcli Tomcli left a comment

Choose a reason for hiding this comment

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

/lgtm

nit: Maybe we can have a simple unit test to make sure in all scenarios, it should always write down the outputs for conditions and iterationcount?

@hbelmiro
Copy link
Contributor Author

nit: Maybe we can have a simple unit test to make sure in all scenarios, it should always write down the outputs for conditions and iterationcount?

@Tomcli any ideas on how to do that?
I only found tests that use the KFP API to invoke tasks and check results. For this particular issue, I'd have to read the files inside the pods. Would you know any existing test that I can use as a reference?

@Tomcli
Copy link
Member

Tomcli commented Feb 19, 2024

nit: Maybe we can have a simple unit test to make sure in all scenarios, it should always write down the outputs for conditions and iterationcount?

@Tomcli any ideas on how to do that? I only found tests that use the KFP API to invoke tasks and check results. For this particular issue, I'd have to read the files inside the pods. Would you know any existing test that I can use as a reference?

I don't think there's any test for the main.go. I'm thinking if you can implement a simple check file path exist function to make sure these files are exist after the test case. For the long term implementation, we may want to move this whole logic to use Argo's execution plugin. This way we don't have to spend extra time to create new pods and write files.

The test case is just nice to have since the main.go can be implemented in a more efficient way in the future.

@Tomcli
Copy link
Member

Tomcli commented Feb 19, 2024

@hbelmiro Can you redo your commits with git signoff? Kubeflow is moving to DCO CLA so all the commits from now on needed to be signed on git.

Signed-off-by: hbelmiro <helber.belmiro@gmail.com>
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Tomcli

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

@hbelmiro: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
kubeflow-pipelines-samples-v2 8c554a8 link false /test kubeflow-pipelines-samples-v2

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hbelmiro
Copy link
Contributor Author

@Tomcli tests added. I just had to do a small refactor in main.go to make the code more testable.

Copy link
Member

@Tomcli Tomcli left a comment

Choose a reason for hiding this comment

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

thanks @hbelmiro
/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Feb 20, 2024
@google-oss-prow google-oss-prow bot merged commit 1ae0a82 into kubeflow:master Feb 20, 2024
6 of 7 checks passed
@hbelmiro hbelmiro deleted the cannot-save-parameters branch February 21, 2024 12:42
hbelmiro added a commit to hbelmiro/data-science-pipelines that referenced this pull request Feb 22, 2024
…flow#9678 (kubeflow#10459)

Signed-off-by: hbelmiro <helber.belmiro@gmail.com>
(cherry picked from commit 1ae0a82)
openshift-merge-bot bot added a commit to opendatahub-io/data-science-pipelines that referenced this pull request Feb 22, 2024
fix(backend): fixes "cannot save parameter" error message. Fixes kubeflow#9678 (kubeflow#10459)
petethegreat pushed a commit to petethegreat/pipelines that referenced this pull request Mar 27, 2024
petethegreat pushed a commit to petethegreat/pipelines that referenced this pull request Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cannot save parameter /tmp/outputs/condition
6 participants