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

Show prebuild logs for all tasks #9994

Open
jldec opened this issue May 13, 2022 · 8 comments
Open

Show prebuild logs for all tasks #9994

jldec opened this issue May 13, 2022 · 8 comments
Labels
meta: never-stale This issue can never become stale team: webapp Issue belongs to the WebApp team user experience

Comments

@jldec
Copy link
Contributor

jldec commented May 13, 2022

The prebuild logs viewer in workspace startup, and in project prebuilds, only shows the logs for the first tasks.
This makes it difficult to debug prebuilds in workspaces with multiple tasks, e.g. multi-repo workspaces.

Since tasks can run in parallel, there need to be multiple log display areas in the page.
I quite like the way the werft UI does this.

Screenshot 2022-05-13 at 09 48 28

cc: @gtsiolis

Front logo Front conversations

@jldec jldec added user experience team: webapp Issue belongs to the WebApp team labels May 13, 2022
@cooperbenson-qz
Copy link

This would be extremely helpful since if a prebuild step fails that isn't the first task in the list, you have to debug by re-ordering the task list so that the failing task is the first task. Also if the first task is faster than other tasks, it seems like the prebuild has hung, when actually it's just working on something else that the user can't see

@stale
Copy link

stale bot commented Sep 24, 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 meta: stale This issue/PR is stale and will be closed soon label Sep 24, 2022
@gtsiolis gtsiolis added meta: never-stale This issue can never become stale and removed meta: stale This issue/PR is stale and will be closed soon labels Sep 26, 2022
@jldec jldec moved this to Scheduled in 🍎 WebApp Team Oct 12, 2022
@jldec
Copy link
Contributor Author

jldec commented Dec 23, 2022

Another user request for this [1] (internal)

@jldec jldec removed the status in 🍎 WebApp Team Dec 23, 2022
@moritonal
Copy link

moritonal commented Feb 16, 2023

Just to help anyone in the same place here. It's actually do-able already via API calls their web makes.

If you watch the calls when you open the Prebuild log page you'll see a call to https://gitpod.io/headless-log-download/0971....-....-....-....-........baa3/0.

If you swap out the 0 at the end of all that for n+1 you get the other logs.

I had to blank the GUID because the links are also not secured.

I'll try put together a PR if I find some time over the next month.

@JuJup
Copy link

JuJup commented Sep 14, 2023

Is there any chance that we'll see a solution here?
It's very tricky to debug a failed prebuild. The solution from @moritonal only works for succeeded prebuilds in my case. Failed prebuilds unfortunately don't show any output.

@akosyakov
Copy link
Member

You can reproduce a prebuild locally from the workspace with gp validate --prebuild --headless. See more info about gp validate: https://www.gitpod.io/docs/configure/workspaces#validate-your-gitpod-configuration

@JuJup
Copy link

JuJup commented Sep 14, 2023

Thanks for the fast answer. I knew the gp validate command, but due to some mysql errors that I mentioned here I couldn't test my setup this way.

However, the --headless option was new for me and did the trick for me. Thanks for that! Unfortunately, this is not documented in the CLI itself and I couldn't find anything about that option in your documentation - maybe this could be added. Would have saved me a lot of time and some headaches before 😄

EDIT: Ok, the mysql problem seems to occur there as well, but I was able to easily see my current problem in the logs :)

@akosyakov
Copy link
Member

It is strange --headless simply prevent IDEs to start. But maybe again shell scripts races are causing some weirdness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta: never-stale This issue can never become stale team: webapp Issue belongs to the WebApp team user experience
Projects
Status: No status
Development

No branches or pull requests

6 participants