Skip to content

[backport-0.21] cli: preserve runner host for x-release - #13752

Merged
tiborvass merged 3 commits into
dagger:backport-0.21from
tiborvass:codex/backport-runner-host-0.21
Jul 29, 2026
Merged

tiborvass merged 3 commits into
dagger:backport-0.21from
tiborvass:codex/backport-runner-host-0.21

Conversation

@tiborvass

Copy link
Copy Markdown
Contributor

Summary

  • preserve _EXPERIMENTAL_DAGGER_RUNNER_HOST when --x-release re-execs the downloaded CLI
  • emit a warning when x-release is combined with an explicit runner host
  • add coverage for environments with and without a runner host

Backport of e81b162 to backport-0.21.

Why

The x-release environment filtering removed the runner-host override, so the re-executed CLI could connect through a different engine context than the invoking CLI. This keeps the selected runner host while continuing to strip the release and image-loader overrides.

Validation

  • git diff --check origin/backport-0.21...HEAD
  • gofmt -d cmd/dagger/main.go cmd/dagger/xrelease_test.go
  • go test ./cmd/dagger -run 'TestXRelease' -count=1 was attempted, but the 0.21 snapshot does not compile on macOS because of existing Linux-only unix.OpenTree/unix.Setns references and an existing undefined cleanRel in util/layercopy

@tiborvass
tiborvass marked this pull request as ready for review July 28, 2026 11:23
@tiborvass
tiborvass force-pushed the codex/backport-runner-host-0.21 branch from 42312a4 to 3871f05 Compare July 28, 2026 15:42
@marcosnils
marcosnils force-pushed the codex/backport-runner-host-0.21 branch from f66d678 to 3078de6 Compare July 29, 2026 05:04
@marcosnils
marcosnils force-pushed the codex/backport-runner-host-0.21 branch from 3078de6 to d977dc8 Compare July 29, 2026 05:31
Previous tests installed latest `typescript` package which as of July 10 is typescript 7.0.
That created some breakage so to avoid that we now install a pin version of 6.0.3 in the
tests.

Signed-off-by: Tom Chauveau <[email protected]>
@tiborvass
tiborvass merged commit da54b16 into dagger:backport-0.21 Jul 29, 2026
76 checks passed
@tiborvass tiborvass changed the title cli: preserve runner host for x-release [backport-0.21] cli: preserve runner host for x-release Jul 29, 2026
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
dagger 0.21.8

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## v0.21.8 - 2026-07-29

### Changed

- Changeset diffs are now computed from filesystem metadata instead of full-content comparison, significantly speeding up diff computation for large directories. by @marcosnils in
  dagger/dagger#13615

### Fixed

- Dockerfile build layer caching so unrelated build-context changes no longer bust the cache: `COPY`-ed directories now get a content-based cache identity, re-keying downstream steps only when copied content
  actually changes. by @marcosnils in dagger/dagger#13765
- The `--x-release` CLI re-exec so `_EXPERIMENTAL_DAGGER_RUNNER_HOST` is preserved (with a warning) instead of being stripped, and clarified its startup message to avoid implying it runs from any build. by
  @tiborvass in dagger/dagger#13752
- Silent SDK sessions no longer retain frontend telemetry in memory while Cloud and OTLP export remain enabled. `DAGGER_SILENT` is now honored as the equivalent of `--silent`. by @sipsma in
  dagger/dagger#13762

### What to do next?

- Read the [documentation](https://docs.dagger.io)
- Join our [Discord server](https://discord.gg/dagger-io)
- Follow us on [Twitter](https://twitter.com/dagger_io)

</pre>
  <p>View the full release notes at <a href="https://github.com/dagger/dagger/releases/tag/v0.21.8">https://github.com/dagger/dagger/releases/tag/v0.21.8</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!15378
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