From ac5ff85cc4800280cfdfe503bb71a7c98f5cf32f Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Wed, 27 Sep 2017 12:12:43 -0700 Subject: [PATCH] Only run tox-siblings on required projects For additional safety and least-surprise, only run the tox-siblings role on projects which appear in the job's required-projects. Change-Id: Ic2c83ea89e3fed0084736ba1804e40bb73f67c3f Depends-On: Ibfc2c82f863d88b2a65bd8990933146fc9ff3ee9 --- roles/tox-siblings/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/tox-siblings/tasks/main.yaml b/roles/tox-siblings/tasks/main.yaml index 006369721..e05cc8d01 100644 --- a/roles/tox-siblings/tasks/main.yaml +++ b/roles/tox-siblings/tasks/main.yaml @@ -13,5 +13,5 @@ tox_install_sibling_packages: tox_envlist: "{{ tox_envlist }}" project_dir: "{{ zuul_work_dir }}" - projects: "{{ zuul.projects }}" + projects: "{{ zuul.projects | selectattr('required') | list }}" when: tox_install_siblings