| Summary: | LayoutTests follow system power saving settings by default, video tests will time out when the computer is in power saving mode | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alicia Boya García <aboya> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | ap, bugs-noreply, cdumez, jbedard, mcatanzaro, ryanhaddad, simon.fraser, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Alicia Boya García
2022-10-28 13:37:01 PDT
(In reply to Alicia Boya García from comment #0) > This is even written explicitly in Internals::resetToConsistentState(), who > calls page.setLowPowerModeEnabledOverrideForTesting(std::nullopt); -- The > nullopt means "follow the operating system". Why? I would argue that's not a > sane default. I agree. Let's just change it. > Also, tangentially: as of writing, Internals::resetToConsistentState() is > only called from InjectedBundlePage::resetAfterTest(). I could confirm this > indeed means it only gets called before the second test in the same worker. > This is risky, as any divergence between the values set in > Internals::resetToConsistentState() and those WebKit starts with will apply > differently to the first test in a given worker. This is a very risky > footgun, especially considering the many regular random flakes we have in > EWS. Why do we do this? Does it take so much CPU time to reset these values > that is worth it having flakes that depend solely on (largely random) worker > test dispatch? That's surely a mistake. We should fix that too. Good catch. |