websocketprocessbridge does not seem to launch properly on android testers
Categories
(Core :: WebRTC: Networking, defect, P2)
Tracking
()
People
(Reporter: bwc, Unassigned)
References
Details
See https://treeherder.mozilla.org/jobs?repo=try&revision=6d14c0efd3be42c9f52211dd57542d0a8cfebdc3
Note that we see the following, indicating that we have successfully started the process for the websocketprocessbridge:
[task 2021-09-29T16:30:11.127Z] 16:30:11 INFO - runtests.py | websocket/process bridge pid: 2795
But then, we see the following lines right after one another, much later on, when the tests have finished:
[task 2021-09-29T16:35:49.893Z] 16:35:49 INFO - websocket/process bridge listening on port 8191
[task 2021-09-29T16:35:50.055Z] 16:35:50 INFO - Stopping websocket/process bridge
This seems to imply that we are not reaching this logging until the kill signal is sent:
I think that means we're hanging somewhere in __main__.
| Reporter | ||
Comment 1•5 years ago
|
||
| Reporter | ||
Comment 2•5 years ago
•
|
||
Looks like the harness just batches up the output and dumps it all when killing the process. It appears that the bridge is being launched successfully after all. Maybe the port isn't actually reachable for some reason, or maybe websockets are busted still (see bug 1266217).
| Reporter | ||
Comment 3•5 years ago
|
||
With websocket logging:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=034cfd5c5f9fadc57b753982dfd73477af5d75eb
| Reporter | ||
Comment 4•5 years ago
|
||
Ok, maybe not. Seems like --env does not work for android mochitest or something? Any ideas here?
| Reporter | ||
Comment 5•5 years ago
|
||
I'm a doofus, and nsWebWocket is not a thing.
| Reporter | ||
Updated•5 years ago
|
| Reporter | ||
Comment 6•5 years ago
|
||
Try push without the typo in MOZ_LOG:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=938887f4c3108789473641579f2502a0cabd917c
| Reporter | ||
Comment 7•5 years ago
|
||
Ok, even without the typo I'm not seeing nsWebSocket logging. Maybe we're hitting some other error earlier? Here's a push with logging that should definitely show up, if MOZ_LOG is in fact working:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=89719c79d33347d6e941e879164eb66622a3a496
| Reporter | ||
Comment 8•5 years ago
|
||
Yeah, MOZ_LOG is definitely not working on android.
Any ideas on why this is? Is MOZ_LOG getting stomped somewhere?
Comment 9•5 years ago
|
||
possibly :gbrown knows the answer?
Comment 10•5 years ago
|
||
In comment 7, MOZ_LOG is set in the host environment, but not the device environment. You can see it is not in the environment passed to the test runner app:
[task 2021-09-30T22:32:04.832Z] 22:32:04 INFO - adb launch_application: am start -W -n org.mozilla.geckoview.test/org.mozilla.geckoview.test.TestRunnerActivity -a android.intent.action.MAIN --es env0 MOZ_CRASHREPORTER_NO_REPORT=1 --es env1 MOZ_CRASHREPORTER=1 --es env2 MOZ_CRASHREPORTER_SHUTDOWN=1 --es env3 MOZ_DISABLE_NONLOCAL_CONNECTIONS=1 --es env4 MOZ_IN_AUTOMATION=1 --es env5 R_LOG_LEVEL=6 --es env6 R_LOG_DESTINATION=stderr --es env7 R_LOG_VERBOSE=1 --es env8 XPCOM_DEBUG_BREAK=stack --es env9 MOZ_WEBRENDER=1 --es env10 MOZ_ACCELERATED=1 --es env11 MOZ_UPLOAD_DIR=/data/local/tmp/test_root/mozlog --es env12 MOZ_HIDE_RESULTS_TABLE=1 --es arg0 -no-remote --es arg1 -profile --es arg2 /data/local/tmp/test_root/profile/ --ez use_multiprocess True -d 'http://mochi.test:8888/tests/dom/media/webrtc/tests/mochitests?autorun=1&closeWhenDone=1&logFile=%2Fdata%2Flocal%2Ftmp%2Ftest_root%2Flogs%2Fmochitest.log&fileLevel=INFO&consoleLevel=INFO&hideResultsTable=1&manifestFile=tests.json&dumpOutputDirectory=%2Fdata%2Flocal%2Ftmp%2Ftest_root'
To set MOZ_LOG on device, use something like
or set it more directly in
| Reporter | ||
Comment 11•5 years ago
|
||
| Reporter | ||
Comment 12•5 years ago
|
||
| Reporter | ||
Comment 13•5 years ago
|
||
So I tried both places in comment 10, but no change.
Comment 14•5 years ago
|
||
I see nsWebSocket logging in both comment 11 and 12: On treeherder, select your M(mda) task, select the Artifacts tab, and open mozLogs.zip. afaik, that's the only place we can display MOZ_LOGS on android (not the main test log, unfortunately).
Updated•4 years ago
|
Description
•