Headless run on buildjet runner #4414
-
Hey guys! It seems as if nobody else had this problem with detox headless runs. Tried the search in this repo, in google and with perplexity.ai/github copilot chat. Would greatly appreciate if you have any suggestions. Trying to run detox tests on CI headlessly. Locally on macOS the test suite via same instructions works. Using github CI buildjet runners Using this emulator runner the runner I do run a spawned nodejs websocket api mocking process via Error excerpt: I tried to bring app to forefront via adb, doesn't seem to be the issue. Relevant logs
Here's the step from github actions
Full logs(if you haven't found something in excerpt above)``` /usr/bin/sh -c detox test --configuration android.emu.release -l verbose --headless --record-logs all 17:18:06.255 detox[7725] i ws-server Detox server listening on localhost:46289... 17:18:06.265 detox[7725] B lifecycle jest --config ./e2e/jest.config.ts 17:18:09.451 detox[7737] i user Starting mock server... origin: at e2e/testSetup/globalSetup.ts:7:13 17:18:09.644 detox[7737] i user Mocking server msg: yarn run v1.22.19 $ tsx watch -r dotenv/config e2e/apisMockingServer/mockServer.ts origin: at e2e/testSetup/globalSetup.ts:10:17 17:18:09.850 detox[7725] i device:DEVICE_LOOKUP Found a matching & free device emulator-5554 origin: at e2e/testSetup/globalSetup.ts:10:17 17:18:52.187 detox[7737] i child-process:EXEC_CMD "/usr/local/lib/android/sdk/platform-tools/adb" -s emulator-5554 shell "date +"%m-%d %T.000"" 17:18:52.219 detox[7737] i child-process:EXEC_CMD "/usr/local/lib/android/sdk/platform-tools/adb" -s emulator-5554 pull "/sdcard/17189766_1.log" "artifacts/android.emu.release.2024-03-19 17-18-06Z/✗ Test Welcome Screen Should have welcome screen with secret hash override/device.log" ● Test Welcome Screen › Should have welcome screen with secret hash override
Test Suites: 2 failed, 2 total
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Have you tried all possible gpuMode values? https://wix.github.io/Detox/docs/config/devices/#properties |
Beta Was this translation helpful? Give feedback.
-
Okay, it seems like the problem was in using an incorrect |
Beta Was this translation helpful? Give feedback.
Okay, it seems like the problem was in using an incorrect
hardware profile
, which wasn't accommodated to CI.When omitting setting profile directly, it kinda works. Now need to figure out how to configure the emulator for an unusual device.