<?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>172201</bug_id>
          
          <creation_ts>2017-05-16 17:16:26 -0700</creation_ts>
          <short_desc>[macOS WK2] LayoutTest webaudio/silent-audio-interrupted-in-background.html is a flaky timeout on older OSes (El Capitan / Sierra)</short_desc>
          <delta_ts>2022-03-11 09:34:38 -0800</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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=173916</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=180510</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Lewis">jlewis3</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>jbedard</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1309398</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Lewis">jlewis3</who>
    <bug_when>2017-05-16 17:16:26 -0700</bug_when>
    <thetext>The test webaudio/silent-audio-interrupted-in-background.html is a flaky timeout on macOS wk2.

The test was last edited in r214721
https://trac.webkit.org/changeset/214721/webkit

https://build.webkit.org/builders/Apple%20Sierra%20Release%20WK2%20(Tests)/builds/1525
https://build.webkit.org/results/Apple%20Sierra%20Release%20WK2%20(Tests)/r216951%20(1525)/results.html

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=webaudio%2Fsilent-audio-interrupted-in-background.html

diff:
--- /Volumes/Data/slave/sierra-release-tests-wk2/build/layout-test-results/webaudio/silent-audio-interrupted-in-background-expected.txt
+++ /Volumes/Data/slave/sierra-release-tests-wk2/build/layout-test-results/webaudio/silent-audio-interrupted-in-background-actual.txt
@@ -1,14 +1,5 @@
-Tests that silent WebAudio rendering gets interrupted in hidden pages.
+#PID UNRESPONSIVE - com.apple.WebKit.WebContent.Development (pid 95499)
+FAIL: Timed out waiting for notifyDone to be called
 
-On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
-
-
-PASS context.state became &apos;running&apos;
-* Setting page visibility to hidden
-PASS context.state became &apos;interrupted&apos;
-* Setting page visibility to visible
-PASS context.state became &apos;running&apos;
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
+#EOF
+#EOF</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1309402</commentid>
    <comment_count>1</comment_count>
    <who name="Matt Lewis">jlewis3</who>
    <bug_when>2017-05-16 17:24:37 -0700</bug_when>
    <thetext>I was able to reproduce the timeout on Sierra Release with:

run-webkit-tests webaudio/silent-audio-interrupted-in-background.html -f --iterations=100 --no-retry-failure -g

It is flaky so it did occasionally pass all test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1309447</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-05-16 19:59:42 -0700</bug_when>
    <thetext>+#PID UNRESPONSIVE - com.apple.WebKit.WebContent.Development (pid 95499)

I believe that this error means that the issue is caused by the preceding test. Perhaps both this and preceding test can cause this?

Definitely seems worth a deeper look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1309450</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-05-16 20:04:09 -0700</bug_when>
    <thetext>Sorry, I misread. &quot;Timed out waiting for notifyDone to be called&quot; is normally about the current test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1309451</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-05-16 20:07:12 -0700</bug_when>
    <thetext>This test is normally very fast, but times out fairly frequently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1309454</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2017-05-16 20:13:08 -0700</bug_when>
    <thetext>I will take a look soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1309457</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-05-16 20:16:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/32239545&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1314798</commentid>
    <comment_count>7</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2017-06-01 13:29:53 -0700</bug_when>
    <thetext>(In reply to Matt Lewis from comment #1)
&gt; I was able to reproduce the timeout on Sierra Release with:
&gt; 
&gt; run-webkit-tests webaudio/silent-audio-interrupted-in-background.html -f
&gt; --iterations=100 --no-retry-failure -g
&gt; 
&gt; It is flaky so it did occasionally pass all test.

I have tried this repeatedly:
Tools/Scripts/run-webkit-tests webaudio/silent-audio-interrupted-in-background.html -f --iterations=1000 --no-retry-failure -g

So far, no failures though :/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1314808</commentid>
    <comment_count>8</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2017-06-01 13:49:04 -0700</bug_when>
    <thetext>(In reply to Chris Dumez from comment #7)
&gt; (In reply to Matt Lewis from comment #1)
&gt; &gt; I was able to reproduce the timeout on Sierra Release with:
&gt; &gt; 
&gt; &gt; run-webkit-tests webaudio/silent-audio-interrupted-in-background.html -f
&gt; &gt; --iterations=100 --no-retry-failure -g
&gt; &gt; 
&gt; &gt; It is flaky so it did occasionally pass all test.
&gt; 
&gt; I have tried this repeatedly:
&gt; Tools/Scripts/run-webkit-tests
&gt; webaudio/silent-audio-interrupted-in-background.html -f --iterations=1000
&gt; --no-retry-failure -g
&gt; 
&gt; So far, no failures though :/

Looks like I have managed to reproduce with:
Tools/Scripts/run-webkit-tests webaudio/silent-audio-interrupted-in-background.html -f --iterations=1000 --no-retry-failure -g --child-processes=50</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1314831</commentid>
    <comment_count>9</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2017-06-01 14:43:24 -0700</bug_when>
    <thetext>This is somehow related to page visibility. The onvisibilitychange event handler on document sometimes does not get called after calling testRunner.setPageVisibility(&quot;hidden&quot;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1314881</commentid>
    <comment_count>10</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2017-06-01 16:33:05 -0700</bug_when>
    <thetext>(In reply to Chris Dumez from comment #9)
&gt; This is somehow related to page visibility. The onvisibilitychange event
&gt; handler on document sometimes does not get called after calling
&gt; testRunner.setPageVisibility(&quot;hidden&quot;).

When setting the page visibility to hidden, we end up calling:
void TestController::setHidden(bool hidden)
{
    NSWindow *window = [mainWebView()-&gt;platformView() window];
    if (!window)
        return;

    if (hidden)
        [window orderOut:nil];
    else
        [window makeKeyAndOrderFront:nil];
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1321970</commentid>
    <comment_count>11</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2017-06-22 11:06:06 -0700</bug_when>
    <thetext>Marked test as flaky in http://trac.webkit.org/projects/webkit/changeset/218706</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1573346</commentid>
    <comment_count>12</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2019-09-23 10:32:27 -0700</bug_when>
    <thetext>It continues to be a flaky timeout on new OSes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1850478</commentid>
    <comment_count>13</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2022-03-11 06:19:51 -0800</bug_when>
    <thetext>It is no longer flaky on bots</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1850536</commentid>
    <comment_count>14</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-03-11 09:34:38 -0800</bug_when>
    <thetext>Seems like flaky expectations still need to be removed?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>