[go: up one dir, main page]

Page MenuHomePhabricator

Verify running Firefox with and without WebPageReplay
Open, Needs TriagePublic

Description

Through the years we had different problems running Firefox on Android phones. Let's verify that it works fine with the latest release so we can prepare running the tests.

I've had problem being able to get X amount of runs on Firefox to actually work. There's a upstream bug for what I've seen: Ihttps://github.com/mozilla/geckodriver/issues/2157

Event Timeline

Running from the Raspberry Pi, running 11 runs, one or two of the runs get ERROR: WebDriverError: Failed to decode response from marionette. To get some more useful out of that I need to turn on the Geckodriver log.

The full trace log looks like this:

1706540104572	webdriver::server	DEBUG	Teardown session
1706540104572	geckodriver::android	DEBUG	Force stopping the Android package: org.mozilla.firefox
1706540104572	mozdevice	DEBUG	Force stopping Android package: org.mozilla.firefox
1706540104572	mozdevice	TRACE	execute_host_command: >> "host:transport:R58N604Y0DW"
1706540104572	mozdevice	TRACE	execute_host_command: << []
1706540104572	mozdevice	TRACE	execute_host_command: >> "shell:su -c 'am force-stop org.mozilla.firefox'"
1706540104793	mozdevice	TRACE	execute_host_command: << ""
1706540104793	mozdevice	TRACE	execute_host_command: >> "host:transport:R58N604Y0DW"
1706540104793	mozdevice	TRACE	execute_host_command: << []
1706540104793	mozdevice	TRACE	execute_host_command: >> "shell:su -c 'am clear-debug-app org.mozilla.firefox'"
1706540104927	mozdevice	TRACE	execute_host_command: << ""
1706540104927	geckodriver::android	DEBUG	Disabled reading from configuration file
1706540104927	mozdevice	DEBUG	Deleting /data/local/tmp/org.mozilla.firefox-geckoview-config.yaml
1706540104928	mozdevice	TRACE	execute_host_command: >> "host:transport:R58N604Y0DW"
1706540104928	mozdevice	TRACE	execute_host_command: << []
1706540104928	mozdevice	TRACE	execute_host_command: >> "shell:su -c 'rm -rf /data/local/tmp/org.mozilla.firefox-geckoview-config.yaml'"
1706540105039	mozdevice	TRACE	execute_host_command: << ""
1706540105039	geckodriver::android	DEBUG	Deleted GeckoView configuration file
1706540105039	mozdevice	DEBUG	Deleting /sdcard/Android/data/org.mozilla.firefox/files/test_root
1706540105040	mozdevice	TRACE	execute_host_command: >> "host:transport:R58N604Y0DW"
1706540105040	mozdevice	TRACE	execute_host_command: << []
1706540105040	mozdevice	TRACE	execute_host_command: >> "shell:su -c 'rm -rf /sdcard/Android/data/org.mozilla.firefox/files/test_root'"
1706540105182	mozdevice	TRACE	execute_host_command: << ""
1706540105182	geckodriver::android	DEBUG	Deleted test root folder: /sdcard/Android/data/org.mozilla.firefox/files/test_root
1706540105183	mozdevice	TRACE	execute_host_command: >> "host:transport:R58N604Y0DW"
1706540105183	mozdevice	TRACE	execute_host_command: << []
1706540105183	mozdevice	TRACE	execute_host_command: >> "host-serial:R58N604Y0DW:killforward:tcp:37375"
1706540105183	mozdevice	TRACE	execute_host_command: << ""
1706540105183	geckodriver::android	DEBUG	Marionette port forward (37375 -> 2829) stopped
1706540105183	mozdevice	TRACE	execute_host_command: >> "host:transport:R58N604Y0DW"
1706540105184	mozdevice	TRACE	execute_host_command: << []
1706540105184	mozdevice	TRACE	execute_host_command: >> "host-serial:R58N604Y0DW:killforward:tcp:9222"
1706540105184	mozdevice	TRACE	execute_host_command: << ""
1706540105184	geckodriver::android	DEBUG	WebSocket port forward (9222 -> 9222) stopped
1706540105184	webdriver::server	DEBUG	<- 500 Internal Server Error {"value":{"error":"unknown error","message":"Failed to decode response from marionette","stacktrace":""}}

I still get this error:

[2024-08-30 09:45:53] ERROR: WebDriverError: Failed to decode response from marionette

This also is reproducible using my desktop computer running tests on the same phone.

I reported this earlier this year in: https://github.com/mozilla/geckodriver/issues/2157 - I'll ping that issue and see if there's another way than rebuild Geckodriver and add extra travelogs that can helps them.

Running with Moto G5 I don't get any failures at all, this happens only with Samsung A51.