Skip to content

Better input artifacts typing #3099

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

Merged
merged 67 commits into from
Nov 7, 2024

Conversation

avishniakov
Copy link
Contributor

@avishniakov avishniakov commented Oct 18, 2024

Describe changes

I implemented helpers to define what is the actual input artifact type in a Step. It can be:

  • STEP_OUTPUT for regular case
  • EXTERNAL for ExternalArtifact case
  • MANUAL for load_artifact or Client().get_artifact_version inside a step
  • LAZY_LOADED for lazy load cases

StepRunResponse is now equipped with input_types for DAG.

I also extended Client().get_artifact_version to link the artifact back to the step as input of MANUAL type.

Pre-requisites

Please ensure you have done the following:

  • I have read the CONTRIBUTING.md document.
  • If my change requires a change to docs, I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • I have based my new branch on develop and the open PR is targeting develop. If your branch wasn't based on develop read Contribution guide on rebasing branch to develop.
  • If my changes require changes to the dashboard, these changes are communicated/requested.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Other (add details above)

avishniakov and others added 25 commits October 10, 2024 17:21
…to feature/PRD-668-better-input-artifacts-typing
@avishniakov avishniakov requested a review from schustmi October 18, 2024 09:49
@avishniakov avishniakov changed the base branch from main to develop October 18, 2024 09:49
@github-actions github-actions bot added internal To filter out internal PRs and issues enhancement New feature or request labels Oct 18, 2024
@avishniakov avishniakov changed the base branch from develop to feature/PRD-663-multiple-output-versions-for-a-step October 18, 2024 09:49
schustmi and others added 12 commits October 30, 2024 14:04
…to feature/PRD-668-better-input-artifacts-typing
This commit refactors the artifact saving logic in the `cacheable_multiple_versioned_producer` function. It introduces two new parameters, `is_model_artifact` and `is_deployment_artifact`, which allow specifying the type of the saved artifact. This change improves the flexibility and customization of the function.

Related to #PRD-663
…to feature/PRD-668-better-input-artifacts-typing
@avishniakov avishniakov requested a review from schustmi November 6, 2024 09:38
Base automatically changed from feature/PRD-663-multiple-output-versions-for-a-step to develop November 7, 2024 06:36
@avishniakov avishniakov merged commit a37af63 into develop Nov 7, 2024
67 of 68 checks passed
@avishniakov avishniakov deleted the feature/PRD-668-better-input-artifacts-typing branch November 7, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request internal To filter out internal PRs and issues run-slow-ci
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants