Hi,
I did code changes to support yaml based testdefs. I shall show you the demo tomorrow of what I have and we can discuss the yaml structure in more detail and get more stuff in.
My sample testdef looks like the following (testdef.yaml):
<snip1> metadata: name: simple version: 1.0 format: lava-test v1.0
environment: image-type: [beagle]
install: url: steps:
run: steps: - /bin/echo cache-coherency-switching - PASS - ls - pwd
parse: pattern: (?P<test_case_id>.*-*)\s+:\s+(?P<result>(PASS|FAIL)) fixupdict: PASS: pass FAIL: fail </snip1>
Following is a snipe from sample run:
<snip2> cache-coherency-switching - PASS install.sh run.sh testdef.yaml /lava/tests/0_simple <LAVA_TEST_RUNNER>: 0_simple exited with: 0 0_simple-1351674922 build.txt cpuinfo.txt meminfo.txt pkgs.txt <LAVA_TEST_RUNNER>: exiting<LAVA_DISPATCHER>2012-10-31 02:44:54 PM INFO: lava_test_shell seems to have completed <LAVA_DISPATCHER>2012-10-31 02:44:54 PM INFO: attempting a filesystem sync before power_off
linaro-test [rc=0]# sync sync linaro-test [rc=0]# <LAVA_DISPATCHER>2012-10-31 02:44:57 PM INFO: [ACTION-E] lava_test_shell is finished successfully. <LAVA_DISPATCHER>2012-10-31 02:44:57 PM INFO: Submitting the test result with parameters = {u'stream': u'/anonymous/stylesen/', u'server': u'http://10.155.13.219/RPC2/%27%7D dashboard-put-result: http://10.155.13.219/dashboard/permalink/bundle/9fdccd73c7e825c2eec7850e61df... <LAVA_DISPATCHER>2012-10-31 02:44:57 PM INFO: Dashboard : http://10.155.13.219/dashboard/permalink/bundle/9fdccd73c7e825c2eec7850e61df... </snip2>
Thank You.
On 10/31/2012 06:55 PM, Senthil Kumaran S wrote:
Hi,
I did code changes to support yaml based testdefs. I shall show you the demo tomorrow of what I have and we can discuss the yaml structure in more detail and get more stuff in.
Wow. I left the hacking room at 4pm and this email came at 6:55. I had no idea you'd make this much progress in under 3 hours! I can't wait to sit down and talk tomorrow. Great job.
+1
Great job.
Dave (still watching to see if my fix has worked)
On 1 Nov 2012, at 00:17, Andy Doan andy.doan@linaro.org wrote:
On 10/31/2012 06:55 PM, Senthil Kumaran S wrote:
Hi,
I did code changes to support yaml based testdefs. I shall show you the demo tomorrow of what I have and we can discuss the yaml structure in more detail and get more stuff in.
Wow. I left the hacking room at 4pm and this email came at 6:55. I had no idea you'd make this much progress in under 3 hours! I can't wait to sit down and talk tomorrow. Great job.
linaro-validation mailing list linaro-validation@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-validation
Hi Michael,
On Wednesday 31 October 2012 11:25 PM, Senthil Kumaran S wrote:
I did code changes to support yaml based testdefs. I shall show you the demo tomorrow of what I have and we can discuss the yaml structure in more detail and get more stuff in.
I pushed the code changes to launchpad and created a merge proposal - https://code.launchpad.net/~stylesen/lava-dispatcher/testdef-yaml-support/+m...
Thank You.
Hi,
On Friday 02 November 2012 02:24 PM, Senthil Kumaran S wrote:
I pushed the code changes to launchpad and created a merge proposal - https://code.launchpad.net/~stylesen/lava-dispatcher/testdef-yaml-support/+m...
I merged my code changes to trunk series after it was approved by mwhudson.
http://bazaar.launchpad.net/~linaro-validation/lava-dispatcher/trunk/revisio...
Thank You.
Hi Senthil,
Your change seems to have broken the scheduler on staging.
In the lava-scheduler.log, there is an error "exceptions.ImportError: No module named yaml". What package needs to be installed?
Thanks
Dave
On 5 Nov 2012, at 11:39, Senthil Kumaran S senthil.kumaran@linaro.org wrote:
Hi,
On Friday 02 November 2012 02:24 PM, Senthil Kumaran S wrote:
I pushed the code changes to launchpad and created a merge proposal - https://code.launchpad.net/~stylesen/lava-dispatcher/testdef-yaml-support/+m...
I merged my code changes to trunk series after it was approved by mwhudson.
http://bazaar.launchpad.net/~linaro-validation/lava-dispatcher/trunk/revisio...
Thank You.
Senthil Kumaran S http://www.stylesen.org/ http://www.sasenthilkumaran.com/
linaro-validation mailing list linaro-validation@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-validation
Hi Dave,
On Monday 05 November 2012 06:13 PM, Dave Pigott wrote:
Your change seems to have broken the scheduler on staging.
In the lava-scheduler.log, there is an error "exceptions.ImportError: No module named yaml". What package needs to be installed?
Hope my new fix to lava-manifest would have solved it by now. Thanks for checking on this :) I missed this dependency change during my initial merge proposals :(
Thank You.
Senthil Kumaran S senthil.kumaran@linaro.org writes:
Hi Dave,
On Monday 05 November 2012 06:13 PM, Dave Pigott wrote:
Your change seems to have broken the scheduler on staging.
In the lava-scheduler.log, there is an error "exceptions.ImportError: No module named yaml". What package needs to be installed?
Hope my new fix to lava-manifest would have solved it by now. Thanks for checking on this :) I missed this dependency change during my initial merge proposals :(
Ah. I should have spotted this in my review. The way this should have worked is that we should have added PyYAML to install_requires to lava-dispatcher's setup.py. Then buildout would have installed that without having to add it to the 'eggs' value of the server section. (We still want to specify a version of PyYAML in the buildout.cfg to avoid upstream breaking things on us).
Cheers, mwh
linaro-validation@lists.linaro.org