<?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>14364</bug_id>
          
          <creation_ts>2021-04-26 06:56:45 +0000</creation_ts>
          <short_desc>S3 fetcher: missing ProgressHandler for S3 fetcher</short_desc>
          <delta_ts>2021-05-02 22:54:28 +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>3.4 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Przemyslaw Gorszkowski">pgorszkowski</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90116</commentid>
    <comment_count>0</comment_count>
    <who name="Przemyslaw Gorszkowski">pgorszkowski</who>
    <bug_when>2021-04-26 06:56:45 +0000</bug_when>
    <thetext>If there is a S3 source for fetch jobs there is no progress bar at all.The reason of that is missing ProgressHandler for S3 fetcher (lib/bb/fetch2/s3.py).
Additionally due to the fact that aws-cli progress output ends with &quot;\r&quot; there is also missing support for such case in LineFilterProgressHandler (https://github.com/openembedded/bitbake/blob/master/lib/bb/progress.py#L79)

aws-cli progress output implementation:
https://github.com/aws/aws-cli/blob/develop/awscli/customizations/s3/results.py#L520</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90117</commentid>
    <comment_count>1</comment_count>
    <who name="Przemyslaw Gorszkowski">pgorszkowski</who>
    <bug_when>2021-04-26 07:51:05 +0000</bug_when>
    <thetext>I created a fix for the problem with LineFilterProgressHandler:
https://github.com/openembedded/bitbake/pull/29</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90118</commentid>
    <comment_count>2</comment_count>
    <who name="Przemyslaw Gorszkowski">pgorszkowski</who>
    <bug_when>2021-04-26 08:25:14 +0000</bug_when>
    <thetext>I added also a progress handler for S3 cp command to enable progress when we fetch a data from S3 source:
https://github.com/openembedded/bitbake/pull/30</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90164</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-04-29 15:02:31 +0000</bug_when>
    <thetext>Patch on the list</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90222</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-05-02 22:54:28 +0000</bug_when>
    <thetext>Thanks for the patches, they have merged now: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=6da327c788b5fc2f50897771eeb82de1cc08e4e7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>