<?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>287987</bug_id>
          
          <creation_ts>2025-02-19 11:38:53 -0800</creation_ts>
          <short_desc>[ macOS WK2 ] media/media-source/media-source-minimumupcomingpresentationtime.html is a flaky text failure</short_desc>
          <delta_ts>2026-05-08 13:35:31 -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>DUPLICATE</resolution>
          <dup_id>313712</dup_id>
          
          <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="Robert Jenner">jenner</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jer.noble</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>2095965</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2025-02-19 11:38:53 -0800</bug_when>
    <thetext>media/media-source/media-source-minimumupcomingpresentationtime.html

is a flaky text failure on MacOS WK2. As of this writing it is flaky on macOS Ventura and higher. 

HISTORY:
https://results.webkit.org/?suite=layout-tests&amp;test=media%2Fmedia-source%2Fmedia-source-minimumupcomingpresentationtime.html

DIFF:
https://build.webkit.org/results/Apple-Sequoia-Release-AppleSilicon-WK2-Tests/290607@main%20(1695)/media/media-source/media-source-minimumupcomingpresentationtime-pretty-diff.html

 RUN(internals.setMaximumQueueDepthForTrackID(sourceBuffer, 1, 3))
 RUN(sourceBuffer.appendBuffer(samples))
 EVENT(updateend)
-EXPECTED (internals.minimumUpcomingPresentationTimeForTrackID(sourceBuffer, 1) == &apos;1&apos;) OK
+EXPECTED (internals.minimumUpcomingPresentationTimeForTrackID(sourceBuffer, 1) == &apos;1&apos;), OBSERVED &apos;0&apos; FAIL
 RUN(video.currentTime = 4)
 EVENT(seeked)
 EXPECTED (internals.minimumUpcomingPresentationTimeForTrackID(sourceBuffer, 1) == &apos;8&apos;) OK
 RUN(sourceBuffer.appendBuffer(samples))
 EVENT(updateend)
-EXPECTED (internals.minimumUpcomingPresentationTimeForTrackID(sourceBuffer, 1) == &apos;7&apos;) OK
+EXPECTED (internals.minimumUpcomingPresentationTimeForTrackID(sourceBuffer, 1) == &apos;7&apos;), OBSERVED &apos;8&apos; FAIL
 END OF TEST</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2095969</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2025-02-19 11:40:06 -0800</bug_when>
    <thetext>It should be noted that this test ONLY runs in WK2, not WK1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2095970</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2025-02-19 11:41:04 -0800</bug_when>
    <thetext>I was able to reproduce the failure at macOS Sequoia Production ToT running the test as follows:

run-webkit-tests media/media-source/media-source-minimumupcomingpresentationtime.html --iterations 1000

Of 1000 iterations it reproduces approximately 13 times.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2095971</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-02-19 11:41:27 -0800</bug_when>
    <thetext>&lt;rdar://problem/145156323&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2095974</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-02-19 11:48:05 -0800</bug_when>
    <thetext>Test gardening commit 290630@main (c446f3429528): &lt;https://commits.webkit.org/290630@main&gt;

Reviewed commits have been landed. Closing PR #40882 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2209063</commentid>
    <comment_count>5</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2026-05-08 10:55:32 -0700</bug_when>
    <thetext>&gt; result-analysis confidence-check media/media-source/media-source-minimumupcomingpresentationtime.html      
Results for media/media-source/media-source-minimumupcomingpresentationtime.html
	PASS	100.00%

This test no longer flakes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2209145</commentid>
    <comment_count>6</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2026-05-08 13:35:31 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 313712 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>