-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Prebuild runs only when opening new workspace #9564
Comments
This sounds as if the first problem is instransparency as to why the prebuild is not triggered earlier (bug or config issue?). The second one is to find out what the actual issues, and unblock @shaal |
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. |
Please mark this issue with the label Also, did anyone find the automatic activities of |
Again, this is an important issue, Please mark this issue with the label meta: never-stale and reopen it. |
I just checked if a new workspace on Considering this, I hope the bug fixes were made over the past month did improve your experience with prebuilds in general. I guess the urgent issue from the original report does no longer exist, but it's important to verify with you. Please feel free to open new tickets for issues (even if also related to prebuilds.) Also, consider checking the Events page, which is currently a preview feature: https://gitpod.io/t/drud/ddev/events |
No @AlexTugarev it appears to me that the behavior is the same as it has been for many months. I just did as described in this issue and created https://drud-ddev-wvzajgo5czi.ws-us65.gitpod.io/ and nothing was any different. The prebuild had not been done, and it went through the whole prebuild again instead of using an existing prebuild. BTW, https://www.gitpod.io/t/drud/ddev/events is a 404 for me. Sounds like a nice future feature though, would love to know more. This issue remains consistent and a problem. Perhaps the prebuilds get done but they're never used? |
@rfay, thanks for the workspace id, I'm looking into this shortly. |
@rfay, once again, thanks for revealing this issue and showing great patience 🙏🏻 We looked into the project details and learned about a bug which leads to prebuilds being cancelled, because the project was considered inactive incorrectly. Database entries clearly show recent workspace starts days before a push event was registered, thus prebuild should have been executed as expected. The fact that I started a workspace from a prebuild yesterday, but you couldn't afterwards, can be explained by the prebuild being cancelled due to "inactivity" in between. Internally, we discussed how to unblock you now, and how to fix the UX in a way, that inactive project get reactivated automatically. For now, please try to rerun a prebuild on the default branch on https://www.gitpod.io/t/drud/ddev
Ah, that's the wrong URL (www for website), try. https://gitpod.io/t/drud/ddev/events |
The problem, you see, is that I'm not the only one using this, and it's used in many different ways. So manually running a prebuild (when???) is not really an option. The same thing happens of course with ddev gitpod launcher as well. But it's run with different arguments by random users, requiring a different prebuild.
There is a set of different interacting problems here,
It's not me that you need to unblock, it's all DDEV users that use gitpod this way, and Drupalpod users. I don't think there's a manual-user-should-go-fix-it path to sort this out, gitpod just needs to work as advertised. BTW https://gitpod.io/t/drud/ddev/events is also 404. |
Absolutely. We understood the issue you're seeing and can reproduce. There is an inactivity detection for project which effectively disables prebuilds for your project incorrectly, see #12952. In addition to fixing the behavior behind the scene, we're going to implement a warning alert from #9232 with a helpful action to resume prebuilds after longer time of inactivity.
That was a shot in the dark, as I'm not in your team. Looking at the description above, your team slug is not |
The slug is in fact drud, and in this case the project drud/ddev. If you describe how to navigate to the events URL instead of the link I'll find it and tell you what it is. |
@rfay yeah, these URLs do not work. |
@AlexTugarev @geropl we're seeing a similar issue in this repo - https://github.com/drud/ddev-gitpod-launcher I attached 3 screenshots:
It is not clear why these prebuilds stopped working. Can you please help? |
@jankeromnes Given our recent changes [1]: Is there a combination of config that you could recommend shaal to use to fix this problem? 🤔 |
Thanks for the ping @geropl! Hi @shaal -- long time! 😁 So, to understand the problem at hand, I'm ignoring the issue title and all the previous comments before #9564 (comment) (but please let me know if I'm missing something).
Aha, I see that your prebuilds are getting cancelled. There are two recent changes that could help figure out why:
Oh, exciting, that must have happened while I was on holidays -- first time I'm hearing about this feature. 😅 👀
Indeed, sorry that we accidentally removed the explicit cancellation reason from this message. It's back now, as mentioned above -- at the end of the message you've posted. |
Bug description
ddev
is set to have automatic prebuilds.https://gitpod.io/t/ddev/ddev shows that
master
prebuild ran successfuly.Whenever I open a new workspace for ddev https://gitpod.io/#https://github.com/drud/ddev - I see the prebuild steps running in the terminal, instead of pre-loading a prebuild and then in terminal display the message "x minutes saved by prebuild".
Steps to reproduce
Workspace affected
No response
Expected behavior
If a prebuild cannot be loaded, prebuild should run in the background so future workspaces can load the prebuild.
Example repository
No response
Anything else?
I am sure that if I push any code changes, or if I manually trigger a prebuild using the URL - a new prebuild process will run, and it will "fix" the current issue.
This issue is trying to catch a faulty prebuild and automatically run it again, or at least allow the UI to re-run prebuild, without committing new code.
cc: @jankeromnes, @rfay
The text was updated successfully, but these errors were encountered: