Commit 60023828 authored by Guillaume Tucker's avatar Guillaume Tucker

Merge branch 'T25422_failure_retry' into 'collabora/production'

Add a way to customize failure_retry variable

See merge request !10
parents 5b18527f cbd70810
Pipeline #20898 failed with stages
in 1 minute and 21 seconds
......@@ -147,6 +147,9 @@ constants:
# avoid setting searchwindowsize:
# Data before searchwindowsize point is preserved, but not searched.
spawn_maxread: '{{ spawn_maxread | default(4092) }}'
# Set the failure retry to default or override it
failure_retry: {{ failure_retry|default('1') }}
{% endblock constants -%}
{% block commands %}
......
......@@ -75,6 +75,7 @@ CONTEXT_VARIABLES = [
"custom_kernel_args",
"extra_kernel_args",
"extra_nfsroot_args",
"failure_retry",
"kernel_loglevel",
"kernel_start_message",
"lava_test_results_dir",
......
......@@ -142,6 +142,9 @@ class Pipeline:
subdict_merge_get(timeouts, "connections", action.name)
)
# retrieve the failure_retry constant variable
action.max_retries = action.get_constant("failure_retry", "")
action.parameters = parameters
def describe(self, verbose=True):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment