From 8a169ffa56b3e6bf5316e140a42d8e0cda1c8862 Mon Sep 17 00:00:00 2001 From: Casey Ransom Date: Wed, 20 May 2020 15:32:41 -0400 Subject: [PATCH] Add hydra-notify to devshell I came across https://github.com/NixOS/hydra/issues/751 and realized that hydra-notify is responsible for creating the additional jobsets in a declarative file. My declarative testing works in dev now. --- Procfile | 1 + foreman/start-notify.sh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 foreman/start-notify.sh diff --git a/Procfile b/Procfile index 2ccd32b2..45a1e8fe 100644 --- a/Procfile +++ b/Procfile @@ -1,4 +1,5 @@ hydra-server: ./foreman/start-hydra.sh hydra-queue-runner: ./foreman/start-queue-runner.sh hydra-evaluator: ./foreman/start-evaluator.sh +hydra-notify: ./foreman/start-notify.sh postgres: ./foreman/start-postgres.sh diff --git a/foreman/start-notify.sh b/foreman/start-notify.sh new file mode 100755 index 00000000..f63997ae --- /dev/null +++ b/foreman/start-notify.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# wait for hydra-server to listen +while ! nc -z localhost 63333; do sleep 1; done + +touch .hydra-data/hydra.conf +HYDRA_CONFIG=$(pwd)/.hydra-data/hydra.conf exec hydra-notify