<?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>218253</bug_id>
          
          <creation_ts>2020-10-27 11:59:36 -0700</creation_ts>
          <short_desc>REGRESSION (r268897): [macOS WK1] inspector/cpu-profiler/threads.html is a flaky failure</short_desc>
          <delta_ts>2020-11-03 10:11:49 -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>Web Inspector</component>
          <version>Other</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=218051</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=217724</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="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>bburg</cc>
    
    <cc>cdumez</cc>
    
    <cc>darin</cc>
    
    <cc>ggaren</cc>
    
    <cc>hi</cc>
    
    <cc>inspector-bugzilla-changes</cc>
    
    <cc>joepeck</cc>
    
    <cc>nvasilyev</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>1702013</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2020-10-27 11:59:36 -0700</bug_when>
    <thetext>inspector/cpu-profiler/threads.html has become a flaky failure on macOS WK1 bots

--- /Volumes/Data/slave/mojave-release-tests-wk1/build/layout-test-results/inspector/cpu-profiler/threads-expected.txt
+++ /Volumes/Data/slave/mojave-release-tests-wk1/build/layout-test-results/inspector/cpu-profiler/threads-actual.txt
@@ -13,10 +13,16 @@
 PASS: Event should have threads.
 PASS: Every thread has between 0 and 100 usage.
 PASS: Event should have 1 main thread.
-PASS: Event should have 2 worker threads.
+FAIL: Event should have 2 worker threads.
+    Expected: 2
+    Actual: 7
 PASS: Event should have other worker threads.
-PASS: Worker 1 usage should be greater than zero.
-PASS: Worker 2 usage should be greater than zero.
+FAIL: Worker 1 usage should be greater than zero.
+    Expected: greater than 0
+    Actual: 0
+FAIL: Worker 2 usage should be greater than zero.
+    Expected: greater than 0
+    Actual: 0
 PASS: Total usage should be greater than or equal to the sum of both worker threads.
 CPUProfiler.trackingComplete
 

https://results.webkit.org/?suite=layout-tests&amp;test=inspector%2Fcpu-profiler%2Fthreads.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1702015</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2020-10-27 12:00:10 -0700</bug_when>
    <thetext>It looks like this started after https://trac.webkit.org/changeset/268897/webkit landed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1702016</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-10-27 12:00:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/70732755&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1702542</commentid>
    <comment_count>3</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2020-10-28 16:11:02 -0700</bug_when>
    <thetext>I have not yet been able to reproduce this locally by running this test alone in iterations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1703568</commentid>
    <comment_count>4</comment_count>
      <attachid>412936</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2020-11-02 10:01:46 -0800</bug_when>
    <thetext>Created attachment 412936
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1703577</commentid>
    <comment_count>5</comment_count>
      <attachid>412936</attachid>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2020-11-02 10:19:48 -0800</bug_when>
    <thetext>Comment on attachment 412936
Patch

r=me

I kinda wish there were a thread.type for worker (and perhaps a distinct thread.type for ServiceWorker).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1703609</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-11-02 11:13:16 -0800</bug_when>
    <thetext>Committed r269257: &lt;https://trac.webkit.org/changeset/269257&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 412936.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1704054</commentid>
    <comment_count>7</comment_count>
      <attachid>412936</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2020-11-03 10:09:46 -0800</bug_when>
    <thetext>Comment on attachment 412936
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=412936&amp;action=review

&gt; LayoutTests/ChangeLog:10
&gt; +        Check the thread name to identify the 2 worker threads. This is needed so that worklet thread are
&gt; +        not identified as worker threads after r268897.

Should we be identifying Worklet threads and have inspector tests for that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1704055</commentid>
    <comment_count>8</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2020-11-03 10:11:49 -0800</bug_when>
    <thetext>(In reply to Joseph Pecoraro from comment #7)
&gt; Comment on attachment 412936 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=412936&amp;action=review
&gt; 
&gt; &gt; LayoutTests/ChangeLog:10
&gt; &gt; +        Check the thread name to identify the 2 worker threads. This is needed so that worklet thread are
&gt; &gt; +        not identified as worker threads after r268897.
&gt; 
&gt; Should we be identifying Worklet threads and have inspector tests for that?

Probably? Web Inspector support for AudioWorklet is still mostly missing:
https://bugs.webkit.org/show_bug.cgi?id=217724</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>412936</attachid>
            <date>2020-11-02 10:01:46 -0800</date>
            <delta_ts>2020-11-02 11:13:16 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-218253-20201102100145.patch</filename>
            <type>text/plain</type>
            <size>1669</size>
            <attacher name="Chris Dumez">cdumez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjY5MjQ5CmRpZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9DaGFu
Z2VMb2cgYi9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKaW5kZXggZDU2MjQ1ZGM4MjE2ODA0NGU0ZTZl
ZjFmOTQ0OTRhMTQ0Y2Q3Yzg0My4uYTNhOGE1NTRkYjU1OTM1Zjk1MDFhYTkxYmMwZmE5MjEyZjJi
ZTZjYiAxMDA2NDQKLS0tIGEvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCisrKyBiL0xheW91dFRlc3Rz
L0NoYW5nZUxvZwpAQCAtMSwzICsxLDE2IEBACisyMDIwLTExLTAyICBDaHJpcyBEdW1leiAgPGNk
dW1lekBhcHBsZS5jb20+CisKKyAgICAgICAgUkVHUkVTU0lPTiAocjI2ODg5Nyk6IFttYWNPUyBX
SzFdIGluc3BlY3Rvci9jcHUtcHJvZmlsZXIvdGhyZWFkcy5odG1sIGlzIGEgZmxha3kgZmFpbHVy
ZQorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjE4MjUz
CisgICAgICAgIDxyZGFyOi8vcHJvYmxlbS83MDczMjc1NT4KKworICAgICAgICBSZXZpZXdlZCBi
eSBOT0JPRFkgKE9PUFMhKS4KKworIC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iAgICAgICAgICAgICAgICAgICAgIGlmICh0aHJlYWQudHlwZSA9PT0g
Im1haW4iKQogICAgICAgICAgICAgICAgICAgICAgICAgbWFpbi5wdXNoKHRocmVhZCk7Ci0gICAg
ICAgICAgICAgICAgICAgIGVsc2UgaWYgKHRocmVhZC50YXJnZXRJZCkKKyAgICAgICAgICAgICAg
ICAgICAgZWxzZSBpZiAodGhyZWFkLnRhcmdldElkICYmIHRocmVhZC5uYW1lID09ICJXZWJDb3Jl
OiBXb3JrZXIiKQogICAgICAgICAgICAgICAgICAgICAgICAgd29ya2Vycy5wdXNoKHRocmVhZCk7
CiAgICAgICAgICAgICAgICAgICAgIGVsc2UKICAgICAgICAgICAgICAgICAgICAgICAgIG90aGVy
cy5wdXNoKHRocmVhZCk7Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>