GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — build(docker): arm64 image alike the amd64 one, fix the build of develop by azarouski · Pull Request #1063 · zebrunner/stf

Conversation

@azarouski

@azarouski azarouski commented Oct 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Problem

The STF image is published for linux/amd64 only. On Apple Silicon Macs (mcloud iOS simulators) Docker Desktop runs it under Rosetta, and there stf ios-device hangs forever right after device.name: sim: any child_process spawn (go-ios of sendLockdownInfo) from a node process that already has a ZeroMQ socket deadlocks in Rosetta (main thread in futex_do_wait, every V8/libuv thread in rt_mutex_schedule, SIGTERM ignored). The device never reaches the server: no Connected to WdaMjpeg, no RethinkDB connection, the queued InitializeIosDeviceState is never sent. A 5-line script (zmq.socket('push') + execFile) reproduces it every time, never without the socket.

The arm64 branch of the Dockerfile builds, but its image differed from the amd64 one, and develop no longer builds from scratch at all.

Changes

  • package.json: declare @types/debug. The code imports debug, the types came only transitively from @node-saml/node-saml 5.1; 5.2.0 dropped them and package-lock.json is not used by the image, so npm pack failed with TS7016 on both platforms.
  • Dockerfile, both platforms alike:
    • stf has the uid 998 (the one of the current amd64 images), the unused stf-build user is removed;
    • /app belongs to root (STF writes only into /tmp);
    • arm64: openjdk-8-jdk for bundletool (.aab installs), no npm install --save-dev pnpm (left @pnpm and a modified package.json in the image) and no musl libc symlink (made npm pick musl binaries): zeromq 6.8 ships its glibc addon for arm64;
    • amd64: the npm/node-gyp caches (~720 MB in /home) and the build tools (wget python3 build-essential cmake) are removed, as on arm64.

Testing

  • docker buildx build --platform linux/amd64,linux/arm64: both build; /app trees identical; stf --help, java -jar bundletool.jar version, plistutil, gm work; uid 998; zeromq loads its glibc addon on both.
  • zmq socket + 20 spawns: OK natively on arm64 (Mac) and amd64 (Linux build server); hangs on amd64 under Rosetta, which is the bug.
  • amd64 image: 1.23 GB vs 2.19 GB of stf:3.1-beta5-914838ec (426 MB vs 778 MB compressed).
  • Mac mini (iOS simulator ACFFD751-...): an arm64 mcloud-device built on this image replaced the hanging container; the unit connects to WDA MJPEG and the device is present, ready, ONLINE in RethinkDB.

The mcloud-device image needs the same platform as its base: zebrunner/mcloud-device#217.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
azarouski and others added 3 commits October 26, 2026 18:34
@azarouski
build(docker): install openjdk-8 in the arm64 image for bundletool
3c40b92
Co-authored-by: Copilot <[email protected]>
@azarouski
build: declare @types/debug, node-saml 5.2 no longer brings it
19c96f2
Co-authored-by: Copilot <[email protected]>
@azarouski
build(docker): align the amd64 and arm64 images
87acbee
Same uid 998 for stf, /app owned by root, build tools and npm caches removed
on amd64 too, no musl libc nor pnpm on arm64 (zeromq ships a glibc addon).

Co-authored-by: Copilot <[email protected]>
@azarouski azarouski mentioned this pull request Oct 27, 2026
feat(docker): build go-ios and websocat for the platform of the image zebrunner/mcloud-device#217
Merged
@github-actions

github-actions Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

❌ STF CI report

5 failing  ·  6 test tiers (6 pass / 0 fail / 0 skip)  ·  10 Android versions (10 with a usable device in STF)  ·  6 iOS versions (1 passing)

Test tiers

Tier Result
✅ Build (npm + webpack) deps cache miss
✅ Lint (eslint + jsonlint + translations + workflow shell) lib/, res/ and root JS + JSON, translation catalogs, and every workflow run: block
✅ Unit tests (mocha) lib/util, lib/wire and lib/db specs
✅ Component tests (vitest + React) 104 specs, 0 failed, 0 errored
✅ Integration + device-less E2E (stf local + RethinkDB + Playwright + SeaweedFS) stf local success, fake devices success, web UI suite success, storage success
✅ Docker Compose + AVD + Playwright (Android 16, API 36) 21 Playwright tests, image success, Compose/AVD success, teardown success

Android device matrix

Android API Image Boot In STF Usable SIM IDs Screen Touch Shell UI E2E Teardown
✅ 12 31 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
✅ 12L 32 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
✅ 13 33 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
✅ 14 34 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
✅ 15 35 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
✅ 16 36 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
✅ 16.1 36.1 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
✅ 17 37.0 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
✅ 17 37.1 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
✅ 17 37.2 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅

Image = a system image is published for that API and arch. Boot = emulator reached sys.boot_completed and answers adb. In STF = the device registered with the STF provider. Usable = STF offered it as Use and handed over control. SIM IDs = imei, imsi, iccid and phoneNumber landed on the device document, which from API 23 up needs an STFService build whose agent answers --telephony (a leg whose emulator reports no usable SIM records a pass, because there is nothing to read). Screen = minicap frames reached the browser canvas and kept changing. Touch = a browser tap and swipe showed up in getevent on the device, at the coordinates they were aimed at: the tap within 5% of the centre of the touch axes, the swipe descending monotonically from 0.75 to 0.25 (the emulator runs with adb root, which minitouch needs to open /dev/input). Shell = the dashboard shell widget ran a command on it. UI E2E = the rest of the Playwright web UI suite. Teardown = the emulator action shut the AVD down and exited on its own.

iOS simulator matrix

iOS Runtime Xcode Simulator WDA Session Appium kept Size Orientation Home Touch Screenshot Settings Clipboard URL Stream Stable
❌ 15 15.5 16.4 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ❌ ➖ ✅ ✅
❌ 16 16.4 16.4 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ❌ ➖ ✅ ✅
❌ 17 17.5 16.4 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ❌ ❌ ✅ ✅ ✅
❌ 18 18.6 16.4 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ❌ ✅ ✅ ✅
✅ 26 26.5 26.6 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
❌ 27 27.1 27.1 ✅ ❌ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖ ➖

WebDriverAgent on an iPhone simulator against the WDA client of the ios-device unit (test/zebrunner-ios). A red column: Simulator, the simulator did not boot · WDA, WebDriverAgent did not start · Session, no WDA session · Appium kept, the session of an Appium test was not kept · Size, wrong screen size · Orientation, no orientation or battery · Home, the home button did not work · Touch, tap or swipe failed · Screenshot, no screenshot · Settings, Settings did not open or the app was lost · Clipboard, the pasteboard was not written or read · URL, Safari did not open the address · Stream, no MJPEG frame · Stable, the unit would have stopped

Failures

  • iOS 15: the pasteboard was not written or read: expected 'com.facebook.WebDriverAgentRunner.xct…' to equal 'com.apple.springboard'
  • iOS 16: the pasteboard was not written or read: expected 'com.facebook.WebDriverAgentRunner.xct…' to equal 'com.apple.springboard'
  • iOS 17: Settings did not open or the app was lost: expected 'Error: ESOCKETTIMEDOUT' to equal 'Settings has no Wi-Fi item'
  • iOS 18: the pasteboard was not written or read: expected 'com.facebook.WebDriverAgentRunner.xct…' to equal 'com.apple.springboard'
  • iOS 27: WebDriverAgent did not start

🔁 Retried once after failing: Android 17 (API 37.1, now pass).

Logs, screenshots, logcat and Playwright traces are attached to the run as artifacts · full run · commit 5bf3164

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@azarouski
azarouski merged commit f0d0465 into develop Oct 27, 2026
23 of 29 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@azarouski
azarouski deleted the build/multi-arch-image branch October 27, 2026 10:18
This was referenced Oct 29, 2026
build(docker): the STF 3.1 base image of mcloud zebrunner/mcloud-device#221
Merged
fix(mac): mcloud-device on the platform of the Mac zebrunner/mcloud-agent#445
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@azarouski
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.