aboutsummaryrefslogtreecommitdiff
path: root/openembedded-lkft
diff options
context:
space:
mode:
authorDan Rue <dan.rue@linaro.org>2019-12-05 15:24:09 -0600
committerDan Rue <dan.rue@linaro.org>2019-12-05 15:28:33 -0600
commitd28af287a2d7a48f7c0e728503340c6f1b962c5d (patch)
tree5072181e8fe0e13bb5bec1abe8b1257e3f252ff7 /openembedded-lkft
parent21e646fd047e41b93831947b5f395cff46a0310d (diff)
LKFT: Implement lxc caching
Reuse lxc containers on dispatchers. This is slightly risky because it will be cached under the lava-lxc name (so if the template changes but the name doesn't, jobs could use a stale container). There are no great ways to automatically decide when to invalidate the cache, so instead it is hopefully well commented. Tested @ https://lkft.validation.linaro.org/scheduler/job/1038403 Change-Id: Id04bfe60f9543e3ff0c2c405487e1209cc8d58c2 Signed-off-by: Dan Rue <dan.rue@linaro.org>
Diffstat (limited to 'openembedded-lkft')
-rw-r--r--openembedded-lkft/lava-job-definitions/lkft-fastboot.jinja27
1 files changed, 6 insertions, 1 deletions
diff --git a/openembedded-lkft/lava-job-definitions/lkft-fastboot.jinja2 b/openembedded-lkft/lava-job-definitions/lkft-fastboot.jinja2
index 6f57b9cb..81bd4c1b 100644
--- a/openembedded-lkft/lava-job-definitions/lkft-fastboot.jinja2
+++ b/openembedded-lkft/lava-job-definitions/lkft-fastboot.jinja2
@@ -1,3 +1,7 @@
+{# Warning: This template implements persistent lxc containers, which are #}
+{# reused based on the value of protocols.lava-lxc.name. #}
+{# If you change this template in a way that changes the content of the lxc #}
+{# container, be sure to update the container name too. #}
{% extends "lkft.jinja2" %}
{% block global_settings %}
@@ -9,12 +13,13 @@ context:
{% block protocols %}
protocols:
lava-lxc:
- name: lxc-target
+ name: lkft-lxc-2019120501 # XXX Bump this to invalidate the lxc cache
template: debian
distribution: debian
release: buster
arch: amd64
mirror: http://deb.debian.org/debian
+ persist: true
{% endblock protocols %}
{% block actions %}