-
Notifications
You must be signed in to change notification settings - Fork 300
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
[BUG] Flytekit model file organization improvement #706
Conversation
Thank you for opening this pull request! 🙌
|
Omg this is a huge change |
Thanks for the PR @aeioulisa! Can you resolve the merge conflict though please? Tests won't run with that there. Thanks. |
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
Signed-off-by: Lisa <[email protected]>
* Concise: dynamic node ids and names PART 1: - Dynamic node ids currently have additional context, namely a shortened name of the dynamic task function - This causes a tremendous bloat and is completely dependent on the name of the task - This PR standardizes the name and affixes a simple `d` in the begining PART 2: Reduce node names, which are purely for decorative purposes Signed-off-by: Ketan Umare <[email protected]> * unit tests Signed-off-by: Ketan Umare <[email protected]> * fix test Signed-off-by: Ketan Umare <[email protected]> * unit tests Signed-off-by: Ketan Umare <[email protected]> Signed-off-by: Lisa <[email protected]>
Signed-off-by: Tim Bauer <[email protected]> Signed-off-by: Lisa <[email protected]>
The integration tests under https://github.com/flyteorg/flytekit/tree/master/tests/flytekit/integration/remote build an image that uses an official release of flytekit. The errors in CI are caused by this mismatch, since we're refactoring some files while the remote integration tests are still using the old module names, for example in https://github.com/flyteorg/flytekit/blob/master/tests/flytekit/integration/remote/mock_flyte_repo/workflows/basic/child_workflow.py#L2. |
@kumare3 @wild-endeavor @eapolinario Thanks for your review and comments. |
Thank you for all this work!!! There's something weird going on with integration tests on master. Let us resolve that first and we'll re-run the tests here. |
hey @aeioulisa can you give @eapolinario and me write permissions to your fork please? want to push a commit to this pr that will make the tests pass. it's a bit of a hack, might need a couple tries to get it right. thanks! |
@@ -1,5 +1,5 @@ | |||
from flytekit import LaunchPlan, task, workflow | |||
from flytekit.models.common import Labels | |||
from flytekit.models.admin.common import Labels |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aeioulisa , can you revert this change? For complicated reasons, in our integration tests we use a pinned version of flytekit, so changing this specific file will need to happen in a separate PR (that either @wild-endeavor or myself are going to handle). This should unblock all tests.
Signed-off-by: Yee Hing Tong <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #706 +/- ##
==========================================
+ Coverage 85.76% 85.80% +0.04%
==========================================
Files 358 358
Lines 29778 29793 +15
Branches 2428 2428
==========================================
+ Hits 25538 25564 +26
+ Misses 3601 3590 -11
Partials 639 639
Continue to review full report at Codecov.
|
Signed-off-by: Yee Hing Tong <[email protected]>
Signed-off-by: Yee Hing Tong <[email protected]>
Signed-off-by: Yee Hing Tong <[email protected]>
Signed-off-by: Yee Hing Tong <[email protected]>
Signed-off-by: Yee Hing Tong <[email protected]>
Signed-off-by: Yee Hing Tong <[email protected]>
Signed-off-by: Yee Hing Tong <[email protected]>
Hey @aeioulisa - just to recap, @eapolinario and I
I'm okay merging this PR as is, but there is one thing we noticed when going through the PR - a lot of the non-model code now imports the models in two different styles. For instance in component_nodes.py, there is both In some files the same module is being imported - for example test_common imports admin both as Just doing a ripgrep, there seems to be a fair number of files where this is the case, but would you be able to change these back to the Thank you all the work aligning the models though! After this is in, we'll most likely move all the models into the flyteidl repo so that they don't drift again. |
Signed-off-by: Yee Hing Tong <[email protected]>
Congrats on merging your first pull request! 🎉 |
This reverts commit b0da779. Signed-off-by: Yee Hing Tong <[email protected]>
) Signed-off-by: Yee Hing Tong <[email protected]>
Signed-off-by: Lisa <[email protected]> Signed-off-by: Yee Hing Tong <[email protected]> Signed-off-by: Robert Everson <[email protected]>
)" (flyteorg#735) Signed-off-by: Yee Hing Tong <[email protected]> Signed-off-by: Robert Everson <[email protected]>
TL;DR
Clean up the structure to align with Flyte IDL.
Type
Are all requirements met?
Tracking Issue
flyteorg/flyte#803