mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 11:07:10 +00:00
chore(sidecar): silence absorbed view-hierarchy poll noise in Android runs
The driver logs an ERROR for every on-device view-hierarchy fetch that the device-side server cancels or times out while the UI animates. The stability poll fetches the hierarchy on a sub-second cadence and swallows those throws to keep polling, so each line is advisory with no effect on the run. Real failures still reach the runner as gRPC status errors, so nothing is lost.
This commit is contained in:
1 parent
386cb12d69
commit
0693422567
1 file changed
+9
-2
@@ -39,13 +39,20 @@ class SidecarServer(
|
|||||||
// on expected paths: CommandLineUtils logs every nonzero simctl exit even
|
// on expected paths: CommandLineUtils logs every nonzero simctl exit even
|
||||||
// when the caller absorbs it (terminating an app that is not running), and
|
// when the caller absorbs it (terminating an app that is not running), and
|
||||||
// XCTestDriverClient logs every non-2xx response including gesture
|
// XCTestDriverClient logs every non-2xx response including gesture
|
||||||
// collisions the double-tap path retries. Real failures still reach the
|
// collisions the double-tap path retries. AndroidDriver logs an ERROR for
|
||||||
// runner as gRPC status errors, so nothing is lost from run output.
|
// every view-hierarchy fetch the on-device server cancels or times out, which
|
||||||
|
// happens routinely while the UI is animating; stabilitySnapshot polls the
|
||||||
|
// hierarchy on a sub-second cadence and swallows those throws to keep polling,
|
||||||
|
// so each absorbed failure produces a log line with no effect on the run.
|
||||||
|
// Real failures still reach the runner as gRPC status errors, so nothing is
|
||||||
|
// lost from run output.
|
||||||
private fun quietExpectedDriverNoise() {
|
private fun quietExpectedDriverNoise() {
|
||||||
org.apache.logging.log4j.core.config.Configurator.setLevel(
|
org.apache.logging.log4j.core.config.Configurator.setLevel(
|
||||||
"util.CommandLineUtils", org.apache.logging.log4j.Level.OFF)
|
"util.CommandLineUtils", org.apache.logging.log4j.Level.OFF)
|
||||||
org.apache.logging.log4j.core.config.Configurator.setLevel(
|
org.apache.logging.log4j.core.config.Configurator.setLevel(
|
||||||
"xcuitest.XCTestDriverClient", org.apache.logging.log4j.Level.OFF)
|
"xcuitest.XCTestDriverClient", org.apache.logging.log4j.Level.OFF)
|
||||||
|
org.apache.logging.log4j.core.config.Configurator.setLevel(
|
||||||
|
"maestro.drivers.AndroidDriver", org.apache.logging.log4j.Level.OFF)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun main(arguments: Array<String>) {
|
fun main(arguments: Array<String>) {
|
||||||
|
|||||||
Reference in new issue
Block a user