Hi Neil,

 

I tried creating charts using query api, I am able to get results using test suite and test name in query.

 

I need help in 2 issues:-

 

1)when I click on view chart, it just keep on showing progress bar indefinitely and query results are not getting populated as chart.

 

2)Also I am not able to select query group label in my setup on creating query.e.g: In https://staging.validation.linaro.org/results/query queries are grouped as “lava” but in my case I cant do anything on clicking “select group”.

Is there any know issue with any specific lava version?

FYI I am using below version

 

$lava-tool version

Dashboard Client version: 0.21

 

>>> print server.dashboard.version()

2017.6-1

 

 

Thanks,

Varun

 

From: Neil Williams [mailto:neil.williams@linaro.org]
Sent: Thursday, July 6, 2017 6:37 PM
To: Sharma, Varun <varun.sharma@intel.com>
Cc: lava-users@lists.linaro.org
Subject: Re: [Lava-users] Regarding Image Charts2.0

 

On 6 July 2017 at 13:45, Sharma, Varun <varun.sharma@intel.com> wrote:

Hi Neil,

 

Thanks for your quick reply.

 

ok, then I will try to focus on Queries api with charts as its new api.

 

As of now I am just trying to see what kind of visualization Chart can give using query api for Pass/ Fail tests only.

 

In future I might also try measurement test.

 

Some questions:-

 

Data from “lava-test-case” suite can be accessed using query api? If yes how?

 

Any examples which I can see, as of now I am going through https://validation.linaro.org/static/docs/v2/lava-queries-charts.html#result-queries  but some examples are missing their…

 

 

Yes, we are aware that the query and charts documentation needs some extension.

 

One way to look at queries is to look at how a saved query can also be mapped as a URL: From one of our examples:

https://staging.validation.linaro.org/results/query/+custom?entity=testsuite&conditions=testsuite__name__icontains__0_server-pipeline-unittests,namedtestattribute__path__icontains__qemu-server-pipeline.yaml

 

To break that down, the query is:

Content Type

test suite

 

There are two conditions of the Query. These are:

testsuite

name

icontains

0_server-pipeline-unittests

namedtestattribute

path

icontains

qemu-server-pipeline.yaml

The chart using that query then tracks the number of test cases executed by that test suite.

 

Alternatively, to track test cases over time, use a test job query:

https://staging.validation.linaro.org/results/query/+custom?entity=testjob&conditions=namedtestattribute__lava.series__exact__release-testing

 

Content Type

test job

 

In this case, the conditions are:

namedtestattribute

lava.series

exact

release-testing

This can be extended to track individual test cases instead of all test cases in test jobs matching the metadata.

 

The metadata comes from the test job, e.g.

https://staging.validation.linaro.org/scheduler/job/178038/definition#defline16

 

You'll need an account on staging.validation.linaro.org to see the charts themselves.

 

 

 

Any change in test case needed to support query api? And if user want to see further info on clinking chart how to design that query api?

 

No, there is no need to change the test shell definition or test cases.

 

What you most likely will want to change or add is the metadata in the test job submission which will make it easier to select the right test jobs for your queries and the charts which use those queries.

 

https://validation.linaro.org/static/docs/v2/standard-test-jobs.html#metadata

 

 

 

Please share your view.

 

Thanks,

Varun

 

From: Neil Williams [mailto:neil.williams@linaro.org]
Sent: Thursday, July 6, 2017 4:51 PM
To: Sharma, Varun <
varun.sharma@intel.com>
Cc:
lava-users@lists.linaro.org
Subject: Re: [Lava-users] Regarding Image Charts2.0

 

 

 

On 6 July 2017 at 12:11, Sharma, Varun <varun.sharma@intel.com> wrote:

Dear lava Community,

 

 

I want to use Image charts2.0 for viewing my lava job results.

 

Filters, Image Reports and Image Reports 2.0 are for V1 test results using Bundles and Bundle streams only. This support will be going away soon, it probably is not worth learning at this stage but there is documentation here: https://validation.linaro.org/static/docs/v1/

No Filter or Image Report can be used to view V2 test results.

 

Queries and Charts are for V2 test results only. Queries and Charts cannot be used to view V1 test results.

 

Which type of test jobs are you running?

 

 

I am using “lava-test-case” to check pass/fail & I am getting results also.

 

steps:

       - lava-test-case linux-linaro-ubuntu-pwd --shell pwd

       - lava-test-case linux-linaro-ubuntu-uname --shell uname -a

       - lava-test-case linux-linaro-ubuntu-vmstat --shell vmstat

 

 

I want to know how to get these results in image charts, I can see it ask to add chart & addfilter , but there no data is available when I try to add filter?

 

Similarly if I have to use query api, what kind of query should be used to fetch test data from lava suite?

 

Detailed info to use image chart will be appreciated, as I am new to Charts/Lava…or at any link.

 

 

 


 

--



 

--


Neil Williams
=============
neil.williams@linaro.org
http://www.linux.codehelp.co.uk/