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

fix(frontend): reduce list run latency #10797

Merged
merged 2 commits into from
May 27, 2024
Merged

Conversation

droctothorpe
Copy link
Contributor

@droctothorpe droctothorpe commented May 7, 2024

Description of your changes:
This PR updates the list runs page to reduce the number of API calls to the experiments API by retrieving all experiments with one request instead of making a discrete request for each run. It also includes a similar update for the list recurring runs page.

The relevant unit tests have been updated accordingly.

Additional information available in this issue: #10778.

Shout out to @quinnovator and @tarat44 for collaborating on it.

Checklist:

@droctothorpe
Copy link
Contributor Author

Here's some before and after screenshots for reference.

Before the change (note the many duplicate experiment/id requests at the bottom of the waterfall):
image

After the change (just one request for all experiments):
image

@droctothorpe
Copy link
Contributor Author

Will improve the error handling tomorrow.

Copy link

@droctothorpe: you cannot LGTM your own PR.

In response to this:

/lgtm

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-sigs/prow repository.

@droctothorpe
Copy link
Contributor Author

droctothorpe commented May 8, 2024

Error handling improved. All unit tests updated and passing.

@HumairAK
Copy link
Contributor

HumairAK commented May 9, 2024

tested and has the desired affect:

fast-run-list

/lgtm
/approve

@droctothorpe
Copy link
Contributor Author

Thanks, @HumairAK!

/assign @jlyaoyuli

@HumairAK
Copy link
Contributor

cc @chensun

@rimolive
Copy link
Member

/lgtm

@droctothorpe
Copy link
Contributor Author

I think we found a bug. Please do not merge yet. Will update soon.

@google-oss-prow google-oss-prow bot removed the lgtm label May 16, 2024
Signed-off-by: droctothorpe <mythicalsunlight@gmail.com>
Co-authored-by: quinnovator <jack@jq.codes>
Co-authored-by: tarat44 <32471142+tarat44@users.noreply.github.com>
Co-authored-by: owmasch <owenmaschal0598@gmail.com>
@droctothorpe
Copy link
Contributor Author

Fixed the issue. It wasn't handling multi-user deployments properly.

@rimolive
Copy link
Member

@droctothorpe Please sign-off your commits

Signed-off-by: droctothorpe <mythicalsunlight@gmail.com>
@droctothorpe
Copy link
Contributor Author

@droctothorpe Please sign-off your commits

Done! 👍

@droctothorpe
Copy link
Contributor Author

/retest-required

@rimolive
Copy link
Member

/test kubeflow-pipeline-frontend-test

@droctothorpe
Copy link
Contributor Author

The performance improvement is especially noticeable when you select 100 rows in the dropdown in the bottom right hand corner. It takes the same amount of time to load 100 rows as it does to load 10.

@rimolive
Copy link
Member

/approve

@rimolive
Copy link
Member

cc @jlyaoyuli @chensun

@rimolive
Copy link
Member

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label May 23, 2024
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chensun, HumairAK, rimolive

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

@HumairAK
Copy link
Contributor

HumairAK commented May 27, 2024

these tests can be flaky, retrying

/test kubeflow-pipeline-frontend-test

Copy link

google-oss-prow bot commented May 27, 2024

@droctothorpe: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
kubeflow-pipeline-e2e-test cffecf8 link false /test kubeflow-pipeline-e2e-test

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-sigs/prow repository. I understand the commands that are listed here.

@HumairAK
Copy link
Contributor

/test kubeflow-pipeline-frontend-test

@google-oss-prow google-oss-prow bot merged commit 768ece4 into kubeflow:master May 27, 2024
3 of 4 checks passed
@HumairAK
Copy link
Contributor

nice, thanks @droctothorpe !

@droctothorpe droctothorpe deleted the fe branch May 27, 2024 17:29
@droctothorpe
Copy link
Contributor Author

Thanks for shepherding it through, @HumairAK! Much appreciated. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants