<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9737</bug_id>
          
          <creation_ts>2016-06-09 14:13:11 +0000</creation_ts>
          <short_desc>[PATCH] ui/knotty: give out start time of task</short_desc>
          <delta_ts>2016-09-27 10:17:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Enrico Scholz">enrico.scholz</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62811</commentid>
    <comment_count>0</comment_count>
      <attachid>3222</attachid>
    <who name="Enrico Scholz">enrico.scholz</who>
    <bug_when>2016-06-09 14:13:11 +0000</bug_when>
    <thetext>Created attachment 3222
patch

For long running tasks like compiling qt it might be interesting to know
when the task has been started.  Patch prints this information by using
the %X modifier (locale dependent presentation of time without date).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66480</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-09-22 12:53:44 +0000</bug_when>
    <thetext>I like this idea but I think there is a better thing to do which is to show task elapsed time. If we display the start time, the next thing the user will manually do is look at the current time and compare so we may as well do it for them. I&apos;ll send such a patch to bitbake-devel.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66481</commentid>
    <comment_count>2</comment_count>
    <who name="Enrico Scholz">enrico.scholz</who>
    <bug_when>2016-09-22 12:58:11 +0000</bug_when>
    <thetext>Showing the elapsed time means that display must be refreshed periodically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66547</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-09-23 14:11:55 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Showing the elapsed time means that display must be refreshed periodically.

Which we already do due to the progress changes anyway so this doesn&apos;t really add that much overhead. I did rate limit it to 5s rather than 1s intervals to try and reduce the refresh problem.

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=0d76de85bd2fa8fc6b0a3a5a65f2817a5d0b2186</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66618</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-09-27 08:33:52 +0000</bug_when>
    <thetext>Sorry, have to reopen this. With the change, highlighting the terminal tab happens constantly, whereas previously it was highlighted only when a task has been finished. For people running long tasks in a edit-rib-debug cycle (i.e. me) that is an unpleasant regresssion, as now the terminal tab has to be polled to see if the task is done yet, whereas previously I could just glance at it while doing other stuff in a different tab.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66621</commentid>
    <comment_count>5</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-09-27 10:17:01 +0000</bug_when>
    <thetext>Okay, I found that the terminal provides a workaround for this. Let&apos;s open a separate issue for UI notifications using d-bus.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>3222</attachid>
            <date>2016-06-09 14:13:11 +0000</date>
            <delta_ts>2016-06-09 14:35:18 +0000</delta_ts>
            <desc>patch</desc>
            <filename>0004-ui-knotty-give-out-start-time-of-task.patch</filename>
            <type>text/plain</type>
            <size>2069</size>
            <attacher name="Enrico Scholz">enrico.scholz</attacher>
            
              <data encoding="base64">RnJvbSA3NzZjNzNmNmZjMTU5NTkyNzVhOWQ0ZTM4NzhmMmQ5MWNlMDg2NDFmIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBFbnJpY28gU2Nob2x6IDxlbnJpY28uc2Nob2x6QHNpZ21hLWNo
ZW1uaXR6LmRlPgpEYXRlOiBXZWQsIDIyIEF1ZyAyMDEyIDE4OjMwOjAxICswMjAwClN1YmplY3Q6
IFtQQVRDSCAwNC8xMF0gdWkva25vdHR5OiBnaXZlIG91dCBzdGFydCB0aW1lIG9mIHRhc2sKCkZv
ciBsb25nIHJ1bm5pbmcgdGFza3MgbGlrZSBjb21waWxpbmcgcXQgaXQgbWlnaHQgYmUgaW50ZXJl
c3RpbmcgdG8ga25vdwp3aGVuIHRoZSB0YXNrIGhhcyBiZWVuIHN0YXJ0ZWQuICBQYXRjaCBwcmlu
dHMgdGhpcyBpbmZvcm1hdGlvbiBieSB1c2luZwp0aGUgJVggbW9kaWZpZXIgKGxvY2FsZSBkZXBl
bmRlbnQgcHJlc2VudGF0aW9uIG9mIHRpbWUgd2l0aG91dCBkYXRlKS4KClNpZ25lZC1vZmYtYnk6
IEVucmljbyBTY2hvbHogPGVucmljby5zY2hvbHpAc2lnbWEtY2hlbW5pdHouZGU+Ci0tLQogbGli
L2JiL3VpL2tub3R0eS5weSAgIHwgMyArKy0KIGxpYi9iYi91aS91aWhlbHBlci5weSB8IDQgKysr
LQogMiBmaWxlcyBjaGFuZ2VkLCA1IGluc2VydGlvbnM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