Skip to content

Remove embedded engineconn from Go SDK. - #3724

Merged
sipsma merged 5 commits into
dagger:mainfrom
sipsma:rm-embedded
Nov 8, 2022
Merged

sipsma merged 5 commits into
dagger:mainfrom
sipsma:rm-embedded

Conversation

@sipsma

@sipsma sipsma commented Nov 8, 2022

Copy link
Copy Markdown
Contributor

Signed-off-by: Erik Sipsma [email protected]

@sipsma
sipsma requested a review from aluzzardi November 8, 2022 02:41
@aluzzardi

Copy link
Copy Markdown
Contributor

(CI failures might be because not a fresh rebase from main?)

@aluzzardi

Copy link
Copy Markdown
Contributor

The 🍾 PR

Comment thread internal/mage/sdk/go.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ExperimentalPrivilegedNesting below should be doing this already

Comment thread internal/mage/util/util.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should protect this behind a sync.Once?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good call, will update

Comment thread internal/mage/util/util.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a solution for this, but it's too bad WithDevEngine "un-daggerizes" the CI workflow.

That being said, it's the only way

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Being able to do actual full blown dagger-in-dagger (or docker-in-dagger, etc.) where we do actually nested containers would solve it I think. But that would require enabling privileged execs and setting up mounts very carefully (using the fact that scratch is always a bind mount to avoid overlay-on-overlay, etc.). So yeah, this is the only way for now :-)

@sipsma

sipsma commented Nov 8, 2022

Copy link
Copy Markdown
Contributor Author

(CI failures might be because not a fresh rebase from main?)

It was more convoluted, the image I built earlier today was from before the git change was merged and when I ran the generate I wasn't wrapping in WithDevEngine. So then generate was pulling that older engine image and running against that 😵‍💫 Wrapped in WithDevEngine (and also pushed an updated engine image)

@sipsma

sipsma commented Nov 8, 2022

Copy link
Copy Markdown
Contributor Author

There was a one-off timeout in the engine tests where a test case got hung on exporting to a local registry. I can't reproduce locally and there wasn't anything else to debug with. For now, just including an extra commit to print the buildkitd logs at the end of tests in GHA for now. So at least if it reoccurs we'll have a better chance of debugging more.

@sipsma
sipsma force-pushed the rm-embedded branch 2 times, most recently from 45c10ca to 308990a Compare November 8, 2022 06:22
@sipsma
sipsma merged commit 9bd33ed into dagger:main Nov 8, 2022
@aluzzardi aluzzardi mentioned this pull request Nov 8, 2022
Comment thread sdk/go/go.mod
@@ -4,15 +4,12 @@ go 1.19

replace github.com/dagger/dagger => ../..

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still needed btw?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants