Skip to content

ci: disable Dagger-in-Dagger in the playground shell - #14745

Merged
eunomie merged 1 commit into
dagger:mainfrom
eunomie:playground-nesting-implementer-134c16f9
Oct 20, 2026
Merged

eunomie merged 1 commit into
dagger:mainfrom
eunomie:playground-nesting-implementer-134c16f9

Conversation

@eunomie

@eunomie eunomie commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Since v1.0.0-beta.15 (#14082), playground terminals get Dagger-in-Dagger by default. The CLI inside the playground then prefers DAGGER_SESSION_PORT/DAGGER_SESSION_TOKEN over the runner host, so it talks to the OUTER engine instead of the playground's dev engine.

Since #14047, a nested CLI whose version differs from the outer engine fails with metadata field ClientVersion conflicts with bootstrap value. This surfaced once VERSION moved to beta.20 (#14729) against a stock beta.19 outer engine. #14342 fixed this for engine-dev tests and smoke, but not the playground.

Fix: pass disableDaggerInDagger: true to .withShell(["sh"], …) in playground(), covering -c, --init, and the interactive terminal.

Before: dagger shell playground -c exits rc=1 with the conflict. After: it answers v1.0.0-beta.20+<commit> from the dev engine.

Not done: no regression test and no changie fragment (recent .dagger-only commits have none). go-client-dev/dotnet-client-dev share this issue and are out of scope.

📄 Understanding this change

Default nesting (dagger#14082) gave the shell the outer engine's session, so
its CLI skipped the dev engine and failed the ClientVersion check.

Signed-off-by: Yves Brissaud <[email protected]>
@eunomie

eunomie commented Oct 20, 2026

Copy link
Copy Markdown
Member Author

Quick reproduction

  • on this branch:
$ dagger shell playground

dagger  ~ $ dagger version
version:     v1.0.0-beta.20
commit:      98234cee
dirty:       no
platform:    linux/arm64/v8
runner-host: tcp://40mfuim45c6ju:1234

dagger ~ $ dagger -m core api call version
✔ connect 0.0s
✔ loading type definitions 0.2s
✔ parsing command line arguments 0.0s

✔ version: String! 0.0s

v1.0.0-beta.20+98234ce
  • on main:
$ dagger shell playground

dagger ~ $ dagger version
version:     v1.0.0-beta.20
commit:      b3c865e1
dirty:       no
platform:    linux/arm64/v8
runner-host: tcp://2cepcs9hg3gnq:1234

dagger ~ $ dagger -m core api call version
✔ connect 0.0s
✘ loading type definitions 0.0s ERROR
! query module objects: get or init client: client "Y42IBHHEX2H5BY4ZUSO4IP4RX7" metadata field ClientVersion conflicts with bootstrap value

@eunomie
eunomie marked this pull request as ready for review October 20, 2026 15:13
@grouville
grouville self-requested a review October 20, 2026 15:25
@eunomie
eunomie merged commit edda811 into dagger:main Oct 20, 2026
94 checks passed
@eunomie
eunomie deleted the playground-nesting-implementer-134c16f9 branch October 20, 2026 16:53
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.

3 participants