-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Generate clickable artifact url for s3 URI #3531
Generate clickable artifact url for s3 URI #3531
Conversation
Is there a standard S3 URI format that includes endpoint? It seems to be lost when translating the whole Argo S3 artifact structure to a single URI. |
What is we always use |
Despite the question from @Ark-kun, this looks good to me |
@Bobgy: The
Use In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I think we might need to discuss this. Not sure about metadata, but for frontend, the uri format has always been
No endpoint info encoded inside, as we assume the endpoints corresponds to the respective storage medium configured in the frontend node server. Currently, the uri is just a visual text, because the actual link is an API call with the query strings, storage, bucket, and key. |
Is this enough to refer to a specific object? I thought that with Amazon S3, every bucket lives in a specific regions and there are region-specific endpoints (e.g. Is this correct? |
I think that would be perfect if minio client supports this. Since user will fill endpoint information anyway, we don't need extra change to support different backends. Do you have any reference on this path support?
Yes,
I think yes. S3 bucket is region specific but bucket names are globally unique. |
@Bobgy Seems test is kind of flaky, it complains version issues. Do you know the problem? Is it because some dependencies don't pin to a specific version? Any thing I can do to resolve them? I see similar issues in other PR as well |
Python's "ERROR" messages about versions are not really errors. The are some problems with presubmits in the last couple of days not related to this PR. |
Here is the full structure of Argo's S3 artifact locations.
We need to make sure we're not losing any important information when converting to URI. Can we have a situation where different runs have artifacts in different AWS regions (or even in GCS)? Do we need to preserve that information? |
We specify the region in config-map |
Does this mean that if the configmap is ever changed, all previously created artifacts become broken? |
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.
lgtm
/retest |
12c1360
to
8a4c073
Compare
@Jeffwan Can you fix the unit tests? |
8a4c073
to
ee7a47e
Compare
Looks like it's a formatter issue. I use prettier@1.19.1 which is the same version as CI to format the code. |
9a1708e
to
edaa980
Compare
@Bobgy I fix the issue in this PR and please have another check |
Please check out #3725 |
Signed-off-by: Jiaxin Shan <seedjeffwan@gmail.com>
edaa980
to
c952943
Compare
/lgtm |
I didn't take much attention on the data discussion, if you already reached a conclusion. I have no problem with this PR. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Bobgy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
All tests now pass. |
* Generate clickable artifact url for s3 URI Signed-off-by: Jiaxin Shan <seedjeffwan@gmail.com> * Format code using prettier@1.19.1 * Fix unit test failure * Use encoded string in bucket url
* Generate clickable artifact url for s3 URI Signed-off-by: Jiaxin Shan <seedjeffwan@gmail.com> * Format code using prettier@1.19.1 * Fix unit test failure * Use encoded string in bucket url
This is a follow up PR of #3530, resolves some issues of #3405
We need to have this PR to generate clickable artifact url for s3 URI.
It's working now. Click link will automatically download file. (we may consider to redirect user to AWS S3 console later, this is good enough now.)
Signed-off-by: Jiaxin Shan seedjeffwan@gmail.com
/cc @eterna2 @Ark-kun @Bobgy @gautamkmr