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
commented
Oct 27, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
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]>
❌ 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
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Oct 29, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
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.
|