submission.json isn't correct for field "raw-devices-dmi"

Bug #1762546 reported by Taihsiang Ho
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Fix Released
Critical
Sylvain Pineau

Bug Description

I run desktop sru launcher and noticed the launcher did not send the submission for me automatically. Then I went to try to submit manually. When submitting submission.tar.xz, I was blocked by "400 Client Error: BAD REQUEST". I checked the submission.json of submission.tar.xz by "jq . submission.json", I got

ubuntu@201306-13868:~/study-bad-submit$ jq . submission.json
parse error: Expected value before ',' at line 8520, column 24

I went to have a look of the submission.json, I noticed the bad format:

        }
    ],
    "raw-devices-dmi": ,
    "modprobe-info": [
      {
        "options": "index=-2",
        "module": "bt87x"
      },

Platforms that could reproduce this issue:

Dell Inspiron 7537 Portable (201306-13868), trusty (3.13 kernel)

dpkg -l *plainbox* *checkbox*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===================-==============-==============-===========================================
ii checkbox-autostart- 0.4+git2018033 all Automatic system testing for desktop system
ii checkbox-gui 0.35+bzr3986+p amd64 QML based interface for system testing base
ii checkbox-ng 1.1.0+git20180 all CheckBoxNG test runner
ii checkbox-ng-service 0.23+bzr4122+p all CheckBox D-Bus service (transitional packag
un checkbox-qt <none> <none> (no description available)
un plainbox <none> <none> (no description available)
ii plainbox-insecure-p 1.1.0+git20180 all policykit policy required to use CheckBoxNG
ii plainbox-provider-c 0.43.0+git2018 amd64 CheckBox provider for PlainBox
ii plainbox-provider-r 0.36.0+git2018 amd64 CheckBox generic resource jobs provider
ii plainbox-provider-s 1.10.0+git2018 all CheckBox SRU jobs provider
un plainbox-secure-pol <none> <none> (no description available)
ii python3-checkbox-ng 1.1.0+git20180 all CheckBoxNG test runner (Python 3 library)
ii python3-checkbox-su 0.37.0+git2018 all collection of Python modules used by PlainB
un python3-plainbox <none> <none> (no description available)

Related branches

Revision history for this message
Taihsiang Ho (tai271828) wrote :
Revision history for this message
Taihsiang Ho (tai271828) wrote :

Similar but maybe not the same bug in my opinion https://bugs.launchpad.net/plainbox-provider-checkbox/+bug/1755819

Revision history for this message
Taihsiang Ho (tai271828) wrote :

ubuntu@201306-13868:~$ sudo dmidecode -t bios -t system | python3 -m plainbox dev parse dmidecode | jq '[.[0]."_attributes" + {"category": .[0]."category"}, .[1]."_attributes" + {"category": .[1]."category"}]'
error: syntax error, unexpected QQSTRING_START, expecting IDENT
[.[0]."_attributes" + {"category": .[0]."category"}, .[1]."_attributes" + {"category": .[1]."category"}]
      ^
1 compile error
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
BrokenPipeError: [Errno 32] Broken pipe
ubuntu@201306-13868:~$

ubuntu@201306-13868:~$ sudo dmidecode -t bios -t system | python3 -m plainbox dev parse dmidecode
[
    {
        "_attributes": {
            "bios_address": "0xE0000",
            "bios_bios_revision": "1.4",
            "bios_firmware_revision": "1.4",
            "bios_release_date": "10/04/2016",
            "bios_rom_size": "6656 kB",
            "bios_runtime_size": "128 kB",
            "bios_vendor": "Dell Inc.",
            "bios_version": "A14"
        },
        "category": "BIOS"
    },
    {
        "_attributes": {
            "system_family": "Shark Bay ULT",
            "system_name": "Inspiron 7537",
            "system_sku_number": "Inspiron 7537",
            "system_uuid": "4C4C4544-0000-0010-8000-80C04F000000",
            "system_vendor": "Dell Inc.",
            "system_version": "Not Specified",
            "system_wake_up_type": "Power Switch"
        },
        "category": "SYSTEM"
    }
]
ubuntu@201306-13868:~$

ubuntu@201306-13868:~$ sudo dmidecode -t bios -t system | pastebinit
http://paste.ubuntu.com/p/sNRfhNJQT2/

Changed in checkbox-ng:
assignee: nobody → Sylvain Pineau (sylvain-pineau)
affects: checkbox-ng → plainbox-provider-checkbox
Changed in plainbox-provider-checkbox:
importance: Undecided → Critical
status: New → In Progress
milestone: none → 0.44.0
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.