<?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>209989</bug_id>
          
          <creation_ts>2020-04-03 15:03:27 -0700</creation_ts>
          <short_desc>[ macOS debug ] REGRESSION (r259463): http/tests/media/clearkey/collect-webkit-media-session.html is failing</short_desc>
          <delta_ts>2020-05-07 13:04:54 -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>Media</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>
          
          
          <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="Jacob Uphoff">jacob_uphoff</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>Lawrence.j</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1637537</commentid>
    <comment_count>0</comment_count>
    <who name="Jacob Uphoff">jacob_uphoff</who>
    <bug_when>2020-04-03 15:03:27 -0700</bug_when>
    <thetext>http/tests/media/clearkey/collect-webkit-media-session.html

This test is failing on Mojave debug since around commit r259463

History:

https://results.webkit.org/?suite=layout-tests&amp;test=http%2Ftests%2Fmedia%2Fclearkey%2Fcollect-webkit-media-session.html&amp;style=debug

Diff:

--- /Volumes/Data/slave/mojave-debug-tests-wk2/build/layout-test-results/http/tests/media/clearkey/collect-webkit-media-session-expected.txt
+++ /Volumes/Data/slave/mojave-debug-tests-wk2/build/layout-test-results/http/tests/media/clearkey/collect-webkit-media-session-actual.txt
@@ -1,4 +1,4 @@
 
 
-PASS Ensure that the frame&apos;s document get collected after being stopped while doing some webkit media session calls 
+FAIL Ensure that the frame&apos;s document get collected after being stopped while doing some webkit media session calls promise_test: Unhandled rejection with value: &quot;Test failed&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1637539</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-04-03 15:04:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/61277230&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1637540</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-04-03 15:05:05 -0700</bug_when>
    <thetext>&lt;rdar://problem/61277243&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1637548</commentid>
    <comment_count>3</comment_count>
    <who name="Jacob Uphoff">jacob_uphoff</who>
    <bug_when>2020-04-03 15:41:25 -0700</bug_when>
    <thetext>Looks like http/tests/media/media-stream/collect-media-devices.https.html is also failing from the same commit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1637570</commentid>
    <comment_count>4</comment_count>
    <who name="Jason Lawrence">Lawrence.j</who>
    <bug_when>2020-04-03 17:02:33 -0700</bug_when>
    <thetext>I can reproduce this issue on r259463, but I cannot reproduce this on r259460.
This is the command that I used:
run-webkit-tests --force -f --iterations  90 --exit-after-n-failures 3 -g --debug http/tests/media/clearkey/collect-webkit-media-session.html

r259460
[4/90] http/tests/media/clearkey/collect-webkit-media-session.html failed unexpectedly (text diff)
[5/90] http/tests/media/clearkey/collect-webkit-media-session.html failed unexpectedly (text diff)
[6/90] http/tests/media/clearkey/collect-webkit-media-session.html failed unexpectedly (text diff)
Exiting early after 3 failures. 3 tests run.


0 tests ran as expected, 3 didn&apos;t (87 didn&apos;t run):

r259460:
All 90 tests ran as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1637670</commentid>
    <comment_count>5</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-04-04 05:41:14 -0700</bug_when>
    <thetext>This is slowing down mac-wk1-debug ews queue, and also causing false positives.

e.g.:
https://ews-build.webkit.org/#/builders/32/builds/6715
https://ews-build.webkit.org/#/builders/32/builds/6714
https://ews-build.webkit.org/#/builders/32/builds/6708

We should consider updating the test expectations if we can&apos;t get the root-caused fixed soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1637727</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-04-04 12:51:12 -0700</bug_when>
    <thetext>&gt; I can reproduce this issue on r259463, but I cannot reproduce this on r259460.

Since the other changes in between are for IndexedDB, seems almost certain that it&apos;s r259463.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1638096</commentid>
    <comment_count>7</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2020-04-06 08:23:13 -0700</bug_when>
    <thetext>This is testing &quot;something gets collected by GC&quot;. But the nature of conservative GC makes is super flaky.
Any memory layout / register allocation / JIT change can easily break this assumption.

The test is not always failing. This implies that we are observing that document is collected in most cases. But sometimes, it is not.
This sounds super likely that conservative GC finds it and keeps it held, and this behavior change is just introduced because the change in JSC causes memory layout / register allocation / JIT changes, which allows conservative GC to find it sometimes.

The most possible fix would be just adjusting the test to make it more stable.
I&apos;ll look it later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1638102</commentid>
    <comment_count>8</comment_count>
    <who name="Jacob Uphoff">jacob_uphoff</who>
    <bug_when>2020-04-06 08:31:00 -0700</bug_when>
    <thetext>Set expectations here: https://trac.webkit.org/changeset/259570/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1638302</commentid>
    <comment_count>9</comment_count>
    <who name="Jason Lawrence">Lawrence.j</who>
    <bug_when>2020-04-06 14:07:19 -0700</bug_when>
    <thetext>*** Bug 210073 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1650314</commentid>
    <comment_count>10</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2020-05-07 13:04:54 -0700</bug_when>
    <thetext>Removed flaky expectations in r261329 since these test are consistently passing now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>