Repository navigation
chore: pair with engine v1.0.0-beta.28 - #141
Merged
Merged
Conversation
Not a version string this time. beta.26 reworked how the schema spells identifiers, so the bindings move by 746 lines — 53 of them case-only renames (`insecureSkipTLSVerify` → `insecureSkipTlsVerify`, enum wire values `"Default"` → `"DEFAULT"`) — and `Client.formatIdentifiers` moves onto a new `Naming` object. The same rework renamed the types a dependency contributes, so this module itself stopped loading: `sdk-helpers` prefixes them `SDKHelpers` now, where it was `SdkHelpers`. The three signatures naming `SdkHelpersDangConfig` move with it, and that is a hard switch — the new name is unresolved on beta.25, the old one on beta.26+. The floor stays beta.18, measured rather than assumed: a module generated here loads and runs on beta.26 and beta.25, including a call sending a renamed enum wire value, because the session is told to serve this release's view and the engine answers in it. library/VENDOR.md records the delta. beta.26 is skipped as a pairing of its own; the current release supersedes it. Signed-off-by: Tom Chauveau <[email protected]>
ENGINE_VERSION lives in `@dagger.io/session` — provisioning/bin.ts passes it to the CLI as `--version`, so it is the session layer that decides which release a scope's session is told to serve. Moving the pairing to beta.27 therefore changes a published package's contents, and the published `@dagger.io/[email protected]` bakes `v1.0.0-beta.25`. Left alone, a remoteCoreLib scope would have resolved beta.27 bindings from core against a session asking the engine for beta.25's view of the schema — which beta.26's identifier rename makes two different spellings of the same API. All four move together because `release` publishes them at one version, and the exact inter-layer pins move with them: `[email protected]` naming `[email protected]` would resolve the old session beside the new one. core's pin stays `^1.0.0-beta.2`, which admits beta.3 — the reason #132 made it a range rather than an exact version. Signed-off-by: Tom Chauveau <[email protected]>
beta.28 released while this branch was still pointed at beta.27, and a pairing one release behind puts `packager:library-bindings/stale` red on whatever engine people actually run. It costs almost nothing on top of beta.27: the bindings move by 14 lines and every one is a doc comment — abbreviated SHAs now expand by fetching the refs a remote advertises, and a workspace mount is editable rather than read-only, with `withoutMount` to remove it. No signature, symbol or enum value moves, and `SDKHelpers` still resolves, so beta.26's hard switch is not re-crossed. beta.27 is skipped as a pairing of its own. It released before the core package landed, so nothing was ever published against it — the facade's bounded range is `>=1.0.0-beta.28 <1.0.0-beta.29` and core's first publish will be beta.28's. Signed-off-by: Tom Chauveau <[email protected]>
… missed Two things the suite caught that the bindings diff did not. beta.28 requires a type pattern to name the non-null type its arm binds: `err: GraphQLError =>` is now `err: GraphQLError! =>`. Every generated entrypoint carries one in the dispatcher's rescue, so this was 132 of the 91 failed checks — the template, its golden fixture and the two assertions that pin its text move together, along with four rescue arms in this repo's own modules. The fixture manifests were still on beta.25. `fixtureEngineVersionCheck` exists precisely for this — its docstring records three runtime fixtures sitting at beta.9 and four more at beta.7 through a bump nobody noticed missing them — and it is a guard, not a generator: every pairing since beta.23 has moved these 23 files by hand, and beta.27 did not. Signed-off-by: Tom Chauveau <[email protected]>
The 90 failed checks were not this repo's code: beta.28 requires a type pattern to name the non-null type its arm binds, and `[email protected]` still writes `error: Error =>`, so the dependency itself refuses to load and every check that reaches it fails with the engine's advice text rather than anything about the SDK. `v1.0.12` loads on beta.27 and beta.28 both, measured against a throwaway module naming it. Nothing this repo calls moved across those four releases — the module's own parse gate resolves every helpers type and field it names. Signed-off-by: Tom Chauveau <[email protected]>
…xtures `generate-keeps-engine-pin-check` and `generate-preserves-manifest-check` both assert that regenerating leaves a manifest alone. sdk-helpers v1.0.12 carries "write TOML manifests without indentation", so re-emitting a committed fixture produced the same values with different bytes and the workspace reported a write. The 26 TypeScript fixture manifests are re-emitted in the form the builder now writes; only table bodies move, so the `^engineVersion` match that tells a pre-1.0 pin from a 1.0 one is untouched. `remote-entrypoint-replaced-check` named `sdk-helpers/entrypoint@main`, a subdirectory that exists at no ref of that repo. Engines before beta.28 never looked, so the check passed on a path that was never there; beta.28 content-hashes an entrypoint source while the workspace loads and fails on the missing directory. Pointed at the repo root, which is a Dang module, and pinned to a tag so it cannot rot with someone else's default branch again. Signed-off-by: Tom Chauveau <[email protected]>
`dang-config-check` names `sdk-helpers/entrypoint@main` twice for the same reason `remote-entrypoint-replaced-check` did, and fails the same way on beta.28: the subdirectory exists at no ref, and content-hashing an entrypoint source while the workspace loads now stats it. 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.
Every pairing up to beta.25 moved a version string and nothing else. This one
does not, because beta.26 reworked how the engine's schema spells identifiers.
This module stopped loading
sdk-helperscontributesSDKHelpersDangConfignow, notSdkHelpersDangConfig— SDK is treated as an initialism. Until the threesignatures naming it moved,
dagger -m . functionsfailed outright withunresolved type: SdkHelpersDangConfig.It is a hard switch in both directions: the new name is unresolved on
beta.25, the old one on beta.26+. So this SDK release targets beta.26+ and the
previous one targets beta.25, with nothing that spans both.
It reads as the dependency having vanished when it has only been renamed — the
dependency stays callable (
sdkHelpers.dangConfig.versionloads fine), andonly naming its type in a signature fails. The engine will tell you the real
name rather than leaving you to guess:
The bindings move by 746 lines
53 of them case-only renames —
insecureSkipTLSVerify→insecureSkipTlsVerify,expectedRemoteSHA→expectedRemoteSha, enum wirevalues
"Default"→"DEFAULT"and"EStarGZ"→"ESTARGZ".Client.formatIdentifiersis gone, onto a newNamingobject(
ClientNamingOpts,NamingFormatIdentifiersOpts,NamingModuleOpts,ModuleNaming). The additions are ordinary:resolveBrokenSymlinksondirectory selection,
FileSyncOpts.keyByContent,DirectoryDirectoryOpts.library/VENDOR.mdrecords the delta.The floor stays beta.18, measured
Not assumed. A module generated by this branch loads and runs on beta.26 and
beta.25, including a call that sends one of the renamed wire values
(
withMountedCache(..., { sharing: CacheSharingMode.Default })→"DEFAULT"):the library tells the session which release's view to serve and the engine
answers in that view's names. The rename reaches what this SDK generates, not
what that output can run against.
The layers go to 1.0.0-beta.3
ENGINE_VERSIONlives in@dagger.io/session—provisioning/bin.tspasses itto the CLI as
--version, so the session layer decides which release a scope'ssession is told to serve. Pairing therefore changes a published package's
contents, and
@dagger.io/[email protected]on npm bakesv1.0.0-beta.25.Left alone this ships a mismatch: a
remoteCoreLibscope would resolvebeta.27 bindings from core against a session asking the engine for beta.25's
view — which beta.26's rename makes two different spellings of one API.
All four layers move together because
releasepublishes them at one version,and the exact inter-layer pins move with them (
[email protected]naming[email protected]would resolve the old session beside the new one).core's pin stays
^1.0.0-beta.2, which admits beta.3 — the reason #132 made ita range.
One trap worth recording
packager:library-bindingsregenerates against the engine the nested suite runsin —
.dagger/modules/engine-e2e'sengine-devpin — not the--x-releaseyouinvoke. That pin was the beta.25 tag commit exactly, so a first pass reported
the bindings unchanged and I believed it. Bumping the pin to beta.27's commit is
what surfaced the 746 lines; it is part of the pairing, not a follow-up.
Also: a fresh module is
[entrypoint]and carries noengineVersion, so the[runtime]fixtures'engineVersionlines no longer move on a pairing the waythey did through beta.25.
Verified
dagger checkon beta.27 is green end to end (exit 0). The three failingruntime-*rows are the fixtures their parent checks invoke on purpose.beta.26 is skipped as a pairing of its own; the current release supersedes it.
Paired with dagger/dagger#15131, which publishes
@dagger.io/coreat1.0.0-beta.27with these bindings.Signed-off-by: Tom Chauveau [email protected]