<?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>14360</bug_id>
          
          <creation_ts>2021-04-23 08:51:17 +0000</creation_ts>
          <short_desc>oe-selftest oescripts.OEPybootchartguyTests.test_pybootchartguy* failure,  ZeroDivisionError</short_desc>
          <delta_ts>2021-05-02 22:53:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>3.3</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>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.4 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Naveen Saini">naveen.kumar.saini</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>90097</commentid>
    <comment_count>0</comment_count>
    <who name="Naveen Saini">naveen.kumar.saini</who>
    <bug_when>2021-04-23 08:51:17 +0000</bug_when>
    <thetext>ZeroDivisionError: float division by zero

Failed following oe-selftests on master:
worker: tumbleweed-ty-1

Testcases:
oescripts.OEPybootchartguyTests.test_pybootchartguy_to_generate_build_pdf_outputoescripts.OEPybootchartguyTests.test_pybootchartguy_to_generate_build_png_outputoescripts.OEPybootchartguyTests.test_pybootchartguy_to_generate_build_svg_output

https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/1423


Error log:
2021-04-23 02:32:41,291 - oe-selftest - INFO - ======================================================================
2021-04-23 02:32:41,291 - oe-selftest - INFO - FAIL: oescripts.OEPybootchartguyTests.test_pybootchartguy_to_generate_build_png_output (subunit.RemotedTestCase)
2021-04-23 02:32:41,291 - oe-selftest - INFO - ----------------------------------------------------------------------
2021-04-23 02:32:41,292 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest/build/meta/lib/oeqa/selftest/cases/oescripts.py&quot;, line 56, in test_pybootchartguy_to_generate_build_png_output
    runCmd(&apos;%s/pybootchartgui/pybootchartgui.py  %s -o %s/charts -f png&apos; % (self.scripts_dir, self.buildstats, self.tmpdir))
  File &quot;/home/pokybuild/yocto-worker/oe-selftest/build/meta/lib/oeqa/utils/commands.py&quot;, line 210, in runCmd
    raise AssertionError(&quot;Command &apos;%s&apos; returned non-zero exit status %d:\n%s&quot; % (command, result.status, exc_output))
AssertionError: Command &apos;/home/pokybuild/yocto-worker/oe-selftest/build/scripts/pybootchartgui/pybootchartgui.py  /home/pokybuild/yocto-worker/oe-selftest/build/build-st-1770/tmp/buildstats/20210423013714 -o /home/pokybuild/yocto-worker/oe-selftest/build/build-st-1770/tmp/charts -f png&apos; returned non-zero exit status 1:
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/oe-selftest/build/scripts/pybootchartgui/pybootchartgui.py&quot;, line 23, in &lt;module&gt;
    sys.exit(main())
  File &quot;/home/pokybuild/yocto-worker/oe-selftest/build/scripts/pybootchartgui/pybootchartgui/main.py&quot;, line 174, in main
    render()
  File &quot;/home/pokybuild/yocto-worker/oe-selftest/build/scripts/pybootchartgui/pybootchartgui/main.py&quot;, line 165, in render
    batch.render(writer, r, options, f)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest/build/scripts/pybootchartgui/pybootchartgui/batch.py&quot;, line 43, in render
    draw.render (ctx, options, 1.0, trace)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest/build/scripts/pybootchartgui/pybootchartgui/draw.py&quot;, line 581, in render
    curr_y = render_charts (ctx, options, clip, trace, curr_y, w, h, sec_w)
  File &quot;/home/pokybuild/yocto-worker/oe-selftest/build/scripts/pybootchartgui/pybootchartgui/draw.py&quot;, line 453, in render_charts
    draw_chart (ctx, VOLUME_COLORS[(i - 1) % len(VOLUME_COLORS)], True, chart_rect, \
  File &quot;/home/pokybuild/yocto-worker/oe-selftest/build/scripts/pybootchartgui/pybootchartgui/draw.py&quot;, line 275, in draw_chart
    yscale = float(chart_bounds[3]) / (data_range[1] - data_range[0])
ZeroDivisionError: float division by zero</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90155</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-04-29 14:50:18 +0000</bug_when>
    <thetext>We forked pybootchart so it&apos;s likely a problem in our code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90156</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-04-29 14:52:19 +0000</bug_when>
    <thetext>/saved/1 on the worker (tumbleweed-ty-1)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90221</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-05-02 22:53:34 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=86a66606fe903048a076b83bbd36578494b14f89</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>