Skip to content

Various prebuild issues #6391

Closed
Closed
@shaal

Description

@shaal

Bug description

I've been working a lot with prebuilds, and some issues are still not resolved:

  1. 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
    image

  2. 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.

  3. (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 the prebuild that just finished, it runs all the init tasks of the prebuild all over again.
    If you close this workspace, and open a new workspace, now prebuild is trully reloaded, and only command tasks are running in the workspace.

Steps to reproduce

  1. Fork repo with long init tasks (ie. https://github.com/shaal/DrupalPod)
  2. Create a commit and push it.
  3. Watch the prebuild process (issues 2 and 3) + workspace that opens right after.
  4. Create another commit and push it.
  5. Watch the prebuild process (issues 1 and 2 and 3) + workspace that opens right after.

Workspace affected

No response

Expected behavior

  1. Prebuild should only run once per commit (or manual trigger).
  2. Workspace should never run prebuild tasks in the workspace.
  3. Prebuild should always display what commands are running while prebuild is running.

Example repository

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions