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(sdk): visualizations and metrics do not work with data_passing_methods #6882

Merged
merged 8 commits into from
Nov 16, 2021

Conversation

juliusvonkohout
Copy link
Member

Description of your changes:

I made changes such that mlpipeline-ui-metadata and mlpipeline-metrics are always kept as artifacts, such that the webinterface can access and display them even if we use a kubernetes volume as data passing method.

@Bobgy we could also extend this to allow the user to specify additional outputs that should also be kept as artifacts.

....
pipeline_configuration = kfp.dsl.PipelineConf()
from kubernetes.client.models import V1Volume, V1PersistentVolumeClaimVolumeSource
from kfp.dsl import data_passing_methods
pipeline_configuration.data_passing_method = data_passing_methods.KubernetesVolume(
    volume=V1Volume(
        name='artefacts',
        persistent_volume_claim=V1PersistentVolumeClaimVolumeSource("{{workflow.name}}-%s" % 'artefacts'),
    ),
    path_prefix='artefacts/'
)

Checklist:

@google-oss-prow
Copy link

Hi @juliusvonkohout. 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.

@google-oss-prow
Copy link

@juliusvonkohout: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/ok-to-test

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.

@juliusvonkohout
Copy link
Member Author

@juliusvonkohout: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

@Bobgy is it possible for me to become a trusted user?

@juliusvonkohout
Copy link
Member Author

@chensun @ji-yaqi can i get an /ok-to-test

@chensun
Copy link
Member

chensun commented Nov 11, 2021

/ok-to-test

@chensun chensun changed the title fix(backend): visualizations and metrics do not work with data_passing_methods fix(sdk): visualizations and metrics do not work with data_passing_methods Nov 11, 2021
@juliusvonkohout
Copy link
Member Author

Ok, I just need to fix the expected test results pipelines/sdk/python/tests/compiler/testdata/artifact_passing_using_volume.yaml

@Bobgy
Copy link
Contributor

Bobgy commented Nov 15, 2021

@juliusvonkohout you can request to join kubeflow org in https://github.com/kubeflow/internal-acls

@google-oss-prow google-oss-prow bot added size/L and removed size/XS labels Nov 15, 2021
@juliusvonkohout
Copy link
Member Author

/retest

@juliusvonkohout
Copy link
Member Author

  1. I have updated my changes to pass all tests locally (it was just an empty artifacts list in outputs that failed the test)
  2. I have extended the unittest to make sure that visualizations and metrics are tested.

So from my side is it ready to merge @chensun

grafik
run

@chensun
Copy link
Member

chensun commented Nov 15, 2021

/lgtm
/approve

Thanks!

@chensun chensun added cherrypick-approved area OWNER approves to cherry pick this PR to current active release branch and removed lgtm labels Nov 15, 2021
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chensun

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

@chensun chensun added the lgtm label Nov 16, 2021
@google-oss-prow google-oss-prow bot merged commit b482ba8 into kubeflow:master Nov 16, 2021
chensun pushed a commit to chensun/pipelines that referenced this pull request Dec 7, 2021
…thods (kubeflow#6882)

* Update _data_passing_using_volume.py

* Update _data_passing_using_volume.py

* Update _data_passing_using_volume.py

* Update _data_passing_using_volume.py

* Update _data_passing_using_volume.py

* Update artifact_passing_using_volume.yaml

* Update artifact_passing_using_volume.py

* Update _data_passing_using_volume.py
@chensun chensun added the cherrypicked cherry picked to release branch `release-x.y` label Dec 7, 2021
google-oss-prow bot pushed a commit that referenced this pull request Dec 7, 2021
* Update _data_passing_using_volume.py

* Update _data_passing_using_volume.py

* Update _data_passing_using_volume.py

* Update _data_passing_using_volume.py

* Update _data_passing_using_volume.py

* Update artifact_passing_using_volume.yaml

* Update artifact_passing_using_volume.py

* Update _data_passing_using_volume.py

Co-authored-by: juliusvonkohout <45896133+juliusvonkohout@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved cherrypick-approved area OWNER approves to cherry pick this PR to current active release branch cherrypicked cherry picked to release branch `release-x.y` cla: yes lgtm ok-to-test size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants