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

Unify manifest save path #322

Merged
merged 5 commits into from
Jul 27, 2023
Merged

Unify manifest save path #322

merged 5 commits into from
Jul 27, 2023

Conversation

PhilippeMoussalli
Copy link
Contributor

Related to #313

The local and remote runner store the manifest in different locations:

  • For the local runner, the manifest save path is set at compile time to a fixed path that we specify {base_path}/{component_name}/manifest.json"

  • For the remote runner (kfp), the output_manifest_path is set as an output artifact type. This is needed for chaining component together. The save path in this case is save internally within the VM /tmp/outputs/output_manifest_path/data and then mapped to minio storage after the component run (which then gets mapped to a cloud storage). The mapping saves the artifact to the specified base path followed by a fixed file structure that cannot be changed and also stored. It is also stored as zip file which contains the written text file (manifest)

Example:

minio://soy-audio-379412_kfp-artifacts/artifacts/datacomp-filtering-pipeline-wvglp/2023/07/26/datacomp-filtering-pipeline-wvglp-3788902962/load-from-hub-output_manifest_path.tgz

where /soy-audio-379412_kfp-artifacts is the artifact bucket specified when deploying KFP.

This PR unifies the manifest save path for both local and remote runner. It checks whether the save_path matches the expected kubeflow path and if so, save it both to the expected kfp artifact path (needed for chaining component) and the custom path that we require for caching.

It's not the most optimal solution since we're writing the file twice but I don't see any other clear cut solution.

@ChristiaensBert I think this might also fix some issues with the data explorer.

@PhilippeMoussalli PhilippeMoussalli self-assigned this Jul 27, 2023
@PhilippeMoussalli PhilippeMoussalli added the Core Core framework label Jul 27, 2023
@PhilippeMoussalli PhilippeMoussalli linked an issue Jul 27, 2023 that may be closed by this pull request
Copy link
Collaborator

@GeorgesLorre GeorgesLorre left a comment

Choose a reason for hiding this comment

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

Its not a perfect solution but more then good enough for now.

@PhilippeMoussalli PhilippeMoussalli merged commit 72f9958 into main Jul 27, 2023
@PhilippeMoussalli PhilippeMoussalli deleted the unify-manifest-save-path branch July 27, 2023 11:36
Hakimovich99 pushed a commit that referenced this pull request Oct 16, 2023
Related to #313 


The local and remote runner store the manifest in different locations: 

* For the local runner, the manifest save path is set at compile time to
a fixed path that we specify
`{base_path}/{component_name}/manifest.json"`

* For the remote runner (kfp), the `output_manifest_path` is set as an
output artifact type. This is needed for chaining component together.
The save path in this case is save internally within the VM
`/tmp/outputs/output_manifest_path/data` and then mapped to minio
storage after the component run (which then gets mapped to a cloud
storage). The mapping saves the artifact to the specified base path
followed by a fixed file structure that cannot be changed and also
stored. It is also stored as zip file which contains the written text
file (manifest)

Example:
```
minio://soy-audio-379412_kfp-artifacts/artifacts/datacomp-filtering-pipeline-wvglp/2023/07/26/datacomp-filtering-pipeline-wvglp-3788902962/load-from-hub-output_manifest_path.tgz
```

where `/soy-audio-379412_kfp-artifacts` is the artifact bucket specified
when deploying KFP.

This PR unifies the manifest save path for both local and remote runner.
It checks whether the `save_path` matches the expected kubeflow path and
if so, save it both to the expected kfp artifact path (needed for
chaining component) and the custom path that we require for caching.

It's not the most optimal solution since we're writing the file twice
but I don't see any other clear cut solution.

@ChristiaensBert I think this might also fix some issues with the data
explorer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Core framework
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Unify manifest save path between local and remote runner
2 participants