hyperframes icon indicating copy to clipboard operation
hyperframes copied to clipboard

render --docker: the first image build gets killed after 10 minutes and the error says to check Docker is running

Open diegolopezrm opened this issue 1 month ago • 1 comments

Describe the bug

The first time you run render --docker, the CLI builds the renderer image with a 10 minute timeout (timeout: 600_000 on the docker build call in packages/cli/src/commands/render.ts). If the build takes longer, it gets killed and you see spawnSync docker ETIMEDOUT plus "Check Docker is running: docker info". Docker was running fine. The build was just slow.

Minimal reproduction

Any project, no cached hyperframes-renderer image, Docker VM with 2 CPUs (colima's default):

npx [email protected] render . --docker --output out.mp4

Steps to reproduce

  1. Remove any hyperframes-renderer:* image.
  2. Run the command above.
  3. Here one first build went past 10 minutes and got killed during npm install -g hyperframes (step 10/13). Another one, for 0.8.143, took about 8 minutes, so it depends on the machine and the connection.

Expected behavior

The build finishes, or the error says it timed out and that running the command again picks up from the cached layers.

Actual behavior

✗  Docker image build failed
   Failed to build Docker image: spawnSync docker ETIMEDOUT
   Check Docker is running: docker info

Running the same docker build by hand with no timeout finishes, and after that render --docker works.

Environment

hyperframes 0.8.78 and 0.8.143, macOS 26 on an M4 Pro, colima with 2 CPUs and 4 GiB, Docker 29.4.0.

Additional context

Either dropping the timeout for the build (the output already streams unless --quiet) or catching ETIMEDOUT with a message that says what happened would fix it. Happy to send a PR for whichever you prefer.

diegolopezrm avatar Oct 09 '26 22:10 diegolopezrm

I'll take this one. I'll catch the timeout and say what happened, and that running it again continues from the cached layers. Leaving the 10 minute limit as is unless you'd rather raise it.

diegolopezrm avatar Oct 10 '26 00:10 diegolopezrm