gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] branch master updated: tips checker needs dedicate wo


From: gnunet
Subject: [taler-deployment] branch master updated: tips checker needs dedicate worker.
Date: Thu, 01 Jul 2021 15:40:39 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new 73c4c65  tips checker needs dedicate worker.
73c4c65 is described below

commit 73c4c65079ce65edcb2a0d4e4ce6153f718fbfed
Author: ms <ms@taler.net>
AuthorDate: Thu Jul 1 15:39:01 2021 +0200

    tips checker needs dedicate worker.
    
    Mainly because it depends on the 'activate'
    script that populates the environment with
    the merchant API key.  It would not be possible
    to query the state of tip reserves without such
    key.
---
 bin/taler-deployment                  |  4 ++++
 buildbot/master.cfg                   |  5 +++--
 systemd-services/tips-checker.service | 13 +++++++++++++
 3 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/bin/taler-deployment b/bin/taler-deployment
index 331daf7..b4c74c5 100755
--- a/bin/taler-deployment
+++ b/bin/taler-deployment
@@ -716,6 +716,10 @@ def bootstrap() -> None:
         (home / "taler-data").mkdir(parents=True, exist_ok=True)
     if envname == "demo":
         setup_service("config-tips.timer")
+        create_bb_worker(
+            "tips-checker.service", "tips-checker-dir",
+            "tips-checker-worker", "tips-checker-pass"
+        )
 
         if not (home / "taler-data").exists():
             (home / "taler-data").symlink_to("/home/demo/shared-data")
diff --git a/buildbot/master.cfg b/buildbot/master.cfg
index f97177a..2fe5a37 100644
--- a/buildbot/master.cfg
+++ b/buildbot/master.cfg
@@ -882,8 +882,8 @@ CODECHANGE_TRIGGERS.append("codespell-builder")
 ##
 # This worker checks that all the services run under the
 # 'demo' deployment are up&running.
-WORKERS.append(worker.Worker("demo-worker", "demo-pass"))
 
+WORKERS.append(worker.Worker("tips-checker-worker", "tips-checker-pass"))
 DEMO_CHECK_TIPS_FACTORY = create_factory_with_deployment()
 DEMO_CHECK_TIPS_FACTORY.addStep(
     ShellCommand(
@@ -898,6 +898,7 @@ DEMO_CHECK_TIPS_FACTORY.addStep(
     )
 )
 
+WORKERS.append(worker.Worker("demo-worker", "demo-pass"))
 DEMO_SERVICES_INTEGRATIONTEST_FACTORY = create_factory_with_deployment()
 DEMO_SERVICES_INTEGRATIONTEST_FACTORY.addStep(
     ShellCommand(
@@ -918,7 +919,7 @@ BUILDERS.append(util.BuilderConfig(
 ))
 BUILDERS.append(util.BuilderConfig(
     name="check-tips-builder",
-    workernames="demo-worker",
+    workernames="tips-checker-worker",
     factory=DEMO_CHECK_TIPS_FACTORY
 ))
 EMAIL_ALERTS.append("demo-services-checker-builder")
diff --git a/systemd-services/tips-checker.service 
b/systemd-services/tips-checker.service
new file mode 100644
index 0000000..d7a0118
--- /dev/null
+++ b/systemd-services/tips-checker.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Buildbot worker service for the integration test
+AssertPathExists=%h/worker
+
+[Service]
+WorkingDirectory=%h
+ExecStart=/usr/bin/buildbot-worker start --nodaemon tips-checker-dir
+ExecReload=/usr/bin/buildbot-worker restart --nodaemon tips-checker-dir
+ExecStop=/usr/bin/buildbot-worker stop tips-checker-dir
+Restart=always
+
+[Install]
+WantedBy=default.target

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]