<?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>175072</bug_id>
          
          <creation_ts>2017-08-02 09:29:47 -0700</creation_ts>
          <short_desc>Intermittent exception in buildPageURLForIteration for Buildbot 0.9 dashboard</short_desc>
          <delta_ts>2017-08-02 10:55:56 -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>WebKit Local 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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aakash Jain">aakash_jain</reporter>
          <assigned_to name="Aakash Jain">aakash_jain</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>lforschler</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1334239</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2017-08-02 09:29:47 -0700</bug_when>
    <thetext>For buildbot 0.9, few times, dashboard fails to load the builder name to ID mapping (e.g.: intermittent network issue). In such cases buildPageURLForIteration() in dashboard/Scripts/Buildbot.js throws an exception: 

&quot;TypeError: undefined is not an object (evaluating &apos;this._builderNameToIDMap[iteration.queue.id]&apos;)&quot;

This causes the bubbles for those queues to disappear from the dashboard. We should handle such cases gracefully.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1334241</commentid>
    <comment_count>1</comment_count>
      <attachid>316966</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2017-08-02 09:36:36 -0700</bug_when>
    <thetext>Created attachment 316966
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1334252</commentid>
    <comment_count>2</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2017-08-02 09:54:10 -0700</bug_when>
    <thetext>This issue was uncovered as I was playing around with web server configuration, and a misconfiguration caused network issue while fetching Builder name to ID mapping. Following error was seen in console.

&quot;Failed to load resource: The network connection was lost.  http://&lt;BUILDBOT09_SERVER_NAME&gt;/api/v2/builders&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1334293</commentid>
    <comment_count>3</comment_count>
      <attachid>316966</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-08-02 10:54:44 -0700</bug_when>
    <thetext>Comment on attachment 316966
Proposed patch

Clearing flags on attachment: 316966

Committed r220139: &lt;http://trac.webkit.org/changeset/220139&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1334294</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-08-02 10:54:46 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1334295</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-08-02 10:55:56 -0700</bug_when>
    <thetext>&lt;rdar://problem/33680174&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>316966</attachid>
            <date>2017-08-02 09:36:36 -0700</date>
            <delta_ts>2017-08-02 10:54:44 -0700</delta_ts>
            <desc>Proposed patch</desc>
            <filename>patch_buildbot_os_dashboard_builderNameToIDMap.txt</filename>
            <type>text/plain</type>
            <size>1845</size>
            <attacher name="Aakash Jain">aakash_jain</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIyMDEzMCkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDEzIEBACisyMDE3LTA4LTAyICBBYWthc2ggSmFpbiAgPGFha2FzaF9qYWluQGFwcGxlLmNv
bT4KKworICAgICAgICBJbnRlcm1pdHRlbnQgZXhjZXB0aW9uIGluIGJ1aWxkUGFnZVVSTEZvckl0
ZXJhdGlvbiBmb3IgQnVpbGRib3QgMC45IGRhc2hib2FyZAorICAgICAgICBodHRwczovL2J1Z3Mu
d2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTc1MDcyCisKKyAgICAgICAgUmV2aWV3ZWQgYnkg
Tk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgKiBCdWlsZFNsYXZlU3VwcG9ydC9idWlsZC53ZWJr
aXQub3JnLWNvbmZpZy9wdWJsaWNfaHRtbC9kYXNoYm9hcmQvU2NyaXB0cy9CdWlsZGJvdC5qczoK
KyAgICAgICAgKEJ1aWxkYm90KTogTWFrZSBzdXJlIHRoaXMuX2J1aWxkZXJOYW1lVG9JRE1hcCBp
cyBhbHdheXMgZGVmaW5lZCBmb3IgQnVpbGRib3QgMC45LgorCiAyMDE3LTA4LTAyICBNaWNoYWVs
IENhdGFuemFybyAgPG1jYXRhbnphcm9AaWdhbGlhLmNvbT4KIAogICAgICAgICBbQ01ha2VdIFJl
bW92ZSBvYnNvbGV0ZSBjb2RlIGluIFRlc3RXZWJLaXRBUEkvQ01ha2VMa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CBCdWlsZGJvdC5wcm90b3R5cGUgPSB7CiAgICAgICAgICAgICBpZiAoIWRhdGEgfHwgIShkYXRh
LmJ1aWxkZXJzIGluc3RhbmNlb2YgQXJyYXkpKQogICAgICAgICAgICAgICAgIHJldHVybjsKIAot
ICAgICAgICAgICAgdGhpcy5fYnVpbGRlck5hbWVUb0lETWFwID0ge307CiAgICAgICAgICAgICBm
b3IgKHZhciBidWlsZGVyIG9mIGRhdGEuYnVpbGRlcnMpCiAgICAgICAgICAgICAgICAgdGhpcy5f
YnVpbGRlck5hbWVUb0lETWFwW2J1aWxkZXIubmFtZV0gPSBidWlsZGVyLmJ1aWxkZXJpZDsKICAg
ICAgICAgfS5iaW5kKHRoaXMpKTsK
</data>

          </attachment>
      

    </bug>

</bugzilla>