<?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>217966</bug_id>
          
          <creation_ts>2020-10-20 09:53:20 -0700</creation_ts>
          <short_desc>[GTK] inspector/console/queryHolders.html is failing</short_desc>
          <delta_ts>2022-01-05 16:12:27 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Diego Pino">dpino</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>cgarcia</cc>
    
    <cc>inspector-bugzilla-changes</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1699790</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2020-10-20 09:53:20 -0700</bug_when>
    <thetext>The test is very flaky since r267815. Inspecting the range r267800-r267815, r267807 introduced several changes in inspector code touching WebKitGTK code. I haven&apos;t bisected the range though (before r267815 the test sporadically timeout).

To reproduce the failure:

$ Tools/Scripts/run-webkit-tests --gtk --release --iterations 5 inspector/console/queryHolders.html

Diff: https://build.webkit.org/results/GTK-Linux-64-bit-Release-Tests/r268725%20(16529)/inspector/console/queryHolders-diff.txt

--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/inspector/console/queryHolders-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/inspector/console/queryHolders-actual.txt
@@ -75,7 +75,9 @@
 [RepeatedReferenceHolder, Root] (2)

 -- Running test case: CommandLineAPI.queryHolders.OnlyHeldByDebugger
-PASS: The result should have 0 items.
+FAIL: The result should have 0 items.
+    Expected: 0
+    Actual: 2

 -- Running test case: CommandLineAPI.queryHolders.NonObject
 PASS: Should produce an exception.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1699920</commentid>
    <comment_count>1</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2020-10-20 14:21:48 -0700</bug_when>
    <thetext>I bisected the range [r267800-r267815] and I got r267814 as the first revision where I can reproduce the regression.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700243</commentid>
    <comment_count>2</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2020-10-21 09:48:28 -0700</bug_when>
    <thetext>Carlos, I don&apos;t see anything obviously wrong which would cause this. Can you take a peek?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700340</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2020-10-21 13:16:15 -0700</bug_when>
    <thetext>(In reply to Brian Burg from comment #2)
&gt; Carlos, I don&apos;t see anything obviously wrong which would cause this. Can you
&gt; take a peek?

It seems this same issue was tracked in bug https://bugs.webkit.org/show_bug.cgi?id=217193

Recently the implementation of `item` introduced in r267814 was renamed to `at` in r268760, among other changes. Since then the test is no longer flaky, although it sporadically times out as it used to happen before.

https://results.webkit.org/?suite=layout-tests&amp;test=inspector%2Fconsole%2FqueryHolders.html&amp;platform=GTK&amp;platform=WPE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700341</commentid>
    <comment_count>4</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2020-10-21 13:17:28 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 217193 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1768072</commentid>
    <comment_count>5</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-06-09 00:04:04 -0700</bug_when>
    <thetext>This test is no longer flaky in WebKitGTK as the results in the WebKitGTK post-commit bot report this test has been consistently failing in the last 4000 revisions.

The current diff is:

https://build.webkit.org/results/GTK-Linux-64-bit-Release-Tests/r278645%20%282223%29/inspector/console/queryHolders-diff.txt

--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/inspector/console/queryHolders-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/inspector/console/queryHolders-actual.txt
@@ -54,13 +54,13 @@
 [Root] (1)
 
 -- Running test case: CommandLineAPI.queryHolders.PromiseThen
-[Root, object] (2)
+[Object, Root] (2)
 
 -- Running test case: CommandLineAPI.queryHolders.PromiseCatch
-[Root, object] (2)
+[Object, Root] (2)
 
 -- Running test case: CommandLineAPI.queryHolders.PromiseFinally
-[Root, object] (2)
+[Object, Root] (2)
 
 -- Running test case: CommandLineAPI.queryHolders.EventListenerCallback
 [&lt;div id=&quot;event-listener-target&quot;&gt;, Root] (2)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1828445</commentid>
    <comment_count>6</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2022-01-05 16:12:27 -0800</bug_when>
    <thetext>Now this test is failing with a different output:

--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/inspector/console/queryHolders-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/inspector/console/queryHolders-actual.txt
@@ -54,13 +54,13 @@
 [Root] (1)
 
 -- Running test case: CommandLineAPI.queryHolders.PromiseThen
-[Root, object] (2)
+[Object, Root] (2)
 
 -- Running test case: CommandLineAPI.queryHolders.PromiseCatch
-[Root, object] (2)
+[Object, Root] (2)
 
 -- Running test case: CommandLineAPI.queryHolders.PromiseFinally
-[Root, object] (2)
+[Object, Root] (2)
 
 -- Running test case: CommandLineAPI.queryHolders.EventListenerCallback
 [&lt;div id=&quot;event-listener-target&quot;&gt;, Root] (2)
@@ -75,7 +75,9 @@
 [RepeatedReferenceHolder, Root] (2)
 
 -- Running test case: CommandLineAPI.queryHolders.OnlyHeldByDebugger
-PASS: The result should have 0 items.
+FAIL: The result should have 0 items.
+    Expected: 0
+    Actual: 2
 
 -- Running test case: CommandLineAPI.queryHolders.NonObject
 PASS: Should produce an exception.


The reason for the [Root, object] and [Object, Root] difference is due to using a different label for Objects in GLib abd other WebKit ports.

https://webkit-search.igalia.com/webkit/source/LayoutTests/inspector/console/queryHolders.html#83

It can be easily solved by capitalizing the propertiy names before sorting.

As for the other part, the error is happening in this line:

https://webkit-search.igalia.com/webkit/source/LayoutTests/inspector/console/queryHolders.html#162

I have no idea why size is 2 for GLib ports but 0 in other ports.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>