Hi,
I am using Lava as our automation test infrastructure now. Now we are trying find all key words collection in Jobs. For example: timeouts: job: minutes: 30 action: minutes: 30 priority: medium visibility: public actions: - deploy: timeout: minutes: 30 to: docker os: debian packages: [python]
key word to and os, its value is docker and debian here. Maybe there are different value for these ker words in another jobs. We just want to find all these possible value for these key word in Lava. Could anyone kindly provide some method and configuration file/document to find this efficiently? Thanks in advance.
Thanks, Deli
Hello,
the job definition is a yaml file so it's easy to parse using any languages.
For instance in python
import yaml with open("jobdefinition.yaml") as f_in: data = yaml.load(f_in) <<<<
You now have a python dictionary that you can parse to grab the information you need.
Regards
2018-05-04 9:30 GMT+02:00 Niu, Deli deli.niu@intel.com:
Hi,
I am using Lava as our automation test infrastructure now. Now we are trying find all key words collection in Jobs.
For example:
timeouts:
job:
minutes: 30
action:
minutes: 30
priority: medium
visibility: public
actions:
deploy:
timeout:
minutes: 30
to: docker
os: debian
packages: [python]
key word *to *and *os*, its value is *docker* and *debian *here. Maybe there are different value for these ker words in another jobs. We just want to find all these possible value for these key word in Lava.
Could anyone kindly provide some method and configuration file/document to find this efficiently? Thanks in advance.
Thanks,
Deli
Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users
Hi,
For value that ‘to’ and ‘os’ could use, see here: https://staging.validation.linaro.org/static/docs/v2/actions-deploy.html. These values could be used, are strategies and support platform of LAVA itself, so you can see reference part of official document.
-Yifan
From: Lava-users [mailto:lava-users-bounces@lists.linaro.org] On Behalf Of Remi Duraffort Sent: Friday, May 4, 2018 4:01 PM To: Niu, Deli deli.niu@intel.com Cc: lava-users@lists.linaro.org Subject: Re: [Lava-users] Lava test Job key/value collection
Hello,
the job definition is a yaml file so it's easy to parse using any languages.
For instance in python
import yaml with open("jobdefinition.yaml") as f_in: data = yaml.load(f_in) <<<<
You now have a python dictionary that you can parse to grab the information you need.
Regards
2018-05-04 9:30 GMT+02:00 Niu, Deli <deli.niu@intel.commailto:deli.niu@intel.com>: Hi,
I am using Lava as our automation test infrastructure now. Now we are trying find all key words collection in Jobs. For example: timeouts: job: minutes: 30 action: minutes: 30 priority: medium visibility: public actions: - deploy: timeout: minutes: 30 to: docker os: debian packages: [python]
key word to and os, its value is docker and debian here. Maybe there are different value for these ker words in another jobs. We just want to find all these possible value for these key word in Lava. Could anyone kindly provide some method and configuration file/document to find this efficiently? Thanks in advance.
Thanks, Deli
_______________________________________________ Lava-users mailing list Lava-users@lists.linaro.orgmailto:Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users
-- Rémi Duraffort LAVA Team
Thanks Li for this answer, mine was off topic!
2018-05-04 10:08 GMT+02:00 Li, Yifan2 yifan2.li@intel.com:
Hi,
For value that ‘to’ and ‘os’ could use, see here: https://staging.validation.linaro.org/static/docs/v2/actions-deploy.html.
These values could be used, are strategies and support platform of LAVA itself, so you can see *reference part* of official document.
-Yifan
*From:* Lava-users [mailto:lava-users-bounces@lists.linaro.org] *On Behalf Of *Remi Duraffort *Sent:* Friday, May 4, 2018 4:01 PM *To:* Niu, Deli deli.niu@intel.com *Cc:* lava-users@lists.linaro.org *Subject:* Re: [Lava-users] Lava test Job key/value collection
Hello,
the job definition is a yaml file so it's easy to parse using any languages.
For instance in python
import yaml
with open("jobdefinition.yaml") as f_in:
data = yaml.load(f_in)
<<<<
You now have a python dictionary that you can parse to grab the information you need.
Regards
2018-05-04 9:30 GMT+02:00 Niu, Deli deli.niu@intel.com:
Hi,
I am using Lava as our automation test infrastructure now. Now we are trying find all key words collection in Jobs.
For example:
timeouts:
job:
minutes: 30
action:
minutes: 30
priority: medium
visibility: public
actions:
deploy:
timeout:
minutes: 30
to: docker
os: debian
packages: [python]
key word *to *and *os*, its value is *docker* and *debian *here. Maybe there are different value for these ker words in another jobs. We just want to find all these possible value for these key word in Lava.
Could anyone kindly provide some method and configuration file/document to find this efficiently? Thanks in advance.
Thanks,
Deli
Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users
--
Rémi Duraffort
LAVA Team
On 4 May 2018 at 09:08, Li, Yifan2 yifan2.li@intel.com wrote:
Hi,
For value that ‘to’ and ‘os’ could use, see here: https://staging.validation.linaro.org/static/docs/v2/actions-deploy.html.
These values could be used, are strategies and support platform of LAVA itself, so you can see *reference part* of official document.
Note: we try to keep this up to date but, specifically related to the "to" field, there is no complete list - each new device integration can potentially add a new one.
Why are you trying to get a complete list?
-Yifan
*From:* Lava-users [mailto:lava-users-bounces@lists.linaro.org] *On Behalf Of *Remi Duraffort *Sent:* Friday, May 4, 2018 4:01 PM *To:* Niu, Deli deli.niu@intel.com *Cc:* lava-users@lists.linaro.org *Subject:* Re: [Lava-users] Lava test Job key/value collection
Hello,
the job definition is a yaml file so it's easy to parse using any languages.
For instance in python
import yaml
with open("jobdefinition.yaml") as f_in:
data = yaml.load(f_in)
<<<<
You now have a python dictionary that you can parse to grab the information you need.
Regards
2018-05-04 9:30 GMT+02:00 Niu, Deli deli.niu@intel.com:
Hi,
I am using Lava as our automation test infrastructure now. Now we are trying find all key words collection in Jobs.
For example:
timeouts:
job:
minutes: 30
action:
minutes: 30
priority: medium
visibility: public
actions:
deploy:
timeout:
minutes: 30
to: docker
os: debian
packages: [python]
key word *to *and *os*, its value is *docker* and *debian *here. Maybe there are different value for these ker words in another jobs. We just want to find all these possible value for these key word in Lava.
Could anyone kindly provide some method and configuration file/document to find this efficiently? Thanks in advance.
Thanks,
Deli
Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users
--
Rémi Duraffort
LAVA Team
Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users
lava-users@lists.lavasoftware.org