Skip to content
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

feat(backend): stop compressing artifacts #1640

Closed

Conversation

Ark-kun
Copy link
Contributor

@Ark-kun Ark-kun commented Jul 18, 2019

DIsabled compressing artifacts to .tar.gz archives.
Fixes #1383


This change is Reviewable

DIsabled compressing artifacts to .tar.gz archives.
Fixes kubeflow#1383
@Ark-kun
Copy link
Contributor Author

Ark-kun commented Jul 25, 2019

@rileyjbauer Can you please check that UI and visualizations work fine when the artifacts are not compressed?

@Ark-kun
Copy link
Contributor Author

Ark-kun commented Aug 13, 2019

@rileyjbauer I find it surprising that e2e frontend tests do not fail change. Can you please take a look?
@gaoning777 I find it surprising that sample tests do not fail after this change. Can you please take a look?

@Ark-kun Ark-kun requested a review from numerology August 13, 2019 23:08
@Ark-kun
Copy link
Contributor Author

Ark-kun commented Sep 27, 2019

/retest

@Ark-kun
Copy link
Contributor Author

Ark-kun commented Sep 27, 2019

I've changed the PR to only stop compressing the non-metadata artifacts. So this should be safe.

@Bobgy
Copy link
Contributor

Bobgy commented Nov 25, 2019

/retest

@Bobgy
Copy link
Contributor

Bobgy commented Nov 25, 2019

After you stopped compressing those artifacts, is there any code that could break?

I'm not very clear on where these artifacts are used.

@Ark-kun
Copy link
Contributor Author

Ark-kun commented Nov 25, 2019

After you stopped compressing those artifacts, is there any code that could break?

I'm not very clear on where these artifacts are used.

The UX that shows the artifacts can break with high probability.

@IronPan WDYT? How does the backend API handler compressed artifact blobs? What about directories?

@StefanoFioravanzo
Copy link
Member

Any update on this PR? It would be very useful!

@Ark-kun
Copy link
Contributor Author

Ark-kun commented Feb 20, 2020

I think one problem right now is that some APIs like ReadArtifact probably only handle single files and will fail with directories.

@stale
Copy link

stale bot commented Jun 24, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the lifecycle/stale The issue / pull request is stale, any activities remove this label. label Jun 24, 2020
@Bobgy
Copy link
Contributor

Bobgy commented Jun 24, 2020

This is sth I'd want to try sooner or later

@stale stale bot removed the lifecycle/stale The issue / pull request is stale, any activities remove this label. label Jun 24, 2020
@stale
Copy link

stale bot commented Sep 22, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the lifecycle/stale The issue / pull request is stale, any activities remove this label. label Sep 22, 2020
@stale
Copy link

stale bot commented Sep 30, 2020

This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it.

@stale stale bot closed this Sep 30, 2020
@Ark-kun Ark-kun reopened this Oct 30, 2020
@stale stale bot removed the lifecycle/stale The issue / pull request is stale, any activities remove this label. label Oct 30, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ark-kun

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Bobgy
Copy link
Contributor

Bobgy commented Nov 2, 2020

/retest

Copy link
Contributor

@Bobgy Bobgy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a better onboarding experience, also UX should already support this thanks to @eterna2's previous improvements.

I'd still want to make sure archive is an option, because text files can have a large compress rate, so it saves network IO. Can we add this as an option to API server config?

@@ -218,6 +218,8 @@ func (r *ResourceManager) CreateRun(apiRun *api.Run) (*model.RunDetail, error) {
for artIdx, artifact := range template.Outputs.Artifacts {
if artifact.Name == "mlpipeline-ui-metadata" || artifact.Name == "mlpipeline-metrics" {
workflow.Workflow.Spec.Templates[templateIdx].Outputs.Artifacts[artIdx].Optional = true
} else {
artifact.Archive = &workflowapi.ArchiveStrategy{None: &workflowapi.NoneStrategy{}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: why do we add this in an else clause here?
I think we can add it to all.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another issue is that, there should be some similar code in CreateJob method, you should add this part there too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: why do we add this in an else clause here?

I'm not sure that Frontend and Backend Metrics are prepared for uncompressed artifacts.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Frontend server should support both compressed and uncompressed artifacts.

export async function getObjectStream({

@Bobgy Bobgy changed the title SDK - Stop compressing the artifacts feat(backend): stop compressing artifacts Nov 2, 2020
@stale
Copy link

stale bot commented Feb 8, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the lifecycle/stale The issue / pull request is stale, any activities remove this label. label Feb 8, 2021
@chensun chensun force-pushed the master branch 2 times, most recently from 7542f0e to 44d22a6 Compare February 12, 2021 09:23
@stale stale bot removed the lifecycle/stale The issue / pull request is stale, any activities remove this label. label May 28, 2021
@eterna2
Copy link
Contributor

eterna2 commented May 29, 2021

This PR should also resolve #5558

@Bobgy
Copy link
Contributor

Bobgy commented May 29, 2021

@eterna2 in v2 compatible mode, artifacts are already not compressed by default

@eterna2
Copy link
Contributor

eterna2 commented Jun 1, 2021

Nice! I was reading thru the codes for v2. Am very excited with all the new stuff coming up!

@stale
Copy link

stale bot commented Mar 2, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the lifecycle/stale The issue / pull request is stale, any activities remove this label. label Mar 2, 2022
magdalenakuhn17 pushed a commit to magdalenakuhn17/pipelines that referenced this pull request Oct 22, 2023
Checks whether env var awsAnonymousCredential true
to use S3 resource config anonymous
addresses issue kubeflow#1581

Signed-off-by: Malini Bhandaru <mbhandaru@vmware.com>
@rimolive
Copy link
Member

Closing this PR. No activity for more than a year.

/close

@google-oss-prow google-oss-prow bot closed this Mar 24, 2024
Copy link

@rimolive: Closed this PR.

In response to this:

Closing this PR. No activity for more than a year.

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lifecycle/stale The issue / pull request is stale, any activities remove this label. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option for disabling using .tar.gz when uploading artifact
9 participants