Conversation
Thank you for opening this pull request! 🙌 These tips will help get your PR across the finish line:
|
@@ -221,6 +221,18 @@ func buildTasks(tasks []*core.CompiledTask, errs errors.CompileErrors) map[commo | |||
errs.Collect(errors.NewValueCollisionError(taskID, "Id", taskID)) | |||
} | |||
|
|||
// We don't want Annotation data available at task runtime for performance. | |||
if flyteTask.Template != nil && |
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.
i'm going to be honest this is pretty gross, but don't know the most semantic way of dereferencing nested pointers here given that the whole struct is received as a big chunk from admin
249db0b
to
43a557e
Compare
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.
One more change that needs to happen in the compiler is the type check (that checks whether a given output can be passed down as a given input type).. this check relies on the serialized representation of LiteralType here and having annotations in the output but not the input (or vis versa) will fail such validation I believe...
Just list we "nil" the metadata right before that line, we should nil the Annotations (just for checking)...
flyteTask.Template.Interface != nil && | ||
flyteTask.Template.Interface.Inputs != nil && | ||
flyteTask.Template.Interface.Inputs.Variables != nil { | ||
for _, v := range flyteTask.Template.Interface.Inputs.Variables { |
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.
We should probably do the same with outputs for consistency/completeness sake....
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.
addressed with new commit
@EngHabu not sure how you can verify the tests pass with github actions alone because the flyteidl source code structure doesnt play well with go mod i just did this locally to confirm that everything passes with new flyteidl |
be5d36b
to
efb424d
Compare
You can do this instead: replace github.com/flyteorg/flyteidl => github.com/<fork>flyteidl <Sha> And this should work fine in CI |
fe0f37d
to
3e96de6
Compare
@EngHabu good to go |
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.
I don't see this addressed in the PR... please let me know if you want to discuss further
Mind deleting |
Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net>
Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net>
Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net>
Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net>
Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net>
Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net>
Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net>
Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net>
55364a1
to
f8be0a6
Compare
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.
Looks good to me!
Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net>
Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net>
Congrats on merging your first pull request! 🎉 |
* feat: strip annotation from node template Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net> * feat: strip annotation tests Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net> * fix: strip outputs + test Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net> * fix: temp flyteidl for tests Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net> * fix: tmp update flyteidl Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net> * fix: range nil ok Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net> * fix: strip annotation in type compare Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net> * fix: rm .swp Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net> * fix: new flyteidl Signed-off-by: Kenny Workman <kennyworkman@sbcglobal.net>
Strip Annotations from TaskTemplate#minor
Strips any annotation from type so runtime task structure remains the same size
Type
Are all requirements met?
Complete description
re: