Snap packages do not need a date any more

Bug #1584829 reported by James Jesudason
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Support Library
Fix Released
Critical
Paul Larson
HEXR
Fix Released
Critical
Sheila Miguez

Bug Description

The hexr parser is expecting a date for snap packages, but that field has been removed. This is blocking submissions from being processed by C3:

[2016-05-23 15:57:59,285: ERROR/MainProcess] Task uploads.tasks.create_machinereport_task[f4ccbc56-83b0-42b2-9ec2-a95221745ca8] raised exception: KeyError(u'date',)
Traceback (most recent call last):
  File "/srv/certification.staging.canonical.com/production/certification-219/lib/python2.7/site-packages/celery/task/trace.py", line 228, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/srv/certification.staging.canonical.com/production/certification-219/lib/python2.7/site-packages/celery/task/trace.py", line 415, in __protected_call__
    return self.run(*args, **kwargs)
  File "/srv/certification.staging.canonical.com/production/certification-219/apps/uploads/tasks.py", line 31, in create_machinereport_task
    parse_stream(StringIO(submission.data)),
  File "/srv/certification.staging.canonical.com/production/certification-219/apps/uploads/checkbox_parser.py", line 22, in parse_stream
    parser.run(TestRun, messages=messages)
  File "/srv/certification.staging.canonical.com/production/certification-219/lib/python2.7/site-packages/checkbox_support/parsers/submission.py", line 1297, in run
    self.parseRoot(result, root)
  File "/srv/certification.staging.canonical.com/production/certification-219/lib/python2.7/site-packages/checkbox_support/parsers/submission.py", line 1270, in parseRoot
    parser(result, child)
  File "/srv/certification.staging.canonical.com/production/certification-219/lib/python2.7/site-packages/checkbox_support/parsers/submission.py", line 1227, in parseSoftware
    parser(result, child)
  File "/srv/certification.staging.canonical.com/production/certification-219/lib/python2.7/site-packages/checkbox_support/parsers/submission.py", line 1124, in parseSnapPackages
    result.addSnapPackage(snap_package)
  File "/srv/certification.staging.canonical.com/production/certification-219/lib/python2.7/site-packages/checkbox_support/parsers/submission.py", line 860, in addSnapPackage
    "date": snap_package["properties"]["date"],
KeyError: u'date'

Related branches

James Jesudason (jamesj)
information type: Proprietary → Public
Changed in hexr:
assignee: nobody → Sheila Miguez (codersquid)
status: New → In Progress
Changed in checkbox-support:
milestone: none → 0.26
assignee: nobody → Paul Larson (pwlars)
importance: Undecided → Critical
status: New → Fix Committed
Revision history for this message
Sheila Miguez (codersquid) wrote :

This is released to staging. I created a machine record and submitted the previously failing submission. https://certification.staging.canonical.com/hardware/201606-41581/submission/107447/

Changed in hexr:
status: In Progress → Fix Released
Revision history for this message
Sheila Miguez (codersquid) wrote :

Forgot to note, with checkbox 0.26.dev0.

Revision history for this message
Ara Pulido (ara) wrote :

Moving this to Fix Committed until we have this in production

Changed in hexr:
status: Fix Released → Fix Committed
Changed in hexr:
status: Fix Committed → Fix Released
Pierre Equoy (pieq)
Changed in checkbox-support:
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.