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

[KFP] Fix Pipeline Formatting and Project Deletion not Deleting KFP Experiments #5602

Merged
merged 26 commits into from
May 21, 2024

Conversation

quaark
Copy link
Member

@quaark quaark commented May 21, 2024

https://iguazio.atlassian.net/browse/ML-6486

The FlexibleMapper philosophy was to have a dictionary representation with only the class members being in the representation. This was in order to mask internal kfp data structure implementation and not rely on it.
However, this caused 2 problems (problem 2 is the result of problem 1):

  1. An inconsistency in the definition of to_dict methods in mlrun, where our usual expectation is that to_dict is a full serializer that can then be deserialized with a from_dict method.
  2. Due to the above expectation, when requesting pipelines with format full, we used to_dict and got a heavily sanitized version of the pipeline. (Therefore the delete project could not infer the experiment id to delete from KFP).

After some consideration and consulting with @laurybueno and @liranbg, we decided to align the FlexibleMapper's to_dict method to function like all other to_dict methods in mlrun, but will also contain the class properties which will take precedence and override any internal data if a key conflict exists.

In addition, moved the experiment_id extraction to the PipelineRun class in 1.8 adapters as that is a kfp 1.8 specific implementation.

Lastly, aligned all recent changes in 1.8 adapters to 2.0 adapter stubs.

quaark and others added 24 commits April 3, 2024 11:05
@quaark quaark merged commit 3de848d into mlrun:development May 21, 2024
11 checks passed
rokatyy pushed a commit to rokatyy/mlrun that referenced this pull request May 28, 2024
…xperiments (mlrun#5602)

* fix pipeline formatting

* nicer

* nicer

* fix for no resource references

---------

Co-authored-by: quaark <a.melnick@icloud.com>
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.

None yet

2 participants