Hello,

the timeout is computed by taking (see https://git.lavasoftware.org/lava/lava/blob/master/lava_dispatcher/action.py#L129):
# 1/ the global action timeout
# 2/ the individual action timeout
# 3/ the action block timeout

So a workaround is maybe (I haven't tried), to remove the deploy action timeout. So the default action timeout will be used for that deploy action and the http-download action timeout will be used for http-download.
This really hacky but that might work :(


Rgds

Le mar. 30 avr. 2019 à 16:15, Jan-Simon Moeller <jsmoeller@linuxfoundation.org> a écrit :
Hi Milosz and Kevin,

let me explain the issue a bit:

we want to use
failure_retry: 2
in the deploy section.

But for that we need the overall deployimages timeout to be let's say 25 minutes and the http_download timeout to be e.g. 10 minutes.
Currently everything is 25 minutes.

So do I understand this right, that
- deploy:
timeout:
minutes: 25
Overrides all timeout below 'deploy' to 25 minutes ?

So would we have to remove that in favour of  a more detailed setting of the top-level:
timeouts:
job:
minutes: 80
action:
minutes: 15
connection:
minutes: 5
connections:
lava-test-shell:
minutes: 10

????



On Tue, Apr 30, 2019 at 10:02 AM Milosz Wasilewski <milosz.wasilewski@linaro.org> wrote:
On Mon, 29 Apr 2019 at 22:54, Kevin Hilman <khilman@baylibre.com> wrote:
>
> Hello,
>
> I'm trying to customize the http-download timeout as documented[1], but
> I doesn't seem to work.  The global deploy time always seems to win.
>
> Based on the doc, I did this, I added the following to my job[2]
>
> timeouts:
>   actions:
>     http-download:
>       minutes: 15
>
> However, in the job output, you can see that the http-download timeout
> value is set to 25 min (1500 sec) which is coming from the deploy action
> timeout.
>
> I got the same result when tryin to use timeouts: connections:
>
> What am I missing?

I'm not 100% sure but the timeouts defined in the 'timeouts' section
are considered 'default' and are always overwritten by timeouts
defined in actions themselves.

milosz

>
> Kevin
>
> [1] https://validation.linaro.org/static/docs/v2/timeouts.html?highlight=http_download#inheriting-timeouts-from-the-device-configuration
> [2] https://lava.automotivelinux.org/scheduler/job/3270/definition#defline44
> [3] https://lava.automotivelinux.org/scheduler/job/3270#action_1-1-1
>
> _______________________________________________
> Lava-users mailing list
> Lava-users@lists.lavasoftware.org
> https://lists.lavasoftware.org/mailman/listinfo/lava-users
_______________________________________________
Lava-users mailing list
Lava-users@lists.lavasoftware.org
https://lists.lavasoftware.org/mailman/listinfo/lava-users


--
Rémi Duraffort
LAVA Team, Linaro