Repository navigation
chore: pair with engine v1.0.0-beta.16 - #84
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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'sengine-devdependency. That pin and the SDK'stargetEngineVersionare coupled bypackager:library-bindings/stale: it regenerateslibrary/src/core/client.gen.tsfrom 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:
engine-e2e'sengine-devpincbf6941(a main revision, ~2026-09-29)2d95ef9(tagv1.0.0-beta.16)typescript-sdk.dang'stargetEngineVersion1.0.0-beta.151.0.0-beta.16Why 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.16is 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—targetEngineVersionto1.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 thelibrary-bindings/stalecoupling 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 equaltargetEngineVersion, and why.e2e:fixture-engine-version-checkasserts equaltargetEngineVersion— the nine Generate a module entrypoint by default, targeting engine v1.0.0-beta.15 #73 moved, plusruntimes/fixtures/{dag-dep,dep}that feat: restore pre-1.0 dag.<module>() through a generated compat shim #78 added.e2e/fixtures/managed-toml/beta-pindeliberately stays at beta.13: its pin is the fixture, andgenerate-keeps-engine-pin-checkasserts generation leaves it alone.library/src/core/client.gen.ts— regenerated bypackager:library-bindings, +545 −24. That is the whole of the core API's growth between the two releases:GitRemoteandLLMContentas new objects,GitRepository.{branch,head,ref,tag},Address.{container,gitRef}andLLM.artifactsgaining optional arguments, andWorkspacegainingwithoutFiles,withPatchFileandwithUserConfig.library/bundle/— rebuilt bypackager:library-bundlefrom those bindings, as a separate run after them (seelibraryBundle's docstring and VENDOR.md step 4: onedagger generate packagerwould build the bundle from the pre-regeneration bindings and come out stale on the very change that moved them).core.js4,131,613 → 4,135,080 bytes (+3.4 KB),core.d.ts391,239 → 406,931 (+15.3 KB),introspector.js4,194,789 → 4,198,233 (+3.4 KB).typescript-version.txtis 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 committedbundle/, 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'ssdk/typescriptchanged four files between the tags, and three are outside what is vendored here —runtime/dagger.jsonbecameruntime/dagger-module.toml(the Go runtime module stays upstream),src/api/client.gen.tsis regenerated here, andsrc/api/test/api.spec.tsis test tooling. The fourth is the one generatedCLI_VERSIONline insrc/provisioning/default.ts.Left alone, deliberately
engineVersion(rootdagger-module.toml/dagger.json), stillv1.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-runtimeexists to serve.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 noengineVersionat all, so the pairing bump does not raise what a generated module requires.library/src/session/provisioning/default.ts'sCLI_VERSION, still1.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.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.tomlasdagger.toml).dagger check— 85 passed, 0 failed, 9m15s, exit 0. The one✘ failingCheckin the log is the deliberate throw insideruntimes: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. Includespackager:library-bindings/staleandpackager:library-bundle/stale— the two this PR exists to turn green — pluse2e:fixture-engine-version-check,packager:library-tests,packager:module-bundle-check,packager:layering-check, and all fiveruntimes:*execution checks that load a module built from the committedbundle/.packager:library-bindings/stalewas negative-controlled: appending one comment line to the committedclient.gen.tsturns it red withgenerated 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 inhelpers/codegenandhelpers/config-updater.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 isengine-e-2-e:generate/stale, which regenerates the playground's ownworkspace.toml/workspace.lockinside 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.