-
Notifications
You must be signed in to change notification settings - Fork 63
Add deckURI to NodeExecutionData #413
Conversation
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #413 +/- ##
==========================================
+ Coverage 61.33% 61.37% +0.03%
==========================================
Files 156 156
Lines 11095 11142 +47
==========================================
+ Hits 6805 6838 +33
- Misses 3586 3595 +9
- Partials 704 709 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
cc @EngHabu @katrogan one question, I'm able to get a signed URL when using flytekit, but it doesn't work when I use curl. Anything I missed in this PR? (base) ➜ ~ curl http://34.201.131.50:30081//api/v1/dataproxy/artifact_urn
Not Found
(base) ➜ ~ curl http://34.201.131.50:30081//api/v1/dataproxy/artifact_urn\?native_url\=deck.html
Not Found |
@pingsutw why are there two slashes before api in the path? |
same error if I use |
Try this: curl http://34.201.131.50:30081//api/v1/dataproxy/artifact_urn?native_url=s3://bucket/deck.html |
Signed-off-by: Kevin Su <[email protected]>
Fixed it, we should register the data proxy handler in the HTTP server. https://github.com/flyteorg/flyteadmin/pull/413/files#diff-4ce88803abf59984cddcf6ab336c97b3231b0cb87f90e07f2f42e622e330f325R197-R201 |
|
||
return &service.CreateDownloadLocationResponse{ | ||
SignedUrl: resp.URL.String(), | ||
ExpiresAt: timestamppb.New(time.Now().Add(req.ExpiresIn.AsDuration())), |
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.
Is this valid that we can accurately say here . The library sets this time for signed url if its google
https://github.com/flyteorg/stow/blob/9c3f5f9ea24966206f0b2edc608da6ca803420e3/google/container.go#L55
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.
it's not accurate, but I think it's okay for now because we can't get the expiry time from SignedURLResponse
I can add it in a separate PR.
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
* Add deckURI to NodeExecutionData Signed-off-by: Kevin Su <[email protected]> * Use new storage api in stdlib Signed-off-by: Kevin Su <[email protected]> * Fixed tests Signed-off-by: Kevin Su <[email protected]> * nit Signed-off-by: Kevin Su <[email protected]> * one more test Signed-off-by: Kevin Su <[email protected]> * Add deck_uri in NodeExecutionClosure Signed-off-by: Kevin Su <[email protected]> * Fixed tests Signed-off-by: Kevin Su <[email protected]> * update tests Signed-off-by: Kevin Su <[email protected]> * nit Signed-off-by: Kevin Su <[email protected]> * lint fix Signed-off-by: Kevin Su <[email protected]> * Updated idl Signed-off-by: Kevin Su <[email protected]> * nit Signed-off-by: Kevin Su <[email protected]> * nit Signed-off-by: Kevin Su <[email protected]> * Add http endpoint Signed-off-by: Kevin Su <[email protected]> * few updates Signed-off-by: Kevin Su <[email protected]> * nit Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su [email protected]
TL;DR
Add deckURI to NodeExecutionData, so that Flyteconsole can retrieve the pre-signed deck URI and read the file.
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