-
Notifications
You must be signed in to change notification settings - Fork 274
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 profile screen #1707
Fix profile screen #1707
Conversation
9b04c51
to
05655a9
Compare
I think @kaankabalak was also working on this :S |
Yes @dvaldivia, there was a problem with the ZIP file being corrupted for the Stop Profiling endpoint, so I sent my work over to @Alevsk and he fixed the corruption issue and sent the PR 👍 |
@Alevsk, when I download the ZIP file when the type is selected as Please refer to the video for further detail: Screen.Recording.2022-03-11.at.5.26.22.PM.movAnd this is the content of the ZIP file when type is selected as |
I think this in a operating system behavior, we are streaming directly what minio is returning to us, I'll check on my Linux box tonight |
@kaankabalak so the type can be one are more or all. so we can have a ui similar to trace CurrentSuggested types to be like (multi select)@oscarocastellanos @dvaldivia please provide your feedback. |
@prakashsvmx @dvaldivia This is a good option, I think this is the best thing we can do. |
Yes, I also think that this is a good idea, I'll work on this 👍 |
We also need to make this stateful at UI level, so that the user can navigate away from the profile screen and come back and still get the download, right now if you navigate apart and come back, it shows you to start the profiling again |
Hi @dvaldivia, as far as I can see, there is no API at the moment to check if Profiling is currently going on. We only seem to have the |
@kaankabalak to keep it stateful we would need to start a websocket and keep it open in the back, this can tell the frontend we are running a profile at the moment, alternatively we can add the status API on MinIO, which I think makes sense since starting a profile and forgetting about it could degrade service cc @harshavardhana |
b6fb3e2
to
0a39289
Compare
d752817
to
d6a80a4
Compare
Hi @prakashsvmx, I have just applied this change. The screen now looks as follows: However, for the Therefore, a combination of arguments like what @prakashsvmx has specified is not possible (for example, |
Let's remove that limitation, to do that on After making that change you need to run |
Thanks @Alevsk, it works now 👍 |
@kaankabalak is the diagnostics expected to complete in certain minutes/seconds. ?
|
No @prakashsvmx, we don't have any kind of restriction. This only happens on GitHub Actions and I am still investigating this. We saw that the test failed on headless mode for Node version 17, both locally and on GitHub Actions; so we reverted back to Node version 16, yet the failure still happens randomly. |
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 will be adding the WebSockets functionality on a separate PR 👍
- Added support to download all profile tests - profile.zip file was corrupted after download - Add suspension warning - Add Checkbox support - Support for running multiple profiling types at the same time - fix profiling test Signed-off-by: Lenin Alevski <alevsk.8772@gmail.com>
Profiling endpoint fixes
Signed-off-by: Lenin Alevski alevsk.8772@gmail.com