diff --git a/crates/outer/src/config.rs b/crates/outer/src/config.rs index f5b58ee..5cb43a0 100644 --- a/crates/outer/src/config.rs +++ b/crates/outer/src/config.rs @@ -1622,7 +1622,7 @@ mod tests { } #[test] - fn stale_celld_names_are_ignored_after_the_wipe() { + fn stale_tenant_names_are_ignored_after_the_wipe() { // No rename shims: a carried-over `CELLD_*` or `OUTER_CELLD_BIN` // is dead config, not a refusal. (The runtime still refuses to // start a fleet with `CELLD_*` set; that reservation lives in diff --git a/crates/outer/src/deploy/pipeline.rs b/crates/outer/src/deploy/pipeline.rs index bb44d40..da1d9f3 100644 --- a/crates/outer/src/deploy/pipeline.rs +++ b/crates/outer/src/deploy/pipeline.rs @@ -3526,7 +3526,7 @@ mod tests { } #[test] fn astro_website_config_passes_key_validation() { - // The shape the website template's `celld-config` integration derives + // The shape the website template's `cello-config` integration derives // into `dist/wrangler.json` from the Cloudflare adapter's // `dist/server/wrangler.json` (verbatim from a real `bun run build`): // `main` rewrites to `server/…`, assets to `client`, `vars` to `{}`. diff --git a/crates/outer/src/http/proxy.rs b/crates/outer/src/http/proxy.rs index 6f9806e..a85e203 100644 --- a/crates/outer/src/http/proxy.rs +++ b/crates/outer/src/http/proxy.rs @@ -3354,14 +3354,14 @@ mod tests { #[tokio::test] async fn failed_wake_is_a_503_with_retry_after() { let fix = fixture().await; - // A closed loopback port: nothing answers, and the binary does not - // exist, so the wake fails without touching the network. - let closed = tokio::net::TcpListener::bind("127.0.0.1:0") - .await - .unwrap() - .local_addr() - .unwrap() - .port(); + // A held-but-silent loopback listener, and a binary that does not + // exist, so the wake fails without touching the network. Holding + // the socket (rather than binding and dropping it) keeps the port + // out of the ephemeral pool: under parallel load another test's + // fake fleet could otherwise bind the freed port and answer the + // wake probe, flaking the expected 503 into a proxied 200. + let _held = tokio::net::TcpListener::bind("127.0.0.1:0").await.unwrap(); + let closed = _held.local_addr().unwrap().port(); insert_app(&fix.pool, "app-down", "down", closed, "public").await; let state = ProxyState::new( fix.pool.clone(), diff --git a/crates/outer/src/mcp/tests.rs b/crates/outer/src/mcp/tests.rs index ced1476..2f7daa3 100644 --- a/crates/outer/src/mcp/tests.rs +++ b/crates/outer/src/mcp/tests.rs @@ -2379,7 +2379,12 @@ async fn action_rows(state: &McpState, slug: &str) -> Vec&2 + status=1 +fi +if ! printf '%s\n' "$digest" | grep -Eq '^sha256:[0-9a-f]{64}$'; then + echo "docker/Dockerfile CELLO_DIGEST '$digest' is not a sha256 pin" >&2 + status=1 +fi +# The Dockerfile holds the unexpanded form literally. +# shellcheck disable=SC2016 +if [ "$imageref" != 'ghcr.io/ryuzcorp/cello:${CELLO_VERSION}@${CELLO_DIGEST}' ]; then + echo "docker/Dockerfile CELLO_IMAGE '$imageref' is not built from the pinned version and digest" >&2 + status=1 +fi + exit "$status" diff --git a/web/docs/agents/frontend/website.md b/web/docs/agents/frontend/website.md index b17701f..403d2fd 100644 --- a/web/docs/agents/frontend/website.md +++ b/web/docs/agents/frontend/website.md @@ -44,7 +44,7 @@ export const POST: APIRoute = async () => { ## Ship config and schema the Cello way -1. Edit `astro.config.mjs` (`celld-config` integration), never hand-write `dist/wrangler.json`. +1. Edit `astro.config.mjs` (`cello-config` integration), never hand-write `dist/wrangler.json`. 2. Read derived keys from `dist/wrangler.json` after `bun run build`. 3. Commit migration files under `db/migrations/`; never edit an applied migration. 4. Keep the route's `CREATE TABLE IF NOT EXISTS` as a local-dev backstop matching the migration.