gitpod-io / gitpod

The developer platform for on-demand cloud development environments to create software faster and more securely.
https://www.gitpod.io
GNU Affero General Public License v3.0
12.81k stars 1.23k forks source link

Tasks log output is too chatty (especially with prebuilds enabled) #4306

Open jankeromnes opened 3 years ago

jankeromnes commented 3 years ago

Bug description

When my project has a .gitpod.yml that looks like this (each command prints nothing itself):

tasks:
  - before: BEFORE
    init: INIT
    prebuild: PREBUILD

And then I open a prebuilt workspace for my project, I would expect the first Terminal to show something like this:

gitpod /workspace/project $ { BEFORE } && { INIT } && { PREBUILD }

🤙 This task ran as a workspace prebuild

However, currently, the first Terminal shows all this stuff:

 HISTFILE=/workspace/.gitpod/cmd-0 history -r; {
BEFORE
} && {
[ -r /workspace/.prebuild-log-0 ] && cat /workspace/.prebuild-log-0; [ -r /workspace/.gitpod/prebuild-log-0 ] && cat /workspace/.gitpod/prebuild-log-0; true
}
gitpod /workspace/project $  HISTFILE=/workspace/.gitpod/cmd-0 history -r; {
> BEFORE
> } && {
> [ -r /workspace/.prebuild-log-0 ] && cat /workspace/.prebuild-log-0; [ -r /workspace/.gitpod/prebuild-log-0 ] && cat /workspace/.gitpod/prebuild-log-0; true
> }
{
BEFORE
} && {
INIT
} && {
PREBUILD
}; exit
gitpod /workspace/project $ {
> BEFORE
> } && {
> INIT
> } && {
> PREBUILD
> }; exit
exit

🤙 This task ran as a workspace prebuild

Steps to reproduce

  1. Add a simple .gitpod.yml to a project, with tasks, and enable prebuilds
  2. Open a workspace for that project, and look at the first Terminal output

Expected behavior

The Terminal output should:

Example repository

https://github.com/jankeromnes/gitpod-staging-prebuilds

Anything else?

No response

apolopena commented 3 years ago

It would be really nice to add an enhancement to the gitpod.yml that allows you to shut off the task log entirely since it is pretty much for debugging only.

stale[bot] commented 3 years ago

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.

apolopena commented 3 years ago

please mark never-stale

stale[bot] commented 2 years ago

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.