-
Notifications
You must be signed in to change notification settings - Fork 0
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
my template seems slower with the Terraform provider, difficult to troubleshoot #39
Comments
Switched to |
@johnstcn fyi for Monday |
I was able to reproduce this. It looks like there's a race condition between the workspace build completing and Envbuilder sending logs to Coder:
|
@bpmct I created a new template version using the updated Envbuilder image and this has worked around the issue for now. https://dev.coder.com/templates/coder/data-takehome/versions/lucid_pascal7 I haven't promoted this to be the default version yet. |
Thanks Cian, trying it now. |
Gave it a shot and logs work! I'm noticing it's still uniquely building the image each time despite it "pushing the image" at the end #2: 🏗️ Built image! [1m20.859283746s]
#3: 🏗️ Pushing image...
#3: Pushing image to us-central1-docker.pkg.dev/coder-dogfood-v2/envbuilder-cache/coder-dogfood
#3: Pushed us-central1-docker.pkg.dev/coder-dogfood-v2/envbuilder-cache/coder-dogfood@sha256:62f16c541a7e71b110bf914e4c0a205e5142e52d36e181f5d8a199aeadf032ae
#3: 🏗️ Pushed image! [2.088515236s] Any idea why it's not finding the registry image? |
I added some diagnostics in the provider (v0.0.3) and I can now see that it's due to a bug relating to how we compile the Dockerfile from a devcontainer.json:
While this will need to be fixed in envbuilder, this doesn't affect envbuilder itself because it runs as root inside a container. |
One other thing I should point out here is that devcontainer features are currently not cached. |
So if I have devcontainer features, it'll do a fresh build every time? |
Currently yes, although not 100% fresh as it will still have some cached layers from the repo cache to draw upon. |
Closing this out for now. |
Hey folks, let me know if I'm doing something wrong here. I just started using the provider and have to say, the UX is awesome.
However, I added the envbuilder provider + cached image support to this template and workspaces are taking ~1 additional minute to start. The
envbuilder_cached_image
build step is relatively snappy (26s) , but I notice that the workspace agent doesn't connect for around 80 seconds or so. During that time, there are no logs in the dashboard.I'm not able to see the workspace logs in grafana.dev.coder.com or inspect the registry to see if it is in fact being pushed versus built. Any ideas?
With cached image
https://www.loom.com/share/2e9e3b1d90104ef8b1e6545422220eae
Without cached image
https://www.loom.com/share/f8419923b75b42dcbde8cadbb1772ef1
Interestingly, there are no envbuilder logs in the Dashboard for either
The text was updated successfully, but these errors were encountered: