Dear lava Community,
I want to use Image charts2.0 for viewing my lava job results.
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.
Thanks, Varun
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.
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... but some examples are missing their…
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?
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.commailto: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.orgmailto:neil.williams@linaro.org http://www.linux.codehelp.co.uk/
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...
To break that down, the query is: Content Typetest 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&a...
Content Typetest 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#deflin...
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#metadat...
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/
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.commailto: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... 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...
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&a...
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#deflin...
You'll need an account on staging.validation.linaro.orghttp://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#metadat...
Please share your view.
Thanks, Varun
From: Neil Williams [mailto:neil.williams@linaro.orgmailto:neil.williams@linaro.org] Sent: Thursday, July 6, 2017 4:51 PM To: Sharma, Varun <varun.sharma@intel.commailto:varun.sharma@intel.com> Cc: lava-users@lists.linaro.orgmailto: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.commailto: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.orgmailto:neil.williams@linaro.org http://www.linux.codehelp.co.uk/
--
Neil Williams ============= neil.williams@linaro.orgmailto:neil.williams@linaro.org http://www.linux.codehelp.co.uk/
On 18 July 2017 at 15:11, Sharma, Varun varun.sharma@intel.com wrote:
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.
Go back to the Query, make sure the Query displays some results when you click on the Results button.
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?
I think that could be a bug. https://projects.linaro.org/browse/LAVA-1002
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/
--
Neil Williams
neil.williams@linaro.org http://www.linux.codehelp.co.uk/
Hi Neil,
Neil: Go back to the Query, make sure the Query displays some results when you click on the Results button.
Varun: {
In Results-> Queries, I have 2 queries both show results according to test job name or suite, so job results are coming acc to query
e.g:- test-job-query show some results
URL:- http://lavaurl/results/query/~varun/lava-testjob-query
Then on same query result page if i click on view chart or Create new chart using that query, it show new window with progress bar indefinitely...and nothing happens…I am facing this issue?
Also in another flow to create chart in addition to above:-
Results->Charts->Add newchart-> then add query -> in Query field if i add created query "~varun/lava-testjob-query" if still says "Query: field required" and query itself is not added to chart.
Also, I am not able to see any failure logs also for chart creating start/failure, can you point out how to debug this?
I am current running lava on debian stretch , 2017.6-1. Can you share stable version getting used at https://staging.validation.linaro.org/results/query ?
}
Thanks, Varun
From: Neil Williams [mailto:neil.williams@linaro.org] Sent: Tuesday, July 18, 2017 7:55 PM To: Sharma, Varun varun.sharma@intel.com Cc: lava-users@lists.linaro.org Subject: Re: [Lava-users] Regarding Image Charts2.0
On 18 July 2017 at 15:11, Sharma, Varun <varun.sharma@intel.commailto:varun.sharma@intel.com> wrote: 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.
Go back to the Query, make sure the Query displays some results when you click on the Results button.
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?
I think that could be a bug. https://projects.linaro.org/browse/LAVA-1002
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.orgmailto:neil.williams@linaro.org] Sent: Thursday, July 6, 2017 6:37 PM
To: Sharma, Varun <varun.sharma@intel.commailto:varun.sharma@intel.com> Cc: lava-users@lists.linaro.orgmailto: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.commailto: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... 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...
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&a...
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#deflin...
You'll need an account on staging.validation.linaro.orghttp://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#metadat...
Please share your view.
Thanks, Varun
From: Neil Williams [mailto:neil.williams@linaro.orgmailto:neil.williams@linaro.org] Sent: Thursday, July 6, 2017 4:51 PM To: Sharma, Varun <varun.sharma@intel.commailto:varun.sharma@intel.com> Cc: lava-users@lists.linaro.orgmailto: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.commailto: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.orgmailto:neil.williams@linaro.org http://www.linux.codehelp.co.uk/
--
Neil Williams ============= neil.williams@linaro.orgmailto:neil.williams@linaro.org http://www.linux.codehelp.co.uk/
--
Neil Williams ============= neil.williams@linaro.orgmailto:neil.williams@linaro.org http://www.linux.codehelp.co.uk/
On 19 July 2017 at 10:31, Sharma, Varun varun.sharma@intel.com wrote:
Hi Neil,
Neil: Go back to the Query, make sure the Query displays some results when you click on the Results button.
Varun: {
In Results-> Queries, I have 2 queries both show results according to test job name or suite, so job results are coming acc to query
e.g:- test-job-query show some results
URL:- http://lavaurl/results/query*/~varun/lava-testjob-query*
Then on same query result page if i click on view chart or Create new chart using that query, it show new window with progress bar indefinitely...and nothing happens…I am facing this issue?
Also in another flow to create chart in addition to above:-
Results->Charts->Add newchart-> then add query -> in Query field if i add created query *"~varun/lava-testjob-query*" if still says "Query: field required" and query itself is not added to chart.
Also, I am not able to see any failure logs also for chart creating start/failure, can you point out how to debug this?
Charts are done primarily in javascript.
I am current running lava on debian stretch , *2017.6-1. *Can you share stable version getting used at https://staging.validation. linaro.org/results/query ?
Staging is running a nightly build from the master branch of lava-server and lava-dispatcher. That will be based on 2017.7-1 which is in Debian unstable. I'm currently waiting for 2017.7-1 to be accepted into stretch-backports. In the meantime, you can use 2017.7-1 from the production repo or the same build as staging from the staging-repo using the jessie-backports suite.
See https://staging.validation.linaro.org/static/docs/v2/installing_on_debian.ht...
However, I don't think there have been changes in this area since 2017.6.
*From:* Neil Williams [mailto:neil.williams@linaro.org] *Sent:* Tuesday, July 18, 2017 7:55 PM
*To:* Sharma, Varun varun.sharma@intel.com *Cc:* lava-users@lists.linaro.org *Subject:* Re: [Lava-users] Regarding Image Charts2.0
On 18 July 2017 at 15:11, Sharma, Varun varun.sharma@intel.com wrote:
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.
Go back to the Query, make sure the Query displays some results when you click on the Results button.
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?
I think that could be a bug. https://projects.linaro.org/browse/LAVA-1002
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/
--
Neil Williams
neil.williams@linaro.org http://www.linux.codehelp.co.uk/
--
Neil Williams
neil.williams@linaro.org http://www.linux.codehelp.co.uk/
Hi Sharma,
If you open the console in your browser of choice and reload the 'view chart' page from working query page, do you encounter any errors?
Thanks,
On 07/19/2017 12:02 PM, Neil Williams wrote:
On 19 July 2017 at 10:31, Sharma, Varun <varun.sharma@intel.com mailto:varun.sharma@intel.com> wrote:
Hi Neil, Neil: Go back to the Query, make sure the Query displays some results when you click on the Results button. Varun: { In Results-> Queries, I have 2 queries both show results according to test job name or suite, so job results are coming acc to query e.g:- test-job-query show some results URL:- http://lavaurl/results/query*/~varun/lava-testjob-query* Then on same query result page if i click on view chart or Create new chart using that query, it show new window with progress bar indefinitely...and nothing happens…I am facing this issue? Also in another flow to create chart in addition to above:- Results->Charts->Add newchart-> then add query -> in Query field if i add created query *"~varun/lava-testjob-query*" if still says "Query: field required" and query itself is not added to chart. Also, I am not able to see any failure logs also for chart creating start/failure, can you point out how to debug this?
Charts are done primarily in javascript.
I am current running lava on debian stretch , *2017.6-1. *Can you share stable version getting used at https://staging.validation.linaro.org/results/query <https://staging.validation.linaro.org/results/query> ?
Staging is running a nightly build from the master branch of lava-server and lava-dispatcher. That will be based on 2017.7-1 which is in Debian unstable. I'm currently waiting for 2017.7-1 to be accepted into stretch-backports. In the meantime, you can use 2017.7-1 from the production repo or the same build as staging from the staging-repo using the jessie-backports suite.
See https://staging.validation.linaro.org/static/docs/v2/installing_on_debian.ht...
However, I don't think there have been changes in this area since 2017.6.
*From:*Neil Williams [mailto:neil.williams@linaro.org <mailto:neil.williams@linaro.org>] *Sent:* Tuesday, July 18, 2017 7:55 PM *To:* Sharma, Varun <varun.sharma@intel.com <mailto:varun.sharma@intel.com>> *Cc:* lava-users@lists.linaro.org <mailto:lava-users@lists.linaro.org> *Subject:* Re: [Lava-users] Regarding Image Charts2.0 On 18 July 2017 at 15:11, Sharma, Varun <varun.sharma@intel.com <mailto:varun.sharma@intel.com>> wrote: 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. Go back to the Query, make sure the Query displays some results when you click on the Results button. 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 <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? I think that could be a bug. https://projects.linaro.org/browse/LAVA-1002 <https://projects.linaro.org/browse/LAVA-1002> 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 <mailto:neil.williams@linaro.org>] *Sent:* Thursday, July 6, 2017 6:37 PM *To:* Sharma, Varun <varun.sharma@intel.com <mailto:varun.sharma@intel.com>> *Cc:* lava-users@lists.linaro.org <mailto: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 <mailto: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 <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 <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 <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 <https://staging.validation.linaro.org/scheduler/job/178038/definition#defline16> You'll need an account on staging.validation.linaro.org <http://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 <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 <mailto:neil.williams@linaro.org>] *Sent:* Thursday, July 6, 2017 4:51 PM *To:* Sharma, Varun <varun.sharma@intel.com <mailto:varun.sharma@intel.com>> *Cc:* lava-users@lists.linaro.org <mailto: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 <mailto: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/ <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 <mailto:neil.williams@linaro.org> http://www.linux.codehelp.co.uk/ <http://www.linux.codehelp.co.uk/> -- Neil Williams ============= neil.williams@linaro.org <mailto:neil.williams@linaro.org> http://www.linux.codehelp.co.uk/ <http://www.linux.codehelp.co.uk/> -- Neil Williams ============= neil.williams@linaro.org <mailto:neil.williams@linaro.org> http://www.linux.codehelp.co.uk/ <http://www.linux.codehelp.co.uk/>
--
Neil Williams
neil.williams@linaro.org mailto:neil.williams@linaro.org http://www.linux.codehelp.co.uk/
Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users
HI Stevan,
No Error, it just keeps on loading indefinitely on clicking View chart.
Attached screenshot FYR.
Thanks, Varun
From: Stevan Radakovic [mailto:stevan.radakovic@linaro.org] Sent: Wednesday, July 19, 2017 3:35 PM To: Neil Williams neil.williams@linaro.org; Sharma, Varun varun.sharma@intel.com Cc: lava-users@lists.linaro.org Subject: Re: [Lava-users] Regarding Image Charts2.0
Hi Sharma, If you open the console in your browser of choice and reload the 'view chart' page from working query page, do you encounter any errors?
Thanks, On 07/19/2017 12:02 PM, Neil Williams wrote: On 19 July 2017 at 10:31, Sharma, Varun <varun.sharma@intel.commailto:varun.sharma@intel.com> wrote: Hi Neil,
Neil: Go back to the Query, make sure the Query displays some results when you click on the Results button.
Varun: {
In Results-> Queries, I have 2 queries both show results according to test job name or suite, so job results are coming acc to query
e.g:- test-job-query show some results
URL:- http://lavaurl/results/query/~varun/lava-testjob-query
Then on same query result page if i click on view chart or Create new chart using that query, it show new window with progress bar indefinitely...and nothing happens…I am facing this issue?
Also in another flow to create chart in addition to above:-
Results->Charts->Add newchart-> then add query -> in Query field if i add created query "~varun/lava-testjob-query" if still says "Query: field required" and query itself is not added to chart.
Also, I am not able to see any failure logs also for chart creating start/failure, can you point out how to debug this?
Charts are done primarily in javascript.
I am current running lava on debian stretch , 2017.6-1. Can you share stable version getting used at https://staging.validation.linaro.org/results/query ?
Staging is running a nightly build from the master branch of lava-server and lava-dispatcher. That will be based on 2017.7-1 which is in Debian unstable. I'm currently waiting for 2017.7-1 to be accepted into stretch-backports. In the meantime, you can use 2017.7-1 from the production repo or the same build as staging from the staging-repo using the jessie-backports suite.
See https://staging.validation.linaro.org/static/docs/v2/installing_on_debian.ht...
However, I don't think there have been changes in this area since 2017.6.
From: Neil Williams [mailto:neil.williams@linaro.orgmailto:neil.williams@linaro.org] Sent: Tuesday, July 18, 2017 7:55 PM
To: Sharma, Varun <varun.sharma@intel.commailto:varun.sharma@intel.com> Cc: lava-users@lists.linaro.orgmailto:lava-users@lists.linaro.org Subject: Re: [Lava-users] Regarding Image Charts2.0
On 18 July 2017 at 15:11, Sharma, Varun <varun.sharma@intel.commailto:varun.sharma@intel.com> wrote: 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.
Go back to the Query, make sure the Query displays some results when you click on the Results button.
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?
I think that could be a bug. https://projects.linaro.org/browse/LAVA-1002
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.orgmailto:neil.williams@linaro.org] Sent: Thursday, July 6, 2017 6:37 PM
To: Sharma, Varun <varun.sharma@intel.commailto:varun.sharma@intel.com> Cc: lava-users@lists.linaro.orgmailto: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.commailto: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... 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...
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&a...
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#deflin...
You'll need an account on staging.validation.linaro.orghttp://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#metadat...
Please share your view.
Thanks, Varun
From: Neil Williams [mailto:neil.williams@linaro.orgmailto:neil.williams@linaro.org] Sent: Thursday, July 6, 2017 4:51 PM To: Sharma, Varun <varun.sharma@intel.commailto:varun.sharma@intel.com> Cc: lava-users@lists.linaro.orgmailto: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.commailto: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.orgmailto:neil.williams@linaro.org http://www.linux.codehelp.co.uk/
--
Neil Williams ============= neil.williams@linaro.orgmailto:neil.williams@linaro.org http://www.linux.codehelp.co.uk/
--
Neil Williams ============= neil.williams@linaro.orgmailto:neil.williams@linaro.org http://www.linux.codehelp.co.uk/
--
Neil Williams ============= neil.williams@linaro.orgmailto:neil.williams@linaro.org http://www.linux.codehelp.co.uk/
_______________________________________________
Lava-users mailing list
Lava-users@lists.linaro.orgmailto:Lava-users@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lava-users
--
Stevan Radaković | LAVA Engineer
Linaro.org <www.linaro.orghttp://www.linaro.org> │ Open source software for ARM SoCs
Can you check the /var/log/lava-server/django.log output when you try to access the 'view chart' page? This indicates a server error if there are no problems with JS..
If you can pastebin the output that'd be great.
On 07/19/2017 03:49 PM, Sharma, Varun wrote:
HI Stevan,
No Error, it just keeps on loading indefinitely on clicking View chart.
Attached screenshot FYR.
Thanks,
Varun
*From:*Stevan Radakovic [mailto:stevan.radakovic@linaro.org] *Sent:* Wednesday, July 19, 2017 3:35 PM *To:* Neil Williams neil.williams@linaro.org; Sharma, Varun varun.sharma@intel.com *Cc:* lava-users@lists.linaro.org *Subject:* Re: [Lava-users] Regarding Image Charts2.0
Hi Sharma,
If you open the console in your browser of choice and reload the 'view chart' page from working query page, do you encounter any errors?
Thanks,
On 07/19/2017 12:02 PM, Neil Williams wrote:
On 19 July 2017 at 10:31, Sharma, Varun <varun.sharma@intel.com <mailto:varun.sharma@intel.com>> wrote: Hi Neil, Neil: Go back to the Query, make sure the Query displays some results when you click on the Results button. Varun: { In Results-> Queries, I have 2 queries both show results according to test job name or suite, so job results are coming acc to query e.g:- test-job-query show some results URL:- http://lavaurl/results/query <http://lavaurl/results/query>*/~varun/lava-testjob-query* Then on same query result page if i click on view chart or Create new chart using that query, it show new window with progress bar indefinitely...and nothing happens…I am facing this issue? Also in another flow to create chart in addition to above:- Results->Charts->Add newchart-> then add query -> in Query field if i add created query *"~varun/lava-testjob-query*" if still says "Query: field required" and query itself is not added to chart. Also, I am not able to see any failure logs also for chart creating start/failure, can you point out how to debug this? Charts are done primarily in javascript. I am current running lava on debian stretch , *2017.6-1. *Can you share stable version getting used at https://staging.validation.linaro.org/results/query ? Staging is running a nightly build from the master branch of lava-server and lava-dispatcher. That will be based on 2017.7-1 which is in Debian unstable. I'm currently waiting for 2017.7-1 to be accepted into stretch-backports. In the meantime, you can use 2017.7-1 from the production repo or the same build as staging from the staging-repo using the jessie-backports suite. See https://staging.validation.linaro.org/static/docs/v2/installing_on_debian.html#lava-repositories However, I don't think there have been changes in this area since 2017.6. *From:*Neil Williams [mailto:neil.williams@linaro.org <mailto:neil.williams@linaro.org>] *Sent:* Tuesday, July 18, 2017 7:55 PM *To:* Sharma, Varun <varun.sharma@intel.com <mailto:varun.sharma@intel.com>> *Cc:* lava-users@lists.linaro.org <mailto:lava-users@lists.linaro.org> *Subject:* Re: [Lava-users] Regarding Image Charts2.0 On 18 July 2017 at 15:11, Sharma, Varun <varun.sharma@intel.com <mailto:varun.sharma@intel.com>> wrote: 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. Go back to the Query, make sure the Query displays some results when you click on the Results button. 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? I think that could be a bug. https://projects.linaro.org/browse/LAVA-1002 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 <mailto:neil.williams@linaro.org>] *Sent:* Thursday, July 6, 2017 6:37 PM *To:* Sharma, Varun <varun.sharma@intel.com <mailto:varun.sharma@intel.com>> *Cc:* lava-users@lists.linaro.org <mailto: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 <mailto: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-queriesbut 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 <http://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 <mailto:neil.williams@linaro.org>] *Sent:* Thursday, July 6, 2017 4:51 PM *To:* Sharma, Varun <varun.sharma@intel.com <mailto:varun.sharma@intel.com>> *Cc:* lava-users@lists.linaro.org <mailto: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 <mailto: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 <mailto:neil.williams@linaro.org> http://www.linux.codehelp.co.uk/ -- Neil Williams ============= neil.williams@linaro.org <mailto:neil.williams@linaro.org> http://www.linux.codehelp.co.uk/ -- Neil Williams ============= neil.williams@linaro.org <mailto:neil.williams@linaro.org> http://www.linux.codehelp.co.uk/ -- Neil Williams ============= neil.williams@linaro.org <mailto:neil.williams@linaro.org> http://www.linux.codehelp.co.uk/ _______________________________________________ Lava-users mailing list Lava-users@lists.linaro.org <mailto:Lava-users@lists.linaro.org> https://lists.linaro.org/mailman/listinfo/lava-users
-- Stevan Radaković | LAVA Engineer Linaro.org <www.linaro.org http://www.linaro.org> │ Open source software for ARM SoCs
lava-users@lists.lavasoftware.org