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

[Artifacts] Parse producer URI when retaining producer #5717

Merged
merged 3 commits into from
Jun 5, 2024

Conversation

TomerShor
Copy link
Member

When an artifact is logged in a run, its producer doesn't necessarily contain a project and tag properties, but it does contain a uri (as in the context object).

When importing artifacts that were created in a run, we retain the run as the artifact producer.
However, the URI was ignored and we only looked for a project and a tag, causing the retained producer to not have a UID.

In this PR we first look for the project and tag on the producer itself, and if not found we try to parse its URI.

Resolves https://iguazio.atlassian.net/browse/ML-4134

Copy link
Member

@liranbg liranbg left a comment

Choose a reason for hiding this comment

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

minor syntax suggestions

mlrun/artifacts/manager.py Outdated Show resolved Hide resolved
mlrun/artifacts/manager.py Outdated Show resolved Hide resolved
@TomerShor TomerShor requested a review from alonmr June 5, 2024 06:59
mlrun/artifacts/manager.py Outdated Show resolved Hide resolved
Copy link
Member

@alonmr alonmr left a comment

Choose a reason for hiding this comment

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

please also change in server.api.crud.runs.Runs.get_run to use the new utility

@liranbg liranbg merged commit 8c0a932 into mlrun:development Jun 5, 2024
11 checks passed
@TomerShor TomerShor deleted the bugfix/ML-4134-round-z branch June 5, 2024 12:16
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

3 participants