App image build for ARM can hang under emulation until the 60-minute limit

Open
#276 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
docker, javascript, python

Research direction

Start by reading the app image build workflow and the app's JavaScript bundling step; the issue does not name their files. Compare the regular and ARM build paths to see where bundling runs under emulation, then check the build's timeout and retry settings. Done when bundling is reused for ARM or hangs fail fast and retry, and the job limit reflects the normal 4-minute run.

Written by the indexing model from the issue text.

Description

ci

On the merges of #264 and #266 the Image · app job on main sat for 46 minutes with no output and had to be cancelled (runs 47280662017 and 47280705032). The regular (amd64) build finished in seconds; the ARM (arm64, emulated) build stopped during the app's JavaScript bundling step, right after "Building server entrypoints...". A re-run of the same commit with no change passed in 4 minutes, as did every earlier merge that day. Pull-request builds are not affected because they build for one processor type only.

Cost when it happens: an hour of runner time per run, and no app image published for that commit until someone re-runs it.

Fix directions:

  • Bundle the JavaScript once in the regular build and reuse it for the ARM image (the bundled output does not depend on the processor), so the bundler never runs under emulation.
  • Or give the build step a much shorter timeout and an automatic retry.

Done when: the app's bundling step no longer runs under emulation (or a hang fails fast and retries), and the job's time limit reflects its normal 4-minute duration.

🤖 Generated with Claude Code

Dominant language
Python
Stars
0
Forks
2
Avg merge
8h 26m
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TechTraverse/stac-higher

All issues in TechTraverse/stac-higher

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.