Skip to content

CI: Deploy Call Kent Audio Worker fails — wrangler-action@v3 + Cloudflare Containers issue #757

@kody-bot

Description

@kody-bot

Summary

CI deployment failed after merging PR #755 (Add Husky and lint-staged). See: https://github.com/kentcdodds/kentcdodds.com/actions/runs/24045455017

Failing job

⚙️ Deploy Call Kent Audio Worker — all other jobs passed.

Failing step: ☁️ Deploy via Wrangler (step 8, cloudflare/wrangler-action@v3)
Error annotation: The process '/opt/hostedtoolcache/node/24.14.1/x64/bin/npx' failed with exit code 1
Deprecation warning: cloudflare/wrangler-action@v3 uses Node.js 20 which is deprecated on the current GitHub Actions runner (Node 24)

Key context

  • The audio worker's wrangler.jsonc uses Cloudflare Containers (containers + sandbox.dockerfile + @cloudflare/sandbox). This may require Docker to be set up in the CI environment, or a newer version of wrangler-action that supports container deployment
  • The oauth and search workers use the same wrangler-action@v3 and passed — they do NOT use containers
  • PR Add Husky and lint-staged quality gates #755 changed this workflow's install step: npm ci --workspace=call-kent-audio-workernpm ci --workspace=call-kent-audio-worker --include-workspace-root
  • The previous successful run (#24045010887) had the same --include-workspace-root change and succeeded

Likely cause

The combination of wrangler-action@v3 (Node 20) + Cloudflare Containers requiring Docker may be the issue. The wrangler-action may need upgrading, or the container image build needs Docker setup in the workflow.

Alternatively, the updated package-lock.json (from adding husky/lint-staged/prettier) may have bumped the resolved wrangler version to one incompatible with Node 20.

Investigation steps

  1. Check what the actual wrangler error is — re-run the failing workflow and capture the full output
  2. Try upgrading cloudflare/wrangler-action@v3@v4 in .github/workflows/deploy-call-kent-audio-worker.yml
  3. Check if the workflow needs docker/setup-buildx-action or similar for container image builds
  4. Check the wrangler version resolved in services/call-kent-audio-worker/node_modules/.package-lock.json to see if it changed between the last successful and current run

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions