On 8 April 2013 11:21, Senthil Kumaran S <email address hidden> wrote:
> Hi Yongqin,
>
> On Mon, 2013-04-08 at 03:08 +0000, Yongqin Liu wrote:
> > add some lines like following should be OK I guess:
> >
> > if 'measurement' in in res:
> > res['measurement'] = float(res['measurement'])
>
> This will not be the right fix as Michael pointed out. The DocumentIO
> class in io.py of linaro-python-dashboard-bundle says 'use_decimal' for
> json.dumps() hence the above fix will not work. Will come with a better
> fix in sometime.
>
> Thank You.
>
> --
> Senthil Kumaran
> 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/1163661
>
> Title:
> Not able to map float value to measurement field
>
> Status in LAVA Dispatcher:
> In Progress
>
> Bug description:
> After parsing, while mapping the fields to values lava_test_shell, It
> was throwing error
>
> root@master [rc=0]# <LAVA_DISPATCHER>2013-04-02 09:06:13 AM WARNING:
> [ACTION-E] lava_test_shell is finished with error (ValidationError:
> Object has incorrect type (expected number)
> object_expr='object.test_runs[0].test_results[0].measurement',
>
> schema_expr='schema.properties.test_runs.items.properties.test_results.items.properties.measurement.type')).
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/lava-dispatcher/+bug/1163661/+subscriptions
>
in lava-android-test, it is done in such way. bazaar. launchpad. net/~linaro- validation/ lava-android- test/trunk/ view/head: /lava_android_ test/testdef. py#L527
If that's not right, please help to fix the following place too.
http://
On 8 April 2013 11:21, Senthil Kumaran S <email address hidden> wrote:
> Hi Yongqin, 'measurement' ]) python- dashboard- bundle says 'use_decimal' for www.stylesen. org/ www.sasenthilku maran.com/ /bugs.launchpad .net/bugs/ 1163661 R>2013- 04-02 09:06:13 AM WARNING: expr='object. test_runs[ 0].test_ results[ 0].measurement' , expr='schema. properties. test_runs. items.propertie s.test_ results. items.propertie s.measurement. type')) . /bugs.launchpad .net/lava- dispatcher/ +bug/1163661/ +subscriptions
>
> On Mon, 2013-04-08 at 03:08 +0000, Yongqin Liu wrote:
> > add some lines like following should be OK I guess:
> >
> > if 'measurement' in in res:
> > res['measurement'] = float(res[
>
> This will not be the right fix as Michael pointed out. The DocumentIO
> class in io.py of linaro-
> json.dumps() hence the above fix will not work. Will come with a better
> fix in sometime.
>
> Thank You.
>
> --
> Senthil Kumaran
> http://
> http://
>
> --
> You received this bug notification because you are a member of Linaro
> Validation Team, which is subscribed to LAVA Dispatcher.
> https:/
>
> Title:
> Not able to map float value to measurement field
>
> Status in LAVA Dispatcher:
> In Progress
>
> Bug description:
> After parsing, while mapping the fields to values lava_test_shell, It
> was throwing error
>
> root@master [rc=0]# <LAVA_DISPATCHE
> [ACTION-E] lava_test_shell is finished with error (ValidationError:
> Object has incorrect type (expected number)
> object_
>
> schema_
>
> To manage notifications about this bug go to:
> https:/
>
-- ------- ------- ------- ------- ------- ------- ------- ------- lists.linaro. org/mailman/ listinfo/ linaro- android lists.linaro. org/pipermail/ linaro- validation
Thanks,
Yongqin Liu
-------
#mailing list
<email address hidden> <email address hidden>
http://
<email address hidden> <email address hidden>
http://