Skip to content

Commit 7f93bd3

Browse files
m-messerclaude
andcommitted
Switch deploy target to GCP Cloud Run gen2
AWS Lambda cannot run shimmy's nsjail sandbox: locked seccomp profile, no CAP_SYS_ADMIN, no privileged mode, so SANDBOX_ENABLED=true makes the worker fail to start (verified on staging -- every request 500s with a broken-pipe from the dead worker). Cloud Run gen2 gives full-Linux compatibility, so nsjail can create the user namespace it needs. Set build-platforms: "gcp" for both staging and production. The shared gcp_deploy.yml deploys with --execution-environment gen2 (its new default). Follow-ups before this is live: merge + push the workflows-repo change; set S3_BUCKET_URI and AWS_* on the Cloud Run service (no execution role to inject them); repoint the platform at the *.run.app URL; re-probe nsjail on the deployed gen2 service. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RYbUtnGroazAj1fNjXQmV7
1 parent bd2e8c8 commit 7f93bd3

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/production-deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
uses: lambda-feedback/evaluation-function-workflows/.github/workflows/deploy.yml@main
4242
with:
4343
template-repository-name: 'lambda-feedback/evaluation-function-boilerplate-python'
44+
# gcp -> Cloud Run gen2 (see gcp_deploy.yml). gen2 gives full-Linux
45+
# compatibility so shimmy's nsjail sandbox (SANDBOX_ENABLED=true in the
46+
# Dockerfile) can create user namespaces -- AWS Lambda cannot.
47+
build-platforms: "gcp"
4448
environment: "production"
4549
version-bump: ${{ inputs.version-bump }}
4650
branch: ${{ inputs.branch }}

.github/workflows/staging-deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ jobs:
5959
uses: lambda-feedback/evaluation-function-workflows/.github/workflows/deploy.yml@main
6060
with:
6161
template-repository-name: "lambda-feedback/evaluation-function-boilerplate-python"
62-
build-platforms: "aws"
62+
# gcp -> Cloud Run gen2 (see gcp_deploy.yml). gen2 gives full-Linux
63+
# compatibility so shimmy's nsjail sandbox (SANDBOX_ENABLED=true in the
64+
# Dockerfile) can create user namespaces -- AWS Lambda cannot.
65+
build-platforms: "gcp"
6366
environment: "staging"
6467
lfs: false
6568
secrets:

0 commit comments

Comments
 (0)