<?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>84544</bug_id>
          
          <creation_ts>2012-04-22 06:06:26 -0700</creation_ts>
          <short_desc>[TestResultsServer] Impossible to inspect builds on non-Chromium builders</short_desc>
          <delta_ts>2012-04-24 05:41:41 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Zan Dobersek">zan</reporter>
          <assigned_to name="Zan Dobersek">zan</assigned_to>
          <cc>mihaip</cc>
    
    <cc>ojan</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>607342</commentid>
    <comment_count>0</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2012-04-22 06:06:26 -0700</bug_when>
    <thetext>In the timeline view on the http://test-results.appspot.com/ it is impossible to see details for any build when inspecting the layout tests results for non-Chromium builders.

TypeError occurs in dashboard_base.js when clicking on the dashboard with intent to inspect any build.
Stack trace obtained from the Web Inspector:

revisionLink (dashboard_base.js:954)
chromiumRevisionLink (dashboard_base.js:977)
updateBuildInspector (/dashboards/timeline_explorer.html#group=%40ToT%20-%20webkit.org&amp;builder=Chromium%20Linux%20Release%20(Tests):300)
selectBuild (/dashboards/timeline_explorer.html#group=%40ToT%20-%20webkit.org&amp;builder=Chromium%20Linux%20Release%20(Tests):248)
Dygraph.clickCallback (/dashboards/timeline_explorer.html#group=%40ToT%20-%20webkit.org&amp;builder=Chromium%20Linux%20Release%20(Tests):224)
Dygraph.addEvent.o.dateWindow_ (dygraph-combined.js:1)
d (dygraph-combined.js:1)

It seems that in updateBuildInspector, Chromium revision link is being added despite not inspecting builds on a Chromium builder. shouldShowWebKitRevisionsOnly() returns false, and on further inspection it shows that isTipOfTreeWebKitBuilder() returns and undefined value which then gets converted to boolean value. Seems that isToTWebKit parameter of the BuilderGroup object is not properly assigned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607344</commentid>
    <comment_count>1</comment_count>
      <attachid>138270</attachid>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2012-04-22 06:52:42 -0700</bug_when>
    <thetext>Created attachment 138270
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607345</commentid>
    <comment_count>2</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2012-04-22 06:58:43 -0700</bug_when>
    <thetext>CC-ing both author and reviewer from bug #82924 from which r112971 originates, introducing the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607445</commentid>
    <comment_count>3</comment_count>
      <attachid>138270</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-04-22 21:48:33 -0700</bug_when>
    <thetext>Comment on attachment 138270
Patch

Looks sane to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607459</commentid>
    <comment_count>4</comment_count>
      <attachid>138270</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-04-22 22:23:15 -0700</bug_when>
    <thetext>Comment on attachment 138270
Patch

Clearing flags on attachment: 138270

Committed r114868: &lt;http://trac.webkit.org/changeset/114868&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607460</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-04-22 22:23:20 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607790</commentid>
    <comment_count>6</comment_count>
      <attachid>138270</attachid>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-04-23 10:20:09 -0700</bug_when>
    <thetext>Comment on attachment 138270
Patch

Could you also add a test for this? The tests are in the poorly named flakiness_dashboard_tests.js. You run them by loading flakiness_dashboard.html#useTestData=true off your local filesystem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607895</commentid>
    <comment_count>7</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2012-04-23 11:49:06 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (From update of attachment 138270 [details])
&gt; Could you also add a test for this? The tests are in the poorly named flakiness_dashboard_tests.js. You run them by loading flakiness_dashboard.html#useTestData=true off your local filesystem.

Could you please give some pointers on what exactly to test here? Simply the isToTWebKit attribute value that depends on whether BuilderGroup.TOT_WEBKIT or BuilderGroup.DEPS_WEBKIT is given as the first parameter to the BuilderGroup constructor or the complete builder lists loading, from loadBuildersList function in builders.js onwards, with the final isToTWebKit attribute value check?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607925</commentid>
    <comment_count>8</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2012-04-23 12:35:41 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; (From update of attachment 138270 [details] [details])
&gt; &gt; Could you also add a test for this? The tests are in the poorly named flakiness_dashboard_tests.js. You run them by loading flakiness_dashboard.html#useTestData=true off your local filesystem.
&gt; 
&gt; Could you please give some pointers on what exactly to test here? Simply the isToTWebKit attribute value that depends on whether BuilderGroup.TOT_WEBKIT or BuilderGroup.DEPS_WEBKIT is given as the first parameter to the BuilderGroup constructor or the complete builder lists loading, from loadBuildersList function in builders.js onwards, with the final isToTWebKit attribute value check?

Yeah. The simple test was all I had in mind. Just call onBuilderListLoad with the right dummy arguments and check that builderGroups[groupName] has a BuilderGroup with the right isToTWebKit value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>608579</commentid>
    <comment_count>9</comment_count>
    <who name="Zan Dobersek">zan</who>
    <bug_when>2012-04-24 05:41:41 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #7)
&gt; &gt; (In reply to comment #6)
&gt; &gt; &gt; (From update of attachment 138270 [details] [details] [details])
&gt; &gt; &gt; Could you also add a test for this? The tests are in the poorly named flakiness_dashboard_tests.js. You run them by loading flakiness_dashboard.html#useTestData=true off your local filesystem.
&gt; &gt; 
&gt; &gt; Could you please give some pointers on what exactly to test here? Simply the isToTWebKit attribute value that depends on whether BuilderGroup.TOT_WEBKIT or BuilderGroup.DEPS_WEBKIT is given as the first parameter to the BuilderGroup constructor or the complete builder lists loading, from loadBuildersList function in builders.js onwards, with the final isToTWebKit attribute value check?
&gt; 
&gt; Yeah. The simple test was all I had in mind. Just call onBuilderListLoad with the right dummy arguments and check that builderGroups[groupName] has a BuilderGroup with the right isToTWebKit value.

Patch coming up in #84713.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>138270</attachid>
            <date>2012-04-22 06:52:42 -0700</date>
            <delta_ts>2012-04-23 10:20:09 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-84544-20120422155238.patch</filename>
            <type>text/plain</type>
            <size>1763</size>
            <attacher name="Zan Dobersek">zan</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTE0ODU1CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggYTlkZjVkNmNjYTg5N2IyYzUzOGYyYmY4OGZkYzZlOWFj
ZmYxMTE5MS4uN2ZhM2FlNDg0O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