-
Notifications
You must be signed in to change notification settings - Fork 53
Add GetDeckPath to OutputReader #268
Conversation
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Codecov Report
@@ Coverage Diff @@
## master #268 +/- ##
==========================================
+ Coverage 62.55% 63.01% +0.45%
==========================================
Files 142 142
Lines 8960 8968 +8
==========================================
+ Hits 5605 5651 +46
+ Misses 2834 2796 -38
Partials 521 521
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -107,7 +107,7 @@ func (w assembleOutputsWorker) Process(ctx context.Context, workItem workqueue.W | |||
} | |||
|
|||
ow := ioutils.NewRemoteFileOutputWriter(ctx, i.dataStore, i.outputPaths) | |||
if err = ow.Put(ctx, ioutils.NewInMemoryOutputReader(finalOutputs, nil)); err != nil { | |||
if err = ow.Put(ctx, ioutils.NewInMemoryOutputReader(finalOutputs, nil, nil)); err != 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.
We might want to think about this (maybe open a separate issue) for how to aggregate (if any) these html files in array case
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.
okay, will create a new issue for it.
Looks like you may need to add a few more unit tests for patch coverage... |
Signed-off-by: Kevin Su <pingsutw@apache.org>
This is unfortunately a breaking change that we could have been more verbose and bumped minor (even major) version. One of our plugins needs to be updated to incorporate this. What is deck? Can we pass a |
OK I found it here https://docs.flyte.org/projects/cookbook/en/latest/auto/core/flyte_basics/deck.html#sphx-glr-auto-core-flyte-basics-deck-py. Seem to be quite useful. So how we do pass in the path instead of |
@honnix what error did you run into? you can set deckPath to nil in Some plugins (like bigquery) that will not generate a deck file, we also set deckPath to nil. |
Thanks for replying @pingsutw .
Since the signature of The same as you suggested, we put nil as the deck path to fix it, and now everything is fine. |
@honnix got it, sorry. we'll be more careful when making changes to public API in the future. |
@pingsutw No worries. It was easy to catch and fix. :) |
* Add GetDeckPath to RemoteFileOutputReader Signed-off-by: Kevin Su <pingsutw@apache.org> * make generate Signed-off-by: Kevin Su <pingsutw@apache.org> * Fix tests Signed-off-by: Kevin Su <pingsutw@apache.org> * Fix tests Signed-off-by: Kevin Su <pingsutw@apache.org> * Fix tests Signed-off-by: Kevin Su <pingsutw@apache.org> * more tests Signed-off-by: Kevin Su <pingsutw@apache.org> * nit Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su pingsutw@apache.org
TL;DR
In order to cache the deck file, we need to add a new attribute
DeckPath
toInMemoryOutputReader
Related flyteorg/flytepropeller#443
Type
Are all requirements met?
Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
flyteorg/flyte#2175
Follow-up issue
NA