Commit Graph
4 Commits
Author SHA1 Message Date
Tim Smart 9f61304547 test(docker): keep focused contract and integration coverage 2026-11-09 06:50:04 +00:00
Effect Bot a06baba608 test(docker): reduce the suites to the accepted behavior
- unit suites cut from 117 to 55 tests, merged per behavior
- Swarm and plugin services covered by fake-engine round trips over DockerApi
- live suites cut to 11 tests; the docker:dind suites and their helper are removed
- the pinned API 1.44 CI rerun becomes one live decode test in DockerSystem
- CI no longer pulls docker:29-dind or busybox
- drop the platform-node DockerApi test, which duplicated the fake-engine round trip
2026-11-09 06:38:08 +00:00
Sebastian Lorenz 6be31ce4e3 feat(docker): check DockerApi against the pinned API document
docker-codegen now also writes a manifest of the pinned API document's
operations: method, path, query and header parameters by wire name,
required query parameters, whether a body is taken, and the success and
error statuses. A test compares DockerApi with it and lists where they
differ on purpose, each because the Engine differs from the document
(verified live) or because HttpApi can't declare the operation: the
WebSocket attach, and the deprecated BuildKit session.

Gaps it found are declared now: HEAD /_ping as system.pingHead, the
build's BuildKit `outputs` (BuildOptions.outputs too), attach's stream
flags as optional, and save's `names` as optional (without them the
Engine answers an empty archive).
2026-11-08 20:21:53 +00:00
Sebastian Lorenz fdc7a6dedd feat(docker): generate the Docker Engine API Schemas
Add packages/tools/docker-codegen, which generates effect/docker/DockerSchema
from moby's pinned API document (1.56) with a standing list of computed patch
families: hoisted operation bodies, flattened allOf, empty-object maps, Go nil
(every nullable mark dropped, decoded by Schema.toCodecGoJson), and lenient
enums. Every definition is an exported Schema, followed by its decoded type
under the same name.

The formatter step fails instead of writing pnpm's error output over the
generated file.
2026-11-08 20:20:53 +00:00