Skip to content

performance: reduce the number of fills - #132

Merged
aluzzardi merged 1 commit into
mainfrom
perf-fill
Feb 19, 2021
Merged

aluzzardi merged 1 commit into
mainfrom
perf-fill

Conversation

@aluzzardi

Copy link
Copy Markdown
Contributor
  • Remove unnecessary Fill() in Export()
  • Change set() and the way we store outputs so we don't fill
    intermediaries as much
  • WIP: Scan the tree only once. Changed LocalDirs to use cueflow rather than
    doing our own Walk. In a follow up we should use the same flow
    instance.

Signed-off-by: Andrea Luzzardi [email protected]

- Remove unnecessary Fill() in Export()
- Change `set()` and the way we store outputs so we don't fill
  intermediaries as much
- WIP: Scan the tree only once. Changed LocalDirs to use cueflow rather than
  doing our own Walk. In a follow up we should use the same flow
  instance.

Signed-off-by: Andrea Luzzardi <[email protected]>
@aluzzardi
aluzzardi merged commit 3748bbc into main Feb 19, 2021
@aluzzardi
aluzzardi deleted the perf-fill branch February 19, 2021 22:34
TomChv added a commit that referenced this pull request Nov 24, 2026
`^1.0.0-beta.2` admitted session beta.2, whose ENGINE_VERSION is beta.25, so a
pinned or stale install paired beta.28 bindings with a request for the API view
those bindings were renamed out of. A fresh install already picked beta.3; the
floor says so.

Still a range, not a pin: #132 made it one so a session release does not need a
core release to go with it.

`npm install` resolved typescript and session live at release time, so the
published dist/ was not reproducible. A lockfile plus `npm ci` fixes both, and
`ci` fails when the lockfile and the manifest disagree rather than quietly
resolving something else. The lockfile is build input only — `files` publishes
dist/ alone.

The README's "pinned above" pointed at nothing. It now says where the pin is,
and records that the vendored files' doc comments read from upstream's point of
view deliberately: rewording them here is dropped on the next re-vendor, which
is the one thing that file already warns about.

Signed-off-by: Tom Chauveau <[email protected]>
TomChv added a commit that referenced this pull request Nov 24, 2026
The generated Dagger API bindings, `dag` and the typed `connect`, split out of
`@dagger.io/dagger` so a scope can depend on the engine's API without the
decorators, the provisioning code and the OpenTelemetry SDK that the aggregate
pulls with it.

Its version is the **engine** release, not the TypeScript SDK's, which is why
it is published from this repo: the bindings describe one engine's schema.
Every `.ts` file is produced by dagger/typescript-sdk's packager against a
running engine and copied here unmodified — `client.gen.ts` alone is 23k lines
— so the package is vendored rather than authored, and README.md says so.

`@dagger.io/session` is a published dependency pinned by range: core needs a
session, and #132 made it a range so a session release does not need a core
release to go with it. The lockfile pins the build's own inputs, which the
publish uses through `npm ci`; `files` publishes `dist/` alone, so neither the
lockfile nor the sources ship.

Lint ignores the directory in the same commit it arrives: the vendored sources
are not formatted to this repo's rules and `yarn lint` reports 3275 errors
otherwise.

Signed-off-by: Tom Chauveau <[email protected]>
TomChv added a commit that referenced this pull request Nov 25, 2026
The generated Dagger API bindings, `dag` and the typed `connect`, split out of
`@dagger.io/dagger` so a scope can depend on the engine's API without the
decorators, the provisioning code and the OpenTelemetry SDK that the aggregate
pulls with it.

Its version is the **engine** release, not the TypeScript SDK's, which is why
it is published from this repo: the bindings describe one engine's schema.
Every `.ts` file is produced by dagger/typescript-sdk's packager against a
running engine and copied here unmodified — `client.gen.ts` alone is 23k lines
— so the package is vendored rather than authored, and README.md says so.

`@dagger.io/session` is a published dependency pinned by range: core needs a
session, and #132 made it a range so a session release does not need a core
release to go with it. The lockfile pins the build's own inputs, which the
publish uses through `npm ci`; `files` publishes `dist/` alone, so neither the
lockfile nor the sources ship.

Lint ignores the directory in the same commit it arrives: the vendored sources
are not formatted to this repo's rules and `yarn lint` reports 3275 errors
otherwise.

Signed-off-by: Tom Chauveau <[email protected]>
TomChv added a commit that referenced this pull request Nov 26, 2026
The generated Dagger API bindings, `dag` and the typed `connect`, split out of
`@dagger.io/dagger` so a scope can depend on the engine's API without the
decorators, the provisioning code and the OpenTelemetry SDK that the aggregate
pulls with it.

Its version is the **engine** release, not the TypeScript SDK's, which is why
it is published from this repo: the bindings describe one engine's schema.
Every `.ts` file is produced by dagger/typescript-sdk's packager against a
running engine and copied here unmodified — `client.gen.ts` alone is 23k lines
— so the package is vendored rather than authored, and README.md says so.

`@dagger.io/session` is a published dependency pinned by range: core needs a
session, and #132 made it a range so a session release does not need a core
release to go with it. The lockfile pins the build's own inputs, which the
publish uses through `npm ci`; `files` publishes `dist/` alone, so neither the
lockfile nor the sources ship.

Lint ignores the directory in the same commit it arrives: the vendored sources
are not formatted to this repo's rules and `yarn lint` reports 3275 errors
otherwise.

Signed-off-by: Tom Chauveau <[email protected]>
TomChv added a commit that referenced this pull request Nov 26, 2026
The generated Dagger API bindings, `dag` and the typed `connect`, split out of
`@dagger.io/dagger` so a scope can depend on the engine's API without the
decorators, the provisioning code and the OpenTelemetry SDK that the aggregate
pulls with it.

Its version is the **engine** release, not the TypeScript SDK's, which is why
it is published from this repo: the bindings describe one engine's schema.
Every `.ts` file is produced by dagger/typescript-sdk's packager against a
running engine and copied here unmodified — `client.gen.ts` alone is 23k lines
— so the package is vendored rather than authored, and README.md says so.

`@dagger.io/session` is a published dependency pinned by range: core needs a
session, and #132 made it a range so a session release does not need a core
release to go with it. The lockfile pins the build's own inputs, which the
publish uses through `npm ci`; `files` publishes `dist/` alone, so neither the
lockfile nor the sources ship.

Lint ignores the directory in the same commit it arrives: the vendored sources
are not formatted to this repo's rules and `yarn lint` reports 3275 errors
otherwise.

Signed-off-by: Tom Chauveau <[email protected]>
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