Comment 9 for bug 1166935

Revision history for this message
Tyler Baker (tyler-baker) wrote : Re: [Bug 1166935] Re: crash while processing results bundle after dashboard bundle forma update

Hi Senthil,

On 11 April 2013 10:14, Senthil Kumaran S <email address hidden>wrote:

> Hi Tyler,
>
> On Thu, Apr 11, 2013 at 9:41 AM, Tyler Baker <email address hidden>
> wrote:
> > The case is that everyone of the those test definitions _has_ a name,
> > description, and format defined. However, no test definition includes a
> > version definition. My guess is that most of the other test definitions
> > will be lacking the version definition as well.
>
> This is because version is not required for those test definitions
> which reside in git or bzr repository. lava-test-shell will get the
> version from git/bzr repo automatically. Only if the test definition
> is referred from a URL the version parameter should be explicit.
>

I understand now, thanks for the clarification. I would suggest "Only if
the test definition
is referred from a URL the version parameter should be explicit." be
included in the documentation if it is not already.

> > - Document the changes to the test definitions, and the rationale. i.e.
> > that name, description, format, version are required, and why.
>
> I shall document it in lava-test-shell sometime tomorrow.
>

Much appreciated.

> > - Update the test definitions from
> > https://git.linaro.org/gitweb?p=qa/test-definitions.git;a=summary
>
> This is up-to-date now.
>
> > *- *Identify V.L.O users who use lava-test-shell, point them to the
> > documentation, and ask them to update their tests.
>
> These users are identified. As soon the document is available we will
> point them to it.
>

Excellent!

> > We need to preemptive, and transparent if we plan to break
> > compatibility.
>
> I agree :)
>
> Thank You.
> --
> Senthil Kumaran S
> http://www.stylesen.org/
> http://www.sasenthilkumaran.com/
>
> --
> You received this bug notification because you are a member of Linaro
> Validation Team, which is subscribed to LAVA Dispatcher.
> https://bugs.launchpad.net/bugs/1166935
>
> Title:
> crash while processing results bundle after dashboard bundle format
> update
>
> Status in LAVA Dispatcher:
> In Progress
>
> Bug description:
> Running everything from trunk on a freshly created instance, I see the
> following error:
>
> <LAVA_DISPATCHER>2013-04-09 05:57:07 PM WARNING: [ACTION-E]
> lava_test_shell is finished with error (ValidationError: Object has
> incorrect type (expected string)
> object_expr='object.test_runs[0].testdef_metadata.description',
> schema_expr='schema.properties.test_runs.items.properties.testdef_metadata.properties.description.type')).
> <LAVA_DISPATCHER>2013-04-09 05:57:07 PM INFO: Submitting the test result
> with parameters = {u'token': '<HIDDEN>', u'stream': u'/anonymous/qemu/',
> u'server': u'http://terceiro@localhost/RPC2/'}
> <LAVA_DISPATCHER>2013-04-09 05:57:07 PM ERROR: Error adding host result
> bundle /tmp/tmp8TL_hY/lava-test-shellW5j2JL.bundle
> Traceback (most recent call last):
> File
> "/srv/lava/.<email address hidden>/lava_dispatcher/actions/launch_control.py",
> line 159, in _get_results_from_host
> doc = DocumentIO.load(f)[1]
> File
> "/srv/lava/.cache/branch<email address hidden>/linaro_dashboard_bundle/io.py",
> line 123, in load
> doc = json.load(stream, parse_float=decimal.Decimal,
> object_pairs_hook=object_pairs_hook)
> File
> "/srv/lava/.cache/eggs/simplejson-2.4.0-py2.7-linux-x86_64.egg/simplejson/__init__.py",
> line 372, in load
> use_decimal=use_decimal, **kw)
> File
> "/srv/lava/.cache/eggs/simplejson-2.4.0-py2.7-linux-x86_64.egg/simplejson/__init__.py",
> line 445, in loads
> return cls(encoding=encoding, **kw).decode(s)
> File
> "/srv/lava/.cache/eggs/simplejson-2.4.0-py2.7-linux-x86_64.egg/simplejson/decoder.py",
> line 402, in decode
> obj, end = self.raw_decode(s, idx=_w(s, 0).end())
> File
> "/srv/lava/.cache/eggs/simplejson-2.4.0-py2.7-linux-x86_64.egg/simplejson/decoder.py",
> line 420, in raw_decode
> raise JSONDecodeError("No JSON object could be decoded", s, idx)
> JSONDecodeError: No JSON object could be decoded: line 1 column 0 (char
> 0)
> <LAVA_DISPATCHER>2013-04-09 05:57:07 PM DEBUG: server RPC endpoint URL:
> http://terceiro@localhost/RPC2/
> <LAVA_DISPATCHER>2013-04-09 05:57:07 PM INFO: Dashboard :
> http://localhost/dashboard/permalink/bundle/9558159cfcb4e56fb4f3ba9519b676a0531d26d9/
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/lava-dispatcher/+bug/1166935/+subscriptions
>

--
Tyler Baker
Technical Architect, Automation & CI
Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro
http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog