Skip to content

feat(conformance): add a containers suite and record Linux results - #144

Merged
sinameraji merged 1 commit into
mainfrom
feat/containers-conformance
Nov 2, 2026
Merged

sinameraji merged 1 commit into
mainfrom
feat/containers-conformance

Conversation

@sinameraji

Copy link
Copy Markdown
Collaborator

Resolves #132.

What changed

  • Adds packages/conformance/containers-app/, a celld-only conformance app for ctx.container and @cloudflare/sandbox 1.0.1. Its image is python:3.12-alpine plus fuse3, s3fs-fuse and the sandbox-shim from cloudflare/sandbox:1.0.1.
  • Adds --suite containers and npm run test:containers --workspace=sobjects-conformance. The suite is opt-in (not part of --suite all) because it needs Docker and celld.
  • Covers start(), exec(), getTcpPort().fetch(), enableInternet: false, idle eviction with the container kept alive, and a node restart destroying the container.
  • Records the exec()-after-start() race and attempts S3Mount and DirectoryBackup.
  • Updates the Containers row in docs/compatibility.md, docs/conformance/results.md, the READMEs and AGENTS.md, and adds docs/conformance/containers.md with the run record.

Result

npm run test:containers --workspace=sobjects-conformance on Linux arm64 in Docker Desktop 4.75.0's Linux VM (celld 0.6.2, @cloudflare/sandbox 1.0.1): 8/8 checks pass.

  • start(), exec(), getTcpPort().fetch(): pass.
  • enableInternet: false: pass (egress refused; enableInternet: true connects).
  • Sleep: pass (object evicted while idle; the next request reached a new instance and the same running container).
  • Restart: pass (a node restart destroyed the container; the next start created a new one).
  • S3Mount.mount() and DirectoryBackup: unsupported because celld rejects interceptOutboundHttp with "not implemented in celld".
  • inspect(), snapshotDirectory(), snapshotContainer() and container.images: unavailable.
  • exec() immediately after start(): fails with "No such container". Cloudflare's exec() waits for a starting container; celld's start() is fire-and-forget. This is celld's behavior, not the CLI's, and the app polls exec() for readiness.

Not tested

A bare-metal Linux host, Linux x64, @cloudflare/sandbox's Files API (the earlier manual macOS run covered it), and containers on Wrangler or Cloudflare.

Notes

The suite needs a Docker or Podman engine on Linux. On macOS celld reaches a container through a published port and the getTcpPort() check fails, so the README says to use a Linux host or VM.

Add a celld-only containers conformance app and runner suite covering
ctx.container start/exec/getTcpPort, enableInternet: false, idle eviction
with the container kept alive, and a node restart destroying the container.
It also records the exec()-after-start() race and attempts S3Mount and
DirectoryBackup, which celld 0.6.2 rejects because interceptOutboundHttp is
not implemented.

Run it on Linux arm64 in Docker Desktop's Linux VM: 8/8 checks pass. Update
the Containers row in docs/compatibility.md, the conformance results, and the
READMEs with exactly what was verified and what remains unsupported.

Co-authored-by: autopilot <kimiflare@proton.me>
Signed-off-by: Sina Meraji <sina.meraji@gmail.com>
@sinameraji
sinameraji force-pushed the feat/containers-conformance branch from 3a00800 to afb2a8b Compare November 2, 2026 08:21
@sinameraji
sinameraji marked this pull request as ready for review November 2, 2026 08:27
@sinameraji
sinameraji merged commit f17bc12 into main Nov 2, 2026
2 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.

Conformance: Containers on Linux, S3Mount, DirectoryBackup, sleep and restart

1 participant