<?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>261356</bug_id>
          
          <creation_ts>2023-09-08 14:58:14 -0700</creation_ts>
          <short_desc>[ macOS wk2 debug ] fast/mediastream/device-change-event-2.html is a flaky failure.</short_desc>
          <delta_ts>2023-11-14 02:14:25 -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>WebRTC</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=188924</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="Ben Schwartz">ben_schwartz</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1976527</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Schwartz">ben_schwartz</who>
    <bug_when>2023-09-08 14:58:14 -0700</bug_when>
    <thetext>fast/mediastream/device-change-event-2.html

This test is a flaky failure on debug builds of macOS wk2 (mostly on x86_64 with occasional failures on arm64).

HISTORY:

https://results.webkit.org/?suite=layout-tests&amp;test=fast%2Fmediastream%2Fdevice-change-event-2.html

TEXT DIFF (though the test seems to fail with different messages each time):

 CONSOLE MESSAGE: A MediaStreamTrack ended due to a capture failure
 CONSOLE MESSAGE: A MediaStreamTrack ended due to a capture failure
+CONSOLE MESSAGE: Error: assert_true: devicechange should only fire when the document is focused and active expected true got false
+
+Harness Error (FAIL), message = Error: assert_true: devicechange should only fire when the document is focused and active expected true got false
 
 PASS &apos;devicechange&apos; event fired when device list changes
 PASS &apos;devicechange&apos; events fired quickly are coalesced

DIFF URL:

https://build.webkit.org/results/Apple-Ventura-Debug-WK2-Tests/267790@main%20(2946)/fast/mediastream/device-change-event-2-pretty-diff.html

REPRODUCIBILITY:

I was able to reproduce this issue constantly on macOS Ventura (13.5, 22G74/x86_64) WK2 debug at 267085@main using the following command:

run-webkit-tests --clobber-old-results --debug --verbose --iterations 50 fast/mediastream/device-change-event-2.html

REGRESSION:

I was unable to locate a regression point; however, according to the related issue, this issue (or similar) has existed since 225536@main.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1976528</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-09-08 14:58:24 -0700</bug_when>
    <thetext>&lt;rdar://problem/115192271&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1976543</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-09-08 15:39:07 -0700</bug_when>
    <thetext>Test gardening commit 267812@main (5365867e4889): &lt;https://commits.webkit.org/267812@main&gt;

Reviewed commits have been landed. Closing PR #17613 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1982836</commentid>
    <comment_count>3</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-10-05 06:38:20 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/18691</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1983150</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-10-06 01:54:49 -0700</bug_when>
    <thetext>Committed 268976@main (ebcddfddefbd): &lt;https://commits.webkit.org/268976@main&gt;

Reviewed commits have been landed. Closing PR #18691 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986169</commentid>
    <comment_count>5</comment_count>
    <who name="Ben Schwartz">ben_schwartz</who>
    <bug_when>2023-10-19 09:44:17 -0700</bug_when>
    <thetext>Re-setting previous expectation in mac-wk2:

`webkit.org/b/188924 fast/mediastream/device-change-event-2.html [ Pass Timeout ]`</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986328</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-10-19 17:23:38 -0700</bug_when>
    <thetext>Test gardening commit 269550@main (79ceb52cc4ec): &lt;https://commits.webkit.org/269550@main&gt;

Reviewed commits have been landed. Closing PR #19319 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1986854</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-10-23 10:27:27 -0700</bug_when>
    <thetext>Ben&apos;s above commit re-added an expectation, because this is still happening. Reopening the bug, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1991521</commentid>
    <comment_count>8</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-11-10 06:52:24 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/20306</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1992416</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-11-14 02:14:23 -0800</bug_when>
    <thetext>Committed 270702@main (2d5fd917570a): &lt;https://commits.webkit.org/270702@main&gt;

Reviewed commits have been landed. Closing PR #20306 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>