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

chore: record artifact state & render state on resource details. Fixes #5789 #5970

Merged
merged 4 commits into from
Jul 9, 2021

Conversation

Bobgy
Copy link
Contributor

@Bobgy Bobgy commented Jul 3, 2021

Description of your changes:
Fixes #5789
image

Checklist:

Comment on lines 75 to 83
{this.props.typeName}
{(() => {
const stateText = getResourceStateText(this.props);
if (stateText) {
return ` (${stateText})`;
}
return '';
})()}
</h1>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

because we didn't log state before, if we found state=Unknown, it's better not to render it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The text change from Type: <type-name> to <type-name> (<state>) is following principle that, when text content can tell what it is, UI would feel more concise when the Type: and State: prefix is omitted.

For example, when we see kfp.ContainerExecution, we know it is a type of execution, so it's unnecessary to add prefix Type: now.

Copy link
Collaborator

@zijianjoy zijianjoy left a comment

Choose a reason for hiding this comment

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

/lgtm

Thank you Yuan for exposing the state info!

frontend/src/components/ResourceInfo.tsx Outdated Show resolved Hide resolved
@google-oss-robot
Copy link

New changes are detected. LGTM label has been removed.

@Bobgy
Copy link
Contributor Author

Bobgy commented Jul 9, 2021

/approve

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Bobgy

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

@Bobgy
Copy link
Contributor Author

Bobgy commented Jul 9, 2021

/retest

1 similar comment
@Bobgy
Copy link
Contributor Author

Bobgy commented Jul 9, 2021

/retest

@Bobgy
Copy link
Contributor Author

Bobgy commented Jul 9, 2021

Got error:

F0709 05:29:17.078200 1 main.go:56] Failed to execute component: failed to download input artifact "input_dir" from remote storage URI "gs://kfp-ci/4ca1dd2d702e106386af42120c73df46ed8c0cc5/v2-sample-test/data/samples_config-loop-item/dir-pipeline-v2/dir-pipeline-v2-hd2tw/produce-dir-with-files-v2-python-op/output_dir": failed to list objects in remote storage "dir-pipeline-v2/dir-pipeline-v2-hd2tw/produce-dir-with-files-v2-python-op/output_dir": blob (code=Unknown): Get "

in output a directory sample
https://4e18c21c9d33d20f-dot-datalab-vm-staging.googleusercontent.com/#/runs/details/2eb0df4d-74c8-4a01-b466-23718e38ed23

@Bobgy
Copy link
Contributor Author

Bobgy commented Jul 9, 2021

/retest

@Bobgy
Copy link
Contributor Author

Bobgy commented Jul 9, 2021

/retest

@google-oss-robot
Copy link

New changes are detected. LGTM label has been removed.

@Bobgy Bobgy added the lgtm label Jul 9, 2021
@google-oss-robot google-oss-robot merged commit 40491d2 into kubeflow:master Jul 9, 2021
@Bobgy Bobgy deleted the mlmd-state branch July 9, 2021 07:35
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.

[v2compat] log MLMD artifact state during execution
3 participants