Hi all , I have saw the doc about : https://validation.linaro.org/static/docs/v2/test-repositories.html#test-rep...
My test-definition is in the brach dev-br1, not the master . So I point the branch in my yaml file, but it do noting ! Why? Please give me some help?
Best Regards
XuHongyu
This email is intended only for the named addressee. It may contain information that is confidential/private, legally privileged, or copyright-protected, and you should handle it accordingly. If you are not the intended recipient, you do not have legal rights to retain, copy, or distribute this email or its contents, and should promptly delete the email and all electronic copies in your system; do not retain copies in any media. If you have received this email in error, please notify the sender promptly. Thank you.
Hi,
On Thursday 07 December 2017 03:42 PM, Xu, Hongyu wrote:
My test-definition is in the brach dev-br1, not the master . So I point the branch in my yaml file, but it do noting ! Why?
I just tested this with the help of https://validation.linaro.org/scheduler/job/1658316
You can see https://validation.linaro.org/scheduler/job/1658316#L75 where the clone of the specific git branch happens correctly.
Looking at your job log, it looks like there is a problem in your git clone. When using ssh:// for git URL you must ensure that the machine from which you are cloning should have permissions for the specific user to clone the repository via ssh.
Thank You.
Senthil Kumaran S,
I am sure I have permissions for the specific user to clone the repository via ssh (git clone ssh://1680141@10.5.20.24:29418/sw_test/test-definitions -b hxt-dev-br1) . I can run the test pass if I didn't point out the "branch:", please see the attachment log!
I saw your job log : https://validation.linaro.org/scheduler/job/1658316#L75 I found it used the '-b' parameter when run the 'git clone':
start: 1.4.3.5 git-repo-action (timeout 00:14:48) [common] Using /lava-1658316 at stage 1 Fetching tests from https://git.linaro.org/lava-team/lava-functional-tests.git Running '/usr/bin/git clone -b stylesen https://git.linaro.org/lava-team/lava-functional-tests.git /var/lib/lava/dispatcher/tmp/1658316/lava-overlay-9ezYc3/lava-1658316/1/tests/1_smoke-test-lxc --depth=1'
But in my job , I didn't hava the '-b' parameter when run the 'git clone':
start: 1.4.2.4.1 git-repo-action (timeout 00:05:00) Using /lava-649 at stage 0 Fetching tests from ssh://1680141@10.5.20.24:29418/sw_test/test-definitions Running '/usr/bin/git clone ssh://1680141@10.5.20.24:29418/sw_test/test-definitions /var/lib/lava/dispatcher/tmp/649/lava-overlay-WOSjsD/lava-649/0/tests/0_smoke-tests-basic' Tests stored (tmp) in /var/lib/lava/dispatcher/tmp/649/lava-overlay-WOSjsD/lava-649/0/tests/0_smoke-tests-basic/ubuntu/smoke-tests-basic.yaml
So if need do some special configure or the lava version bug?
Best Regards
XuHongyu
-----Original Message----- From: Senthil Kumaran S [mailto:senthil.kumaran@linaro.org] Sent: 2017年12月7日 21:07 To: Xu, Hongyu hongyu.xu@hxt-semitech.com; Lava-users@lists.linaro.org Subject: Re: [Lava-users] help: can't use specific branch of a test definition repository
Hi,
On Thursday 07 December 2017 03:42 PM, Xu, Hongyu wrote:
My test-definition is in the brach dev-br1, not the master .
So I point the branch in my yaml file, but it do noting ! Why?
I just tested this with the help of https://validation.linaro.org/scheduler/job/1658316
You can see https://validation.linaro.org/scheduler/job/1658316#L75 where the clone of the specific git branch happens correctly.
Looking at your job log, it looks like there is a problem in your git clone. When using ssh:// for git URL you must ensure that the machine from which you are cloning should have permissions for the specific user to clone the repository via ssh.
Thank You. -- Senthil Kumaran S http://www.stylesen.org/ http://www.sasenthilkumaran.com/
This email is intended only for the named addressee. It may contain information that is confidential/private, legally privileged, or copyright-protected, and you should handle it accordingly. If you are not the intended recipient, you do not have legal rights to retain, copy, or distribute this email or its contents, and should promptly delete the email and all electronic copies in your system; do not retain copies in any media. If you have received this email in error, please notify the sender promptly. Thank you.
Hi Hongyu,
On Friday 08 December 2017 08:31 AM, Xu, Hongyu wrote:
I am sure I have permissions for the specific user to clone the repository via ssh (git clone ssh://1680141@10.5.20.24:29418/sw_test/test-definitions -b hxt-dev-br1) . I can run the test pass if I didn't point out the "branch:", please see the attachment log!
Good to know you have necessary permissions for ssh:// clones.
I saw your job log : https://validation.linaro.org/scheduler/job/1658316#L75 I found it used the '-b' parameter when run the 'git clone':
This was implemented in LAVA V2 via https://review.linaro.org/#/c/21120/ which is post 2017.7.
So if need do some special configure or the lava version bug?
From your job log I can see you are using lava-dispatcher version: 2017.7-1~bpo9+1 which will not have this feature implemented. I suggest to use lava-dispatcher version > 2017.9 to get this feature working.
Thank You.
lava-users@lists.lavasoftware.org