Hello,
I'm trying to set one timeout per test in a job. To do so I'm declaring one test block per test.
Unfortunately, it seems that only the first timeout declaration is taken into account. Did I miss something in my job definition?
Best regards,
Denis
Hi,
On Thursday 13 April 2017 08:14 PM, Denis HUMEAU wrote:
I’m trying to set one timeout per test in a job. To do so I’m declaring one test block per test.
I could see one test action in your job definition which has 60 minutes of timeout. That test action runs 4 tests. The timeout defined on the test action applies for the overall time the test action should complete within. It does not apply for each of the 4 tests that are defined.
Unfortunately, it seems that only the first timeout declaration is taken into account. Did I miss something in my job definition?
In order to have individual timeouts for each test, I would suggest defining multiple test actions, such as:
- test: metadata: format: Lava-Test Test Definition 1.0 name: DISK_AIO_STRESS-BENCHMARK description: "DISK_AIO_STRESS BENCHMARK tests " timeout: minutes: 30 definitions: #10 minutes - from: git repository: /local/dev/frq08954/dispatcher/lava-tests path: tests-def/benchmark/TC_BENCH_DISK_AIO_STRESS.yaml name: TC_BENCH_DISK_AIO_STRESS
- test: metadata: format: Lava-Test Test Definition 1.0 name: DISK_HDPARM_READ-BENCHMARK description: "DISK_HDPARM_READ BENCHMARK tests " timeout: minutes: 45 definitions: - from: git repository: /local/dev/frq08954/dispatcher/lava-tests path: tests-def/benchmark/TC_BENCH_DISK_HDPARM_READ.yaml name: TC_BENCH_DISK_HDPARM_READ
- test: metadata: format: Lava-Test Test Definition 1.0 name: BENCH_DISK_IOZONE_READ-BENCHMARK description: "BENCH_DISK_IOZONE_READ BENCHMARK tests " timeout: minutes: 15 definitions: - from: git repository: /local/dev/frq08954/dispatcher/lava-tests path: tests-def/benchmark/TC_BENCH_DISK_IOZONE_READ.yaml name: TC_BENCH_DISK_IOZONE_READ
Hope I got your question right.
Thank You.
My mistake, I attached the wrong file...
I followed the same principle as what you suggested Senthil, and it doesn't work.
Denis
-----Original Message----- From: Senthil Kumaran S [mailto:senthil.kumaran@linaro.org] Sent: jeudi 13 avril 2017 16:57 To: Denis HUMEAU denis.humeau@st.com; lava-users@lists.linaro.org Subject: Re: [Lava-users] One time out per test issue
Hi,
On Thursday 13 April 2017 08:14 PM, Denis HUMEAU wrote:
I’m trying to set one timeout per test in a job. To do so I’m declaring one test block per test.
I could see one test action in your job definition which has 60 minutes of timeout. That test action runs 4 tests. The timeout defined on the test action applies for the overall time the test action should complete within. It does not apply for each of the 4 tests that are defined.
Unfortunately, it seems that only the first timeout declaration is taken into account. Did I miss something in my job definition?
In order to have individual timeouts for each test, I would suggest defining multiple test actions, such as:
- test: metadata: format: Lava-Test Test Definition 1.0 name: DISK_AIO_STRESS-BENCHMARK description: "DISK_AIO_STRESS BENCHMARK tests " timeout: minutes: 30 definitions: #10 minutes - from: git repository: /local/dev/frq08954/dispatcher/lava-tests path: tests-def/benchmark/TC_BENCH_DISK_AIO_STRESS.yaml name: TC_BENCH_DISK_AIO_STRESS
- test: metadata: format: Lava-Test Test Definition 1.0 name: DISK_HDPARM_READ-BENCHMARK description: "DISK_HDPARM_READ BENCHMARK tests " timeout: minutes: 45 definitions: - from: git repository: /local/dev/frq08954/dispatcher/lava-tests path: tests-def/benchmark/TC_BENCH_DISK_HDPARM_READ.yaml name: TC_BENCH_DISK_HDPARM_READ
- test: metadata: format: Lava-Test Test Definition 1.0 name: BENCH_DISK_IOZONE_READ-BENCHMARK description: "BENCH_DISK_IOZONE_READ BENCHMARK tests " timeout: minutes: 15 definitions: - from: git repository: /local/dev/frq08954/dispatcher/lava-tests path: tests-def/benchmark/TC_BENCH_DISK_IOZONE_READ.yaml name: TC_BENCH_DISK_IOZONE_READ
Hope I got your question right.
Thank You. -- Senthil Kumaran S http://www.stylesen.org/ http://www.sasenthilkumaran.com/
On Thursday 13 April 2017 08:32 PM, Denis HUMEAU wrote:
I followed the same principle as what you suggested Senthil, and it doesn't work.
This is a bug. Can you file one here? - https://bugs.linaro.org/enter_bug.cgi?product=LAVA%20Framework
Thank You.
Done,
https://bugs.linaro.org/show_bug.cgi?id=2943
Thanks Senthil
-----Original Message----- From: Senthil Kumaran S [mailto:senthil.kumaran@linaro.org] Sent: lundi 17 avril 2017 08:26 To: Denis HUMEAU denis.humeau@st.com; lava-users@lists.linaro.org Subject: Re: [Lava-users] One time out per test issue
On Thursday 13 April 2017 08:32 PM, Denis HUMEAU wrote:
I followed the same principle as what you suggested Senthil, and it doesn't work.
This is a bug. Can you file one here? - https://bugs.linaro.org/enter_bug.cgi?product=LAVA%20Framework
Thank You.