From ea4ed40076eec0b4fc9755f3222f27e1fc0267e6 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 14 Dec 2016 12:31:44 -0800 Subject: [PATCH] openqa/scheduler: add a cron job to schedule live-respins There are no fedmsg notifications for the live respin composes, so we just try scheduling them every hour; when we've already tested the current compose this will not create any new jobs, and when a new compose shows up, this will test it. --- roles/openqa/dispatcher/files/schedule-live-respins.cron | 6 ++++++ roles/openqa/dispatcher/tasks/main.yml | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 roles/openqa/dispatcher/files/schedule-live-respins.cron diff --git a/roles/openqa/dispatcher/files/schedule-live-respins.cron b/roles/openqa/dispatcher/files/schedule-live-respins.cron new file mode 100644 index 0000000000..ca96826ebd --- /dev/null +++ b/roles/openqa/dispatcher/files/schedule-live-respins.cron @@ -0,0 +1,6 @@ +#!/bin/sh + +# schedule openQA jobs for the current 'live-respins' compose; if it's +# already been tested, this will not create any new jobs + +/usr/bin/fedora-openqa-schedule compose https://dl.fedoraproject.org/pub/alt/live-respins/ > /dev/null 2>&1 || /usr/bin/true diff --git a/roles/openqa/dispatcher/tasks/main.yml b/roles/openqa/dispatcher/tasks/main.yml index 6793f27f12..5a4f334085 100644 --- a/roles/openqa/dispatcher/tasks/main.yml +++ b/roles/openqa/dispatcher/tasks/main.yml @@ -124,3 +124,8 @@ - restart fedmsg-hub tags: - config + +- name: Set up cron job to schedule live-respins jobs + copy: src=schedule-live-respins.cron dest=/etc/cron.hourly/schedule-live-respins owner=root group=root mode=0755 + tags: + - config