From 29ba399da65f564c369099a1dd1e506c6ec51bbc Mon Sep 17 00:00:00 2001 From: Sigmund Cherem Date: Fri, 16 Feb 2024 20:46:20 +0000 Subject: [PATCH 1/2] Add extra flags to disabling throttling behavior. These flags [were added in our internal SDK test infrastructure][1] and they helped reduce flaky timeout behavior in the past. It's very likely that these and the `--disable-background-timer-throttling` flag that's already here have some overlap, though. I have not been able to find much documentation about whether they do overlap, so I was inclined to try to add these by default and assess the effect in our CI. [1]: https://dart-review.googlesource.com/c/sdk/+/325780/2/pkg/test_runner/lib/src/browser_controller.dart --- lib/src/chrome.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/chrome.dart b/lib/src/chrome.dart index 7680765..b8524bb 100644 --- a/lib/src/chrome.dart +++ b/lib/src/chrome.dart @@ -102,6 +102,8 @@ class Chrome { '--remote-debugging-port=$port', // When the DevTools has focus we don't want to slow down the application. '--disable-background-timer-throttling', + '--disable-blink-features=TimerThrottlingForBackgroundTabs', + '--disable-features=IntensiveWakeUpThrottling', // Since we are using a temp profile, disable features that slow the // Chrome launch. if (!signIn) '--disable-extensions', From d4caef817efd6e911e6eafcc842568c36337cce5 Mon Sep 17 00:00:00 2001 From: Sigmund Cherem Date: Fri, 16 Feb 2024 21:08:36 +0000 Subject: [PATCH 2/2] ... add CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d3dd43..5fe8780 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Require Dart 3.0 - Log errors from chrome - Allow tests to detect headless-only environment (for CI). +- Add extra flags that may help disable additional throttling in background tabs ## 1.1.1