Can't generate tar file when using checkbox-snappy-classic.test-runner on arm device

Bug #1853392 reported by Betty Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Fix Released
Critical
Maciej Kisielewski

Bug Description

Platform: armv7l
Type: Freescale i.MX6 Quad/DualLite
image: ubuntu server

Description:
Can't upload report to C3 when using checkbox-snappy-classic.test-runner on arm device
Because of no tar file, the test report can't upload to C3

Error logs:
file:///home/ubuntu/.local/share/checkbox-ng/submission_2019-11-21T02.09.00.282201.html
file:///home/ubuntu/.local/share/checkbox-ng/submission_2019-11-21T02.09.00.282201.junit.xml
WARNING:checkbox-ng.launcher.stages:Problem occured when preparing com.canonical.plainbox::tar report:['Expecting value: line 810 column 17 (char 205698)']
file:///home/ubuntu/.local/share/checkbox-ng/submission_2019-11-21T02.09.00.282201.junit.xml

                        Application Malfunction Detected

Traceback (most recent call last):
  File "/snap/checkbox18/current/lib/python3.6/site-packages/guacamole/core.py", line 248, in eat
    return self._dispatch()
  File "/snap/checkbox18/current/lib/python3.6/site-packages/guacamole/core.py", line 298, in _dispatch
    result = ingredient.dispatch(self.context)
  File "/snap/checkbox18/current/lib/python3.6/site-packages/guacamole/ingredients/cmdtree.py", line 152, in dispatch
    return self._dispatch(context, 0)
  File "/snap/checkbox18/current/lib/python3.6/site-packages/guacamole/ingredients/cmdtree.py", line 179, in _dispatch
    return self._dispatch_None(context, level, retval, command)
  File "/snap/checkbox18/current/lib/python3.6/site-packages/guacamole/ingredients/cmdtree.py", line 208, in _dispatch_None
    return self._dispatch(context, level + 1)
  File "/snap/checkbox18/current/lib/python3.6/site-packages/guacamole/ingredients/cmdtree.py", line 165, in _dispatch
    retval = command.invoked(context)
  File "/snap/checkbox18/current/lib/python3.6/site-packages/checkbox_ng/launcher/subcommands.py", line 240, in invoked
    self._export_results()
  File "/snap/checkbox18/current/lib/python3.6/site-packages/checkbox_ng/launcher/stages.py", line 472, in _export_results
    exporter_id, transport)
  File "/snap/checkbox18/current/lib/python3.6/site-packages/plainbox/impl/decorators.py", line 142, in wrapper
    raise exc
  File "/snap/checkbox18/current/lib/python3.6/site-packages/plainbox/impl/decorators.py", line 136, in wrapper
    return func(*args, **kwargs)
  File "/snap/checkbox18/current/lib/python3.6/site-packages/plainbox/impl/session/assistant.py", line 1609, in export_to_transport
    exporter.dump_from_session_manager(self._manager, exported_stream)
  File "/snap/checkbox18/current/lib/python3.6/site-packages/plainbox/impl/exporter/xlsx.py", line 788, in dump_from_session_manager
    self.dump(data, stream)
  File "/snap/checkbox18/current/lib/python3.6/site-packages/plainbox/impl/exporter/xlsx.py", line 798, in dump
    self.write_systeminfo(data)
  File "/snap/checkbox18/current/lib/python3.6/site-packages/plainbox/impl/exporter/xlsx.py", line 332, in write_systeminfo
    hw_info = self._hw_collection(data)
  File "/snap/checkbox18/current/lib/python3.6/site-packages/plainbox/impl/exporter/xlsx.py", line 272, in _hw_collection
    '.1f')) for i in data["resource_map"][resource]]
  File "/snap/checkbox18/current/lib/python3.6/site-packages/plainbox/impl/exporter/xlsx.py", line 272, in <listcomp>
    '.1f')) for i in data["resource_map"][resource]]
KeyError: 'total'

  Please report a bug including the information from the paragraph above. To
  report the bug visit https://bugs.launchpad.net/checkbox-ng/+filebug

  We are sorry for the inconvenience!

Related branches

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

@betty, even after removing the two sysfs jobs?

sysfs_attachment
system_info_json

Revision history for this message
Betty Lin (bettyl) wrote :

@sylvain, when the tests stick on the two sysfs jobs, I use ctrl+c to interrupt them and then skip them to continue the test. After finished the test, the tar file doesn't generate.

Revision history for this message
Maciej Kisielewski (kissiel) wrote :

I was able to reproduce that on an x86_64 machine.

Changed in plainbox-provider-checkbox:
status: New → In Progress
assignee: nobody → Maciej Kisielewski (kissiel)
Revision history for this message
Maciej Kisielewski (kissiel) wrote :
Changed in plainbox-provider-checkbox:
status: In Progress → Fix Committed
Changed in plainbox-provider-checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.