gnunet-svn
[Top][All Lists]
Advanced

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

[taler-deployment] branch master updated: Enable buildbot email notifica


From: gnunet
Subject: [taler-deployment] branch master updated: Enable buildbot email notifications for active workers
Date: Fri, 10 Mar 2023 10:54:02 +0100

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

javier-sepulveda pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new c40fa46  Enable buildbot email notifications for active workers
c40fa46 is described below

commit c40fa46f06fc683b938e5666aba525b609cda550
Author: Javier Sepulveda <javier.sepulveda@uv.es>
AuthorDate: Fri Mar 10 10:53:25 2023 +0100

    Enable buildbot email notifications for active workers
---
 buildbot/master.cfg | 156 ++++++++++++++++++++++++++++------------------------
 1 file changed, 84 insertions(+), 72 deletions(-)

diff --git a/buildbot/master.cfg b/buildbot/master.cfg
index 6701788..cfd5d30 100644
--- a/buildbot/master.cfg
+++ b/buildbot/master.cfg
@@ -332,16 +332,17 @@ BUILDERS.append(util.BuilderConfig(
 
 EMAIL_ALERTS.append("doc-builder")
 
-#sphinxErrorNotifier = reporters.MailNotifier(
-#    fromaddr="bb@taler.net",
-#    sendToInterestedUsers=False,
-#    addLogs=['build docs.stdio',],
-#    useTls=True,
-#    # notify if sphinx exits with error (command line option in Makefile 
turns warnings into exit 1)
-#    mode=('failing'),
-#    builders=('doc-builder',),
-#    extraRecipients=['sphinxerrors@taler.net']
-#)
+
+sphinxErrorNotifier = reporters.MailNotifier(
+   fromaddr="bb@taler.net",
+   sendToInterestedUsers=False,
+   addLogs=['build docs.stdio',],
+   useTls=True,
+   # notify if sphinx exits with error (command line option in Makefile turns 
warnings into exit 1)
+   mode=('failing'),
+   builders=('doc-builder',),
+   extraRecipients=['sphinxerrors@taler.net']
+)
 
 
 # Docs run if master or stable branch of 'docs' (or deployment) changed.
@@ -657,15 +658,16 @@ docs_generator = BuildStatusGenerator(
      add_logs=True
     )
 
-# SERVICES.append(reporters.MailNotifier(
-#     fromaddr="bb@taler.net",
-#     generators=[docs_generator],
-#     sendToInterestedUsers=False,
-#     useTls=True,
-#     extraRecipients=['linkcheck@taler.net']
-# ))
 
-#SERVICES.append(tipReserveEmails) # Disabled by Javisep, to avoid Buildbot 
error.Jan 24,2023. 
+SERVICES.append(reporters.MailNotifier(
+    fromaddr="bb@taler.net",
+    generators=[docs_generator],
+    sendToInterestedUsers=False,
+    useTls=True,
+    extraRecipients=['linkcheck@taler.net']
+))
+
+#SERVICES.append(tipReserveEmails) 
 
 NIGHTLY_TRIGGERS.append("linkchecker-builder")
 
@@ -771,6 +773,7 @@ CODECHANGE_TRIGGERS.append("codespell-builder")
 
 ################ 11: 'demo checks' JOB ###################################
 
+# This worker is not longer in use - March 10, 2023 - @javisep
 
 # Removed "check-tips-builder" by Javier Sepulveda - January 24,2023
 
@@ -780,38 +783,38 @@ CODECHANGE_TRIGGERS.append("codespell-builder")
 
 
 
-WORKERS.append(worker.Worker("demo-worker", "demo-pass"))
-DEMO_SERVICES_INTEGRATIONTEST_FACTORY = create_factory_with_deployment()
-DEMO_SERVICES_INTEGRATIONTEST_FACTORY.addStep(
-    ShellCommand(
-        name="demo services checker",
-        description="Checking demo services are online",
-        descriptionDone="Demo services are online!.",
-        command=["./checks.sh"],
-        workdir="../../deployment/buildbot",
-        haltOnFailure=True,
-        # Needed to test the 'demo' deployment.
-        env={"DEPLOYMENT": "demo"}
-    )
-)
-BUILDERS.append(util.BuilderConfig(
-    name="demo-services-checker-builder",
-    workernames="demo-worker",
-    factory=DEMO_SERVICES_INTEGRATIONTEST_FACTORY
-))
+# WORKERS.append(worker.Worker("demo-worker", "demo-pass"))
+# DEMO_SERVICES_INTEGRATIONTEST_FACTORY = create_factory_with_deployment()
+# DEMO_SERVICES_INTEGRATIONTEST_FACTORY.addStep(
+#     ShellCommand(
+#         name="demo services checker",
+#         description="Checking demo services are online",
+#         descriptionDone="Demo services are online!.",
+#         command=["./checks.sh"],
+#         workdir="../../deployment/buildbot",
+#         haltOnFailure=True,
+#         # Needed to test the 'demo' deployment.
+#         env={"DEPLOYMENT": "demo"}
+#     )
+# )
+# BUILDERS.append(util.BuilderConfig(
+#     name="demo-services-checker-builder",
+#     workernames="demo-worker",
+#     factory=DEMO_SERVICES_INTEGRATIONTEST_FACTORY
+# ))
 
 
 
 
 
-EMAIL_ALERTS.append("demo-services-checker-builder")
+# EMAIL_ALERTS.append("demo-services-checker-builder")
 
-# We check demo once per hour.
-SCHEDULERS.append(schedulers.Periodic(
-    name="demo-services-checker-scheduler",
-    periodicBuildTimer=60 * 60,  # 1 hour
-    builderNames=["demo-services-checker-builder"]
-))
+# # We check demo once per hour.
+# SCHEDULERS.append(schedulers.Periodic(
+#     name="demo-services-checker-scheduler",
+#     periodicBuildTimer=60 * 60,  # 1 hour
+#     builderNames=["demo-services-checker-builder"]
+# ))
 
 
 ################ 12: 'demo health wallet-cli check' JOB 
###################################
@@ -949,19 +952,21 @@ BUILD_FACTORY.addStep(
 ################ 15: Python linting JOB ###################################
 
 # This job is noat active / complete yet!
-def lint_dispatcher(project):
-    return "./lint_%s.sh" % project
+# def lint_dispatcher(project):
+#     return "./lint_%s.sh" % project
+
+# LINT_FACTORY = util.BuildFactory()
+# LINT_FACTORY.addStep(
+#     ShellCommand(
+#         name="Python linter",
+#         description="linting Python",
+#         descriptionDone="linting done",
+#         command=util.Transform(lint_dispatcher, util.Property("project")),
+#         workdir="../../deployment/taler-build"
+#     )
+# )
+
 
-LINT_FACTORY = util.BuildFactory()
-LINT_FACTORY.addStep(
-    ShellCommand(
-        name="Python linter",
-        description="linting Python",
-        descriptionDone="linting done",
-        command=util.Transform(lint_dispatcher, util.Property("project")),
-        workdir="../../deployment/taler-build"
-    )
-)
 # This builder is NOT ACTIVE!
 #BUILDERS.append(util.BuilderConfig(
 #    name="lint-builder",
@@ -1047,6 +1052,9 @@ BUILDERS.append(util.BuilderConfig(
     factory=CHECK_AND_COMPILE_FACTORY
 ))
 
+# Add email notification
+
+EMAIL_ALERTS.append("compilecheck-builder")
 
 
 ################ 18: 'PACKAGING - DEBIAN AND UBUNTU ' JOB 
###################################
@@ -1108,6 +1116,10 @@ BUILDERS.append(util.BuilderConfig(
     factory=CREATE_UBUNTU_PACKAGES_FACTORY
 ))
 
+# Add email notifications - March 10, 2023, javisep
+
+EMAIL_ALERTS.append("packaging-debian-builder")
+EMAIL_ALERTS.append("packaging-ubuntu-builder")
 
 ################ 99: debug stuff JOB ###################################
 
@@ -1147,22 +1159,22 @@ SERVICES.append(reporters.IRC(
     }
 ))
 
-# SERVICES.append(reporters.MailNotifier(
-#     fromaddr="testbuild@taler.net",
-#     # notify from pass to fail, and viceversa.
-#     generators=[BuildStatusGenerator(
-#         mode=('change','problem','failing','exception',),
-#         builders=EMAIL_ALERTS,
-#         message_formatter=reporters.MessageFormatter(
-#             template_type='plain',
-#             wantSteps=True,
-#             wantLogs=True
-#         ),
-#         add_logs=True,
-#     )],
-#     sendToInterestedUsers=False,
-#     extraRecipients=["buildfailures@taler.net"]
-# ))
+SERVICES.append(reporters.MailNotifier(
+    fromaddr="testbuild@taler.net",
+    # notify from pass to fail, and viceversa.
+    generators=[BuildStatusGenerator(
+        mode=('change','problem','failing','exception',),
+        builders=EMAIL_ALERTS,
+        message_formatter=reporters.MessageFormatter(
+            template_type='plain',
+            wantSteps=True,
+            wantLogs=True
+        ),
+        add_logs=True,
+    )],
+    sendToInterestedUsers=False,
+    extraRecipients=["buildfailures@taler.net"]
+))
 
 
 ############# GENERAL PURPOSE SCHEDULERS ##########################

-- 
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]