Repository navigation
Add test for docker image provision. - #3761
Conversation
There was a problem hiding this comment.
@aluzzardi this is a case where the catch-22 we talked about before could happen: if we ever change this API then it won't work since this test case by default runs against a release engine.
I considered setting up what we talked about in terms of actually pushing the dev dagger engine to a local registry, but I'm not sure if it's worth it yet since we have open PRs changing how we build+test with that anyways, so I left it out of this PR for now. Let me know if you think it's worth an immediate fix though.
There was a problem hiding this comment.
I considered setting up what we talked about in terms of actually pushing the dev dagger engine to a local registry, but I'm not sure if it's worth it yet since we have open PRs changing how we build+test with that anyways, so I left it out of this PR for now. Let me know if you think it's worth an immediate fix though.
Yeah, sounds good, good for now
e7b7bc8 to
e8c699f
Compare
There was a problem hiding this comment.
OMG good catch haha, it's cause I used the library they have for creating a random id (I think out of muscle memory from when I worked on that codebase more).
Will fix, can just use stdlib to get a random id.
There was a problem hiding this comment.
We should almost have a linter rule that fails if buildkit ends up in go.mod
FWIW -- I think this would have worked since the identity package is self contained (I don't see docker in go.mod/sum). Better safe than sorry though
Signed-off-by: Erik Sipsma <[email protected]>
The comment in startEngineSession has more details. It's incredibly obscure but simple enough to fix that it's worth it. Signed-off-by: Erik Sipsma <[email protected]>
e8c699f to
7b56577
Compare
Main goal here is to automate provision testing. As part of that I found I was occasionally getting
text busyerrors trying to exec theengine-sessionbinary.After investigation this turned out to be incredibly obscure and highly specific to what the test case was doing. It could happen when:
It's actually a unsolved problem in Go and Linux in general apparently: golang/go#22315
It's a bit annoying to workaround but worth it so we can have this test case if nothing else.