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 Provider does not populate artifacts in run completion events #318

Open
jmendesky opened this issue Feb 8, 2024 · 1 comment · May be fixed by #320
Open

KFP Provider does not populate artifacts in run completion events #318

jmendesky opened this issue Feb 8, 2024 · 1 comment · May be fixed by #320
Labels
blocked bug Something isn't working

Comments

@jmendesky
Copy link
Collaborator

jmendesky commented Feb 8, 2024

Describe the bug

Run completion events emitted by the KFP provider only contain ServingModelArtifacts, not Artifacts. This means that dependent run configurations do not work using this provider.

@jmendesky jmendesky added the bug Something isn't working label Feb 8, 2024
@grahamia grahamia linked a pull request Feb 28, 2024 that will close this issue
3 tasks
@grahamia
Copy link
Contributor

grahamia commented Mar 4, 2024

On starting to develop this it became apparent that a functional regression has been made on upgrading to TFX > 1.2.0 which stops us from implementing a fix.

The "name" custom property which is relied upon to do the filtering in the metadata store in getArtifacts is now not set.

When executing the following gRPC calls:

grpcurl -d '{"type_name": "pipeline_run", "context_name": "kfp-operator-quickstart-kfp-k49nf"}' -proto ml_metadata/proto/metadata_store_service.proto -plaintext 127.0.0.1:8085 ml_metadata.MetadataStoreService.GetContextByTypeAndName
> returns the content_id to use in following call

grpcurl -d '{"context_id":"143456"}' -proto ml_metadata/proto/metadata_store_service.proto -plaintext 127.0.0.1:8085 ml_metadata.MetadataStoreService.GetArtifactsByContext

In older 1.2.0 TFX working version:

    {
      "id": "83917",
      "typeId": "33",
      "uri": ".../kfp-quickstart/Pusher/pushed_model/60170",
      "customProperties": {
        "name": {
          "stringValue": "kfp-quickstart:kfp-quickstart-kfp-877lkshjj4-6168-502898645:Pusher:pushed_model:0"
        },
        "pushed": {
          "intValue": "1"
        },
        "pushed_destination": {
          "stringValue": ".../kfp-quickstart/serving/1709567369"
        },
        "pushed_version": {
          "stringValue": "1709567369"
        },
        "tfx_version": {
          "stringValue": "1.2.0"
        }
      },
      "state": "LIVE",
      "createTimeSinceEpoch": "1709567384577",
      "lastUpdateTimeSinceEpoch": "1709567384577"
    }

In newer 1.13.0 no name property is included:

    {
      "id": "83922",
      "typeId": "33",
      "uri": ".../kfp-operator-quickstart-kfp/Pusher/pushed_model/60174",
      "customProperties": {
        "is_external": {
          "intValue": "0"
        },
        "pushed": {
          "intValue": "1"
        },
        "pushed_destination": {
          "stringValue": ".../kfp-operator-quickstart-kfp/serving/1709570854"
        },
        "pushed_version": {
          "stringValue": "1709570854"
        },
        "tfx_version": {
          "stringValue": "1.13.0"
        }
      },
      "state": "LIVE",
      "createTimeSinceEpoch": "1709570871359",
      "lastUpdateTimeSinceEpoch": "1709570871359"
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants