-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🐛 tilt: ensure .tiltbuild/bin directory is created early enough, add tilt troubleshooting guide #9165
🐛 tilt: ensure .tiltbuild/bin directory is created early enough, add tilt troubleshooting guide #9165
Conversation
Hi @bengentil. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
I think I hit the same or a similar issue on a MacBook with Apple Silicon and Docker. In my case I first started tilt and waited until everything was up. Then I added a new provider:
I think the problem was that there is no dependency from the Docker image build to the binary build. Usually this is done in the right order because the Docker image build has to wait for the deployment of all CRDs etc. ("uncategorized"). But if this is not the case and the targets run in the wrong order the build will fail. So I think this issue might not be podman specific but basically it can always occur when a provider is deployed for the first time and the binary was not build before the Docker image build was triggered |
tl;dr. Maybe let's just add this mkdir for both cases and not only to Podman? |
@fabriziopandini There is a documentation on how to use podman: https://cluster-api.sigs.k8s.io/developer/tilt.html#using-podman @sbueringer This directory is required early in From my tests I saw that What we could do is separate the
So the directory will be always present before any other resources. This will not completely fix the issue you describe as if the Please advise, any solution is fine with me 😉 |
If I understand it correctly a local with mkdir would create the directory instantly, so this would be before local_resource and docker_build? (and then solve the issue completely) |
Yes |
I would go with that then |
Signed-off-by: Benjamin Gentil <[email protected]>
Signed-off-by: Benjamin Gentil <[email protected]>
e00a3d2
to
8eed7dd
Compare
@sbueringer I moved the mkdir to a @fabriziopandini I pushed a troubleshooting guide to explain how to fix all issues seen in #9162 |
docs looks great, thanks |
LGTM label has been added. Git tree hash: aa8b989147fbd38685b28ced28c7b6b4941f30a9
|
Tested it with a MacBook with M2 Pro + Docker, worked as expected Thank you very much! Really nice troubleshooting guide! |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbueringer The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
The
context + "/.tiltbuild/bin/"
directory is created by alocal_resource
but
local_resource
s happens afterlocal
commands, including the one to create the Dockerfile for podman.This PR ensures that the directory is present before writing the Dockerfile.
mkdir -p
is idempotent so it's not an issue to call it twice for podman.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #9162