Description
Bug description
I've been working a lot with prebuilds, and some issues are still not resolved:
-
When creating a PR and running a prebuild for the FIRST time, you can go to the Gitpod's URL of the project (ie: https://gitpod.io/#https://github.com/drud/ddev) and you can see all the commands that the prebuild is running.
But when making new commits after that, and you'll only see "Connecting to workspace logs...".
A prebuild IS RUNNING in the background, but there's no visual representation of what's happening, and when prebuild is done the workspace is reloaded on that browser tab.
Related: Project Configuration - Run Prebuild always shows "Connecting to workspace Logs..." #6305
-
I set a special webhook to send me an email when a prebuild is running (https://github.com/shaal/DrupalPod/blob/ready-made-envs/.gitpod.yml#L8), every time a prebuild is running, I am getting 2 emails, so for some reason the prebuild is called and running twice, but I don't know why.
-
(Noticeable on projects with
init
start-tasks that take a long time, and perhaps related to the previous issue of prebuild running twice) -
After manually initiating a prebuild (or pushing a commit), if you go to the Gitpod URL of the project, you will see the Prebuild page (which is expected After Prebuild finish running), and the Gitpod workspace opens, instead the new workspace using theprebuild
that just finished, it runs all theinit
tasks of the prebuild all over again.
If you close this workspace, and open a new workspace, now prebuild is trully reloaded, and onlycommand
tasks are running in the workspace.
Steps to reproduce
- Fork repo with long
init
tasks (ie. https://github.com/shaal/DrupalPod) - Create a commit and push it.
- Watch the prebuild process (issues 2 and 3) + workspace that opens right after.
- Create another commit and push it.
- Watch the prebuild process (issues 1 and 2 and 3) + workspace that opens right after.
Workspace affected
No response
Expected behavior
- Prebuild should only run once per commit (or manual trigger).
- Workspace should never run prebuild tasks in the workspace.
- Prebuild should always display what commands are running while prebuild is running.
Example repository
No response
Anything else?
No response
Metadata
Metadata
Assignees
Type
Projects
Status