<?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>195744</bug_id>
          
          <creation_ts>2019-03-14 05:48:47 -0700</creation_ts>
          <short_desc>[ews-app] Status bubble display pending for currently running build step</short_desc>
          <delta_ts>2019-03-14 14:51:06 -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>Other</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>dewei_zhu</cc>
    
    <cc>jbedard</cc>
    
    <cc>lforschler</cc>
    
    <cc>slewis</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1516488</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-03-14 05:48:47 -0700</bug_when>
    <thetext>Status bubble display &apos;pending&apos; for the step which is currently running (on Buildbot). This is because Buildbot send state_string as &apos;pending&apos; for step-started event.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1516489</commentid>
    <comment_count>1</comment_count>
      <attachid>364655</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-03-14 05:53:20 -0700</bug_when>
    <thetext>Created attachment 364655
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1516500</commentid>
    <comment_count>2</comment_count>
      <attachid>364655</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-03-14 08:11:56 -0700</bug_when>
    <thetext>Comment on attachment 364655
Patch

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

&gt; Tools/BuildSlaveSupport/ews-build/events.py:164
&gt; +        state_string = step.get(&apos;state_string&apos;)

Could this be &apos;None&apos; (that&apos;s what using the .get would imply)? Would that mess things up?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1516530</commentid>
    <comment_count>3</comment_count>
      <attachid>364655</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-03-14 10:49:05 -0700</bug_when>
    <thetext>Comment on attachment 364655
Patch

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

&gt;&gt; Tools/BuildSlaveSupport/ews-build/events.py:164
&gt;&gt; +        state_string = step.get(&apos;state_string&apos;)
&gt; 
&gt; Could this be &apos;None&apos; (that&apos;s what using the .get would imply)? Would that mess things up?

state_string should always be present in step data and the value should not be None. Looking into buildbot code this step event data comes from database directly (in https://github.com/buildbot/buildbot/blob/master/master/buildbot/data/steps.py#L125)

https://github.com/buildbot/buildbot/blob/master/master/buildbot/db/model.py#L177 specifies that state_string is not nullable.

However, in an unexpected case when this is None, it shouldn&apos;t mess up things. Buildbot will send that data as is, and Django app should handle it appropriately. I will test and handle that case (state_string or other data being None) on the Django app side.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1516567</commentid>
    <comment_count>4</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-03-14 12:00:22 -0700</bug_when>
    <thetext>&gt; However, in an unexpected case when this is None, it shouldn&apos;t mess up things. Buildbot will send that data as is, and Django app should handle it appropriately. I will test and handle that case (state_string or other data being None) on the Django app side.
Handling that in ews-app in https://bugs.webkit.org/show_bug.cgi?id=195753</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1516571</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-03-14 12:03:09 -0700</bug_when>
    <thetext>(In reply to Aakash Jain from comment #4)
&gt; &gt; However, in an unexpected case when this is None, it shouldn&apos;t mess up things. Buildbot will send that data as is, and Django app should handle it appropriately. I will test and handle that case (state_string or other data being None) on the Django app side.
&gt; Handling that in ews-app in https://bugs.webkit.org/show_bug.cgi?id=195753

This seems a reasonable way to handle this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1516647</commentid>
    <comment_count>6</comment_count>
      <attachid>364655</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-03-14 14:33:52 -0700</bug_when>
    <thetext>Comment on attachment 364655
Patch

Clearing flags on attachment: 364655

Committed r242965: &lt;https://trac.webkit.org/changeset/242965&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1516648</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-03-14 14:33:53 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1516663</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-03-14 14:51:06 -0700</bug_when>
    <thetext>&lt;rdar://problem/48902762&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>364655</attachid>
            <date>2019-03-14 05:53:20 -0700</date>
            <delta_ts>2019-03-14 14:33:52 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-195744-20190314085335.patch</filename>
            <type>text/plain</type>
            <size>1757</size>
            <attacher name="Aakash Jain">aakash_jain</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDI0Mjk0MSkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDEzIEBACisyMDE5LTAzLTE0ICBBYWthc2ggSmFpbiAgPGFha2FzaF9qYWluQGFwcGxlLmNv
bT4KKworICAgICAgICBbZXdzLWFwcF0gU3RhdHVzIGJ1YmJsZSBkaXNwbGF5IHBlbmRpbmcgZm9y
IGN1cnJlbnRseSBydW5uaW5nIGJ1aWxkIHN0ZXAKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtp
dC5vcmcvc2hvd19idWcuY2dpP2lkPTE5NTc0NAorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9E
WSAoT09QUyEpLgorCisgICAgICAgICogQnVpbGRTbGF2ZVN1cHBvcnQvZXdzLWJ1aWxkL2V2ZW50
cy5weToKKyAgICAgICAgKEV2ZW50cy5zdGVwU3RhcnRlZCk6IElmIHN0YXRlX3N0cmluZyBpcyBw
ZW5kaW5nLCByZXBsYWNlIGl0IHdpdGggc3RlcCBuYW1lLgorCiAyMDE5LTAzLTEzICBXZW5zb24g
SHNpZWggIDx3ZW5zb25faHNpZWhAYXBwbGUuY29tPgogCiAgICAgICAgIE1ha2UgLVtfV0tBdHRh
Y2htZW50IHNldEZpbGVXcmFwcGVyOmNvbnRlbnRUeXBlOmNvbXBsZXRpb246XSByb2J1c3Qgd2hl
biBnaXZlbiBhIG5pbCBjb21wbGV0aW9uIGhhbmRsZXIKSW5kZXg6IFRvb2xzL0J1aWxkU2xhdmVT
dXBwb3J0L2V3cy1idWlsZC9ldmVudHMucHkKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09P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OiBzdGF0ZV9zdHJpbmcsCiAgICAgICAgICAg
ICAic3RhcnRlZF9hdCI6IHN0ZXAuZ2V0KCdzdGFydGVkX2F0JyksCiAgICAgICAgICAgICAiY29t
cGxldGVfYXQiOiBzdGVwLmdldCgnY29tcGxldGVfYXQnKSwKICAgICAgICAgfQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>