<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>222825</bug_id>
          
          <creation_ts>2021-03-05 14:00:03 -0800</creation_ts>
          <short_desc>[Big Sur arm64] TestWebKitAPI.AppleLanguagesTest.UpdateAppleLanguages is timing out</short_desc>
          <delta_ts>2021-07-21 09:24:41 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=222619</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=222988</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=225429</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=221848</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>223037</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>ehutchison</cc>
    
    <cc>pvollan</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1736534</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2021-03-05 14:00:03 -0800</bug_when>
    <thetext>TestWebKitAPI.AppleLanguagesTest.UpdateAppleLanguages is timing out on the (new) Big Sur Apple Silicon bots

https://build.webkit.org/#/builders/103/builds/19/steps/11/logs/stdio

https://results.webkit.org/?suite=api-tests&amp;test=TestWebKitAPI.AppleLanguagesTest.UpdateAppleLanguages</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1736535</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2021-03-05 14:00:43 -0800</bug_when>
    <thetext>This test was recently added with https://trac.webkit.org/changeset/273904/webkit, it does not appear to be timing out on the intel-based bots.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1736536</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-03-05 14:01:34 -0800</bug_when>
    <thetext>&lt;rdar://problem/75110764&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1737931</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-03-09 20:54:18 -0800</bug_when>
    <thetext>I have temporarily disabled the test on Apple Silicon in https://commits.webkit.org/235113 because it was causing trouble on the bots.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1738120</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-03-10 10:38:45 -0800</bug_when>
    <thetext>ENABLE_CFPREFS_DIRECT_MODE seems to be enabled on Apple Silicon too so I don&apos;t see why the preference observer would not observe the AppleLanguages preference changing...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756688</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-05-04 15:30:02 -0700</bug_when>
    <thetext>Tentatively re-enabling the test in http://trac.webkit.org/r276985 to see if the test is still failing and what its output looks like.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756939</commentid>
    <comment_count>6</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-05-05 07:52:53 -0700</bug_when>
    <thetext>It is still failing, this time with this error:
```
    /Volumes/Data/worker/bigsur-release/build/Tools/TestWebKitAPI/Tests/WebKit/OverrideAppleLanguagesPreference.mm:131
    Value of: didChangeLanguage
      Actual: false
    Expected: true
    
TestWebKitAPI.AppleLanguagesTest.UpdateAppleLanguages Failed
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1757005</commentid>
    <comment_count>7</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-05-05 11:34:41 -0700</bug_when>
    <thetext>My bet is that this is a WebContent sandboxing issue. I see in our sandbox profile that some rules are CPU-specific. Sadly, I do not have a M1 to debug this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1757217</commentid>
    <comment_count>8</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-05-05 18:48:05 -0700</bug_when>
    <thetext>Note that the test is flaky on Apple Silicon rather than 100% failing. As a result, this seems to be a potential timing issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1757218</commentid>
    <comment_count>9</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-05-05 18:49:50 -0700</bug_when>
    <thetext>(In reply to Chris Dumez from comment #8)
&gt; Note that the test is flaky on Apple Silicon rather than 100% failing. As a
&gt; result, this seems to be a potential timing issue.

According to the flakiness dashboard, the test is also flaky on Intel. However, due to timing, the test is almost always passing on Intel and almost always failing on Apple Silicon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1757234</commentid>
    <comment_count>10</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2021-05-05 20:05:43 -0700</bug_when>
    <thetext>With some extra logging and Alexey&apos;s help, I was able to figure out that the WKPreferenceObserver does get constructed WKPreferenceObserver.preferenceDidChange does not get called when I update AppleLanguages.

Something seems unreliable with the WKPreferenceObserver. Now that I have found Bug 221848, maybe this is not too surprising. It seems many of the WKPreferenceObserver API tests are currently disabled due to flakiness.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1778441</commentid>
    <comment_count>11</comment_count>
    <who name="Eric Hutchison">ehutchison</who>
    <bug_when>2021-07-21 09:24:41 -0700</bug_when>
    <thetext>This test is now flaky failing on Intel almost always since 7/12/21, r279855.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>