Skip to content

chore: pair with engine v1.0.0-beta.16 - #84

Merged
TomChv merged 3 commits into
mainfrom
chore/pair-with-beta-16
Oct 12, 2026
Merged

TomChv merged 3 commits into
mainfrom
chore/pair-with-beta-16

Conversation

@TomChv

@TomChv TomChv commented Oct 9, 2026

Copy link
Copy Markdown
Member

Why the pin and the pairing move together

The nested check suite (engine-e-2-e:checks-check) runs inside a playground engine pinned by .dagger/modules/engine-e2e/dagger-module.toml's engine-dev dependency. That pin and the SDK's targetEngineVersion are coupled by packager:library-bindings/stale: it regenerates library/src/core/client.gen.ts from the running engine's core schema and compares it with the committed file. Move one without the other and that check goes red — the committed bindings and the engine serving the schema disagree about what the core API is.

So this is one change, not two:

before after
engine-e2e's engine-dev pin cbf6941 (a main revision, ~2026-09-29) 2d95ef9 (tag v1.0.0-beta.16)
typescript-sdk.dang's targetEngineVersion 1.0.0-beta.15 1.0.0-beta.16

Why beta.16

The playground engine needs dagger check --parallel / -j (dagger/dagger#14459), so the nested suite can stop launching ~80 checks at once and killing its own engine. v1.0.0-beta.16 is the oldest release that carries it.

This PR does not use the flag. That is #83, which rebases on top of this one. All this PR does is move the pairing so the flag exists to use.

What moved

  • typescript-sdk.dang — targetEngineVersion to 1.0.0-beta.16. Its docstring explained the old value by #14038: beta.15 is the first release that reads the [entrypoint] a module now generates by default. That is still true, but it is now the floor, not the pairing, so the docstring says so and records the library-bindings/stale coupling instead.
  • .dagger/modules/engine-e2e/dagger-module.toml — the pin, now a release tag's commit rather than an arbitrary main revision. engineCommit's docstring already said why the dependency is pinned at all instead of tracking @main; it now also says the release has to equal targetEngineVersion, and why.
  • Eleven managed fixture manifests, which e2e:fixture-engine-version-check asserts equal targetEngineVersion — the nine Generate a module entrypoint by default, targeting engine v1.0.0-beta.15 #73 moved, plus runtimes/fixtures/{dag-dep,dep} that feat: restore pre-1.0 dag.<module>() through a generated compat shim #78 added. e2e/fixtures/managed-toml/beta-pin deliberately stays at beta.13: its pin is the fixture, and generate-keeps-engine-pin-check asserts generation leaves it alone.
  • library/src/core/client.gen.ts — regenerated by packager:library-bindings, +545 −24. That is the whole of the core API's growth between the two releases: GitRemote and LLMContent as new objects, GitRepository.{branch,head,ref,tag}, Address.{container,gitRef} and LLM.artifacts gaining optional arguments, and Workspace gaining withoutFiles, withPatchFile and withUserConfig.
  • library/bundle/ — rebuilt by packager:library-bundle from those bindings, as a separate run after them (see libraryBundle's docstring and VENDOR.md step 4: one dagger generate packager would build the bundle from the pre-regeneration bindings and come out stale on the very change that moved them). core.js 4,131,613 → 4,135,080 bytes (+3.4 KB), core.d.ts 391,239 → 406,931 (+15.3 KB), introspector.js 4,194,789 → 4,198,233 (+3.4 KB). typescript-version.txt is unchanged, which is what says the toolchain stayed put and the bindings are all that moved underneath it.
  • library/VENDOR.md — Generate a module entrypoint by default, targeting engine v1.0.0-beta.15 #73 added a section explaining why the pairing moved to beta.15 without re-vendoring, so that the "the vendored sources, the bindings generated from them, the committed bundle/, and the Go generator all move together or not at all" rule would not go quietly stale. It now covers both moves, and records that beta.15 → beta.16 adds almost nothing to the lag: upstream's sdk/typescript changed four files between the tags, and three are outside what is vendored here — runtime/dagger.json became runtime/dagger-module.toml (the Go runtime module stays upstream), src/api/client.gen.ts is regenerated here, and src/api/test/api.spec.ts is test tooling. The fourth is the one generated CLI_VERSION line in src/provisioning/default.ts.

Left alone, deliberately

  • The SDK module's own engineVersion (root dagger-module.toml / dagger.json), still v1.0.0-beta.11, and the README floor that states it. Generate a module entrypoint by default, targeting engine v1.0.0-beta.15 #73's reasoning holds: that says what engine can run this SDK, which is a different fact from what the bundle is paired with, nothing here uses a newer core API, and raising it would lock out exactly the engines --legacy-runtime exists to serve.
  • The README's v1.0.0-beta.15 (line 110) — that is #14038's floor for the entrypoint path, and it is still true. An entrypoint manifest carries no engineVersion at all, so the pairing bump does not raise what a generated module requires.
  • library/src/session/provisioning/default.ts's CLI_VERSION, still 1.0.0-beta.11. It is part of the vendored sources, so it moves on a re-vendor; VENDOR.md already lists it as un-taken lag.
  • The vendored sources and the tag, for the reasons recorded in VENDOR.md.

Verification

Everything below ran against --x-release=v1.0.0-beta.16, on the rebased tree, in the playground's own workspace config (engine-e2e/workspace.toml as dagger.toml).

  • The whole workspace suite: dagger check — 85 passed, 0 failed, 9m15s, exit 0. The one ✘ failingCheck in the log is the deliberate throw inside runtimes:entrypoint-error-text-check's fixture; that check is green. Durations range from 1.0s to 6m50s, so this is not the all-identical-durations shape an engine death prints. Includes packager:library-bindings/stale and packager:library-bundle/stale — the two this PR exists to turn green — plus e2e:fixture-engine-version-check, packager:library-tests, packager:module-bundle-check, packager:layering-check, and all five runtimes:* execution checks that load a module built from the committed bundle/.
  • packager:library-bindings/stale was negative-controlled: appending one comment line to the committed client.gen.ts turns it red with generated files are not up to date, so its pass is the bindings genuinely agreeing with beta.16's schema and not a check that no-ops.
  • go test ./... green in helpers/codegen and helpers/config-updater.
  • All three Dang modules parse at beta.16 (dagger -m . functions, -m .dagger/modules/e2e, -m .dagger/modules/engine-e2e).

engine-e-2-e:* was not run locally — each of those builds a whole engine. The one thing it covers that nothing here does is engine-e-2-e:generate/stale, which regenerates the playground's own workspace.toml/workspace.lock inside the new engine; neither file has an entry tied to the engine release, so it is expected to stay green, but CI is what will say so.

TomChv added 3 commits October 9, 2026 17:27
The nested check suite runs in a playground engine pinned by
`.dagger/modules/engine-e2e/dagger-module.toml`, and that pin and the SDK's
`targetEngineVersion` are coupled: `packager:library-bindings/stale`
regenerates `library/src/core/client.gen.ts` from the *running* engine's core
schema and compares it with the committed file, so moving either one alone
turns it red.

Move both to v1.0.0-beta.16 (tag commit 2d95ef98), along with the eleven
managed fixture manifests `fixture-engine-version-check` holds against
`targetEngineVersion`, and record in `library/VENDOR.md` why the pairing has
moved again without the vendored sources.

The SDK module's own `engineVersion` stays at v1.0.0-beta.11. That says what
engine can run *this SDK*, which is a different fact, and raising it would lock
out exactly the engines `--legacy-runtime` exists to serve.

Signed-off-by: Tom Chauveau <[email protected]>
`packager:library-bindings` renders `library/src/core/client.gen.ts` from the
running engine's core schema, so this is the whole of the core API's growth
between beta.15 and beta.16: `GitRemote` and `LLMContent` as new objects,
`GitRepository.{branch,head,ref,tag}`, `Address.{container,gitRef}` and
`LLM.artifacts` gaining optional arguments, and `Workspace` gaining
`withoutFiles`, `withPatchFile` and `withUserConfig`.

Generated, not hand-edited. `packager:library-bindings/stale` is what says so.

Signed-off-by: Tom Chauveau <[email protected]>
`packager:library-bundle` builds this from the vendored sources plus the
bindings the previous commit moved, so it has to be a separate run — one
`dagger generate packager` would build the bundle from the pre-regeneration
bindings and come out stale on the very change that moved them.

Only the bindings moved underneath it: `core.js` 4,131,613 -> 4,135,080 bytes,
`core.d.ts` 391,239 -> 406,931, `introspector.js` 4,194,789 -> 4,198,233.
`typescript-version.txt` is unchanged, which is what says the toolchain stayed
put and the input is all that moved.

Signed-off-by: Tom Chauveau <[email protected]>
@TomChv
TomChv merged commit abdf2d2 into main Oct 12, 2026
5 checks passed
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.

1 participant