gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-deployment] 02/02: format python code with yapf


From: gnunet
Subject: [GNUnet-SVN] [taler-deployment] 02/02: format python code with yapf
Date: Thu, 29 Aug 2019 16:52:06 +0200

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

dold pushed a commit to branch master
in repository deployment.

commit 735a4c97ac0bc0bdbfe317ce6859f139e5cd7b8a
Author: Florian Dold <address@hidden>
AuthorDate: Thu Aug 29 16:52:01 2019 +0200

    format python code with yapf
---
 buildbot/master.cfg | 645 +++++++++++++++++++++++++++++-----------------------
 1 file changed, 355 insertions(+), 290 deletions(-)

diff --git a/buildbot/master.cfg b/buildbot/master.cfg
index 3d6678e..6fc91f8 100644
--- a/buildbot/master.cfg
+++ b/buildbot/master.cfg
@@ -2,11 +2,7 @@ import re
 from getpass import getuser
 from buildbot.steps.source.git import Git
 from buildbot.steps.shell import ShellCommand
-from buildbot.plugins import (reporters,
-                              worker,
-                              changes,
-                              schedulers,
-                              util)
+from buildbot.plugins import (reporters, worker, changes, schedulers, util)
 
 # This is a sample buildmaster config file. It must be installed as
 # 'master.cfg' in your buildmaster's base directory.
@@ -51,30 +47,25 @@ c["workers"] = [
     # the 'test' deployment.
     worker.Worker("topper-worker", "topper-pass"),
 
-
     ##
     # This worker checks that all the services run under the
     # 'demo' deployment are up&running.
     worker.Worker("demo-worker", "demo-pass"),
 
-
     ##
     # This worker compiles the auditor reports for the "green"
     # deployment.
     worker.Worker("test-auditor-worker", "test-auditor-pass"),
 
-
     ##
     # This worker compiles the auditor reports for the "green"
     # demo deployment.
-    worker.Worker("demo-auditor-worker-green",
-                  "demo-auditor-green-pass"),
+    worker.Worker("demo-auditor-worker-green", "demo-auditor-green-pass"),
 
     ##
     # This worker compiles the auditor reports for the "blue"
     # demo deployment.
-    worker.Worker("demo-auditor-worker-blue",
-                  "demo-auditor-blue-pass"),
+    worker.Worker("demo-auditor-worker-blue", "demo-auditor-blue-pass"),
 
     ##
     # The following workers were rarely/never used; excluding
@@ -87,7 +78,8 @@ c["workers"] = [
     # worker.Worker("lint-worker", "lint-pass"),
     # worker.Worker("selenium-worker", "selenium-pass"),
     # worker.Worker("wallet-worker", "wallet-pass"),
-    ]
+]
+
 
 ##
 # Maps usernames to workers.
@@ -96,19 +88,20 @@ def pick_map(buildername):
 
     auditor_worker_map = {
         "demo-green": "demo-auditor-worker-green",
-        "demo-blue": "demo-auditor-worker-blue"}
+        "demo-blue": "demo-auditor-worker-blue"
+    }
 
     meta_map = {"auditor-builder-demo": auditor_worker_map}
 
     return meta_map.get(buildername)
+
+
 # 'protocols' contains information about protocols which master
 # will use for communicating with workers. You must define at
 # least 'port' option that workers could connect to your master
 # with this protocol. 'port' must match the value configured into
 # the workers (with their --master option)
-c["protocols"] = {
-    "pb": {
-        "port": "tcp:9989:interface=127.0.0.1"}}
+c["protocols"] = {"pb": {"port": "tcp:9989:interface=127.0.0.1"}}
 
 ####### CHANGESOURCES
 
@@ -125,6 +118,7 @@ c["change_source"] = [ALLCS]
 # Configure the Schedulers, which decide how to react to incoming
 # changes.
 
+
 def twister_web_page(change):
     _change = change.asDict()
     repo = _change.get("project")
@@ -139,23 +133,23 @@ def twister_web_page(change):
 
     return False
 
+
 NIGHTLY_SCHEDULER = schedulers.Nightly(
     name="nightly-scheduler",
-    builderNames=["lcov-builder",
-                  "auditor-builder-demo",
-                  "auditor-builder"],
+    builderNames=["lcov-builder", "auditor-builder-demo", "auditor-builder"],
     branch="master",
     hour=6,
-    minute=0)
+    minute=0
+)
 
 DOC_SCHEDULER = schedulers.SingleBranchScheduler(
     name="periodic-doc-scheduler",
     builderNames=["doc-builder"],
     change_filter=util.ChangeFilter(
-        branch_re="(master|stable)",
-        project_re="(docs)"),
-    treeStableTimer=None)
-
+        branch_re="(master|stable)", project_re="(docs)"
+    ),
+    treeStableTimer=None
+)
 
 SITES_SCHEDULER = schedulers.SingleBranchScheduler(
     name="sites-scheduler",
@@ -165,68 +159,70 @@ SITES_SCHEDULER = schedulers.SingleBranchScheduler(
         # Given that filter_fn is used, the line below could be
         # removed (?)
         project_re="(www|twister)",
-        filter_fn=twister_web_page),
-    treeStableTimer=None)
-
+        filter_fn=twister_web_page
+    ),
+    treeStableTimer=None
+)
 
 WALLET_SCHEDULER = schedulers.SingleBranchScheduler(
     name="wallet-scheduler",
     change_filter=util.ChangeFilter(
-        branch="master",
-        project_re="(wallet|deployment)"),
+        branch="master", project_re="(wallet|deployment)"
+    ),
     treeStableTimer=None,
-    builderNames=[])
+    builderNames=[]
+)
 
 DEMO_SERVICES_CHECKER_SCHEDULER = schedulers.Periodic(
     name="demo-services-checker-scheduler",
-    periodicBuildTimer=60*60, # 1 hour
-    builderNames=["demo-services-checker-builder"])
+    periodicBuildTimer=60 * 60,  # 1 hour
+    builderNames=["demo-services-checker-builder"]
+)
 
 TIP_RESERVE_TOPPER_SCHEDULER = schedulers.Periodic(
     name="tip-reserve-topper-scheduler",
-    periodicBuildTimer=60*60*24*10, # 10 days
-    builderNames=["tip-reserve-topper-builder"])
+    periodicBuildTimer=60 * 60 * 24 * 10,  # 10 days
+    builderNames=["tip-reserve-topper-builder"]
+)
 
 ALL_SCHEDULER = schedulers.SingleBranchScheduler(
     name="all-scheduler",
     change_filter=util.ChangeFilter(
         branch_re="(master|stable)",
         project_re="(backoffice|wallet|bank|exchange|"
-                   "merchant|deployment|donations|twister|"
-                   "blog|help|survey|landing|playground)"),
+        "merchant|deployment|donations|twister|"
+        "blog|help|survey|landing|playground)"
+    ),
     treeStableTimer=None,
-    builderNames=["test-builder"])
+    builderNames=["test-builder"]
+)
 
 # Scheduler monitoring the help.git repo; a forgotten repo we
 # use to test BB.
 DEBUG_SCHEDULER = schedulers.SingleBranchScheduler(
     name="debug-scheduler",
-    change_filter=util.ChangeFilter(
-        branch="master",
-        project="help"),
+    change_filter=util.ChangeFilter(branch="master", project="help"),
     treeStableTimer=None,
-    builderNames=["debug-builder"])
+    builderNames=["debug-builder"]
+)
 
 # Consider adding other Python parts, like the various frontends.
 LINT_SCHEDULER = schedulers.SingleBranchScheduler(
     name="lint-scheduler",
     change_filter=util.ChangeFilter(
-        branch="master",
-        project_re="(bank|donations|survey|blog)"),
+        branch="master", project_re="(bank|donations|survey|blog)"
+    ),
     treeStableTimer=None,
-    builderNames=["lint-builder"])
+    builderNames=["lint-builder"]
+)
 
 # Provide "force" button in the web UI.  To be removed in the
 # future ?
 FORCE_SCHEDULER = schedulers.ForceScheduler(
     name="force-scheduler",
     builderNames=[
-        "lcov-builder",
-        "auditor-builder",
-        "auditor-builder-demo",
-        "test-builder",
-        "doc-builder",
-        "sites-builder",
+        "lcov-builder", "auditor-builder", "auditor-builder-demo",
+        "test-builder", "doc-builder", "sites-builder",
         "tip-reserve-topper-builder"
 
         ##
@@ -234,7 +230,8 @@ FORCE_SCHEDULER = schedulers.ForceScheduler(
         # "wallet-builder",
         # "selenium-builder",
         # "debug-builder",
-        ])
+    ]
+)
 
 c["schedulers"] = [
     NIGHTLY_SCHEDULER,
@@ -250,8 +247,7 @@ c["schedulers"] = [
     # DEBUG_SCHEDULER,
     # WALLET_SCHEDULER,
     # LINT_SCHEDULER
-    
-    ]
+]
 
 ####### BUILDERS
 
@@ -260,211 +256,273 @@ c["schedulers"] = [
 # them.  Note that any particular build will only take place on
 # one worker.
 
+
 def git_step(repo):
-    return Git(repourl=repo,
-               mode="full",
-               method="fresh",
-               logEnviron=False,
-               alwaysUseLatest=True,
-               haltOnFailure=True,
-               branch="master")
+    return Git(
+        repourl=repo,
+        mode="full",
+        method="fresh",
+        logEnviron=False,
+        alwaysUseLatest=True,
+        haltOnFailure=True,
+        branch="master"
+    )
+
 
 WALLET_FACTORY = util.BuildFactory()
-WALLET_FACTORY.addStep(git_step(
-    "git://git.taler.net/wallet-webex.git"))
-WALLET_FACTORY.addStep(ShellCommand(
-    name="configuration",
-    description="Running configure script",
-    descriptionDone="Correctly configured",
-    command=["./configure"],
-    workdir="build/"))
-WALLET_FACTORY.addStep(ShellCommand(
-    name="test",
-    description="Running wallet tests",
-    descriptionDone="Test correctly run",
-    command=["make", "check"],
-    workdir="build/"))
-WALLET_FACTORY.addStep(ShellCommand(
-    name="lint",
-    description="Linting the wallet",
-    descriptionDone="Linting done",
-    command=["make", "lint"],
-    workdir="build/"))
+WALLET_FACTORY.addStep(git_step("git://git.taler.net/wallet-webex.git"))
+WALLET_FACTORY.addStep(
+    ShellCommand(
+        name="configuration",
+        description="Running configure script",
+        descriptionDone="Correctly configured",
+        command=["./configure"],
+        workdir="build/"
+    )
+)
+WALLET_FACTORY.addStep(
+    ShellCommand(
+        name="test",
+        description="Running wallet tests",
+        descriptionDone="Test correctly run",
+        command=["make", "check"],
+        workdir="build/"
+    )
+)
+WALLET_FACTORY.addStep(
+    ShellCommand(
+        name="lint",
+        description="Linting the wallet",
+        descriptionDone="Linting done",
+        command=["make", "lint"],
+        workdir="build/"
+    )
+)
 
 DEBUG_FACTORY = util.BuildFactory()
-DEBUG_FACTORY.addStep(ShellCommand(
-    name="echo debug",
-    description="just echoing a word",
-    descriptionDone="builder responded",
-    command=["echo", "I'm here!"]))
+DEBUG_FACTORY.addStep(
+    ShellCommand(
+        name="echo debug",
+        description="just echoing a word",
+        descriptionDone="builder responded",
+        command=["echo", "I'm here!"]
+    )
+)
+
 
 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.addStep(
+    ShellCommand(
+        name="Python linter",
+        description="linting Python",
+        descriptionDone="linting done",
+        command=util.Transform(lint_dispatcher, util.Property("project")),
+        workdir="../../deployment/taler-build"
+    )
+)
 
 LCOV_FACTORY = util.BuildFactory()
-LCOV_FACTORY.addStep(ShellCommand(
-    haltOnFailure=True,
-    name="invalidation",
-    description="Invalidating timestamps",
-    descriptionDone="timestamps invalidated",
-    command=["./invalidate.sh"],
-    workdir="../../deployment/taler-build",
-    env={"TALER_ENV_NAME": "not-test"})) # work-around 'set -eu'
-LCOV_FACTORY.addStep(ShellCommand(
-    name="build",
-    description="Compiling..",
-    descriptionDone="lcov files generated",
-    command=["make", "lcov"],
-    workdir="../../deployment/taler-build",
-    env={"PATH": "${HOME}/local/bin:${PATH}",
-         "TALER_CHECKDB": "postgres:///talercheck-${USER}"}))
+LCOV_FACTORY.addStep(
+    ShellCommand(
+        haltOnFailure=True,
+        name="invalidation",
+        description="Invalidating timestamps",
+        descriptionDone="timestamps invalidated",
+        command=["./invalidate.sh"],
+        workdir="../../deployment/taler-build",
+        env={"TALER_ENV_NAME": "not-test"}
+    )
+)  # work-around 'set -eu'
+LCOV_FACTORY.addStep(
+    ShellCommand(
+        name="build",
+        description="Compiling..",
+        descriptionDone="lcov files generated",
+        command=["make", "lcov"],
+        workdir="../../deployment/taler-build",
+        env={
+            "PATH": "${HOME}/local/bin:${PATH}",
+            "TALER_CHECKDB": "postgres:///talercheck-${USER}"
+        }
+    )
+)
 
 # FIXME: 'demo' reports generator missing.
 AUDITOR_FACTORY = util.BuildFactory()
-AUDITOR_FACTORY.addStep(ShellCommand(
-    name="Auditor reports generator",
-    description="Generating auditor reports.",
-    descriptionDone="Auditor reports correctly generated.",
-    command=["./make_auditor_reports.sh"],
-    workdir="../../deployment/buildbot"))
-
+AUDITOR_FACTORY.addStep(
+    ShellCommand(
+        name="Auditor reports generator",
+        description="Generating auditor reports.",
+        descriptionDone="Auditor reports correctly generated.",
+        command=["./make_auditor_reports.sh"],
+        workdir="../../deployment/buildbot"
+    )
+)
 
 TIP_RESERVE_TOPPER_FACTORY = util.BuildFactory()
-TIP_RESERVE_TOPPER_FACTORY.addStep(ShellCommand(
-    name="tip reserve topper",
-    description="Topping the tip reserve.",
-    descriptionDone="Tip reserve has been topped.",
-    command=["./top_reserve.sh"],
-    workdir="../../deployment/buildbot"))
+TIP_RESERVE_TOPPER_FACTORY.addStep(
+    ShellCommand(
+        name="tip reserve topper",
+        description="Topping the tip reserve.",
+        descriptionDone="Tip reserve has been topped.",
+        command=["./top_reserve.sh"],
+        workdir="../../deployment/buildbot"
+    )
+)
 
 BUILD_FACTORY = util.BuildFactory()
-BUILD_FACTORY.addStep(ShellCommand(
-    name="build",
-    description="Building all Taler codebase.",
-    descriptionDone="Taler built.",
-    command=["./build.sh"],
-    workdir="../../deployment/buildbot",
-    haltOnFailure=True))
-
-BUILD_FACTORY.addStep(ShellCommand(
-    name="config",
-    description="Generating configuration file.",
-    descriptionDone="Configuration file generated.",
-    command=["./config.sh"],
-    workdir="../../deployment/buildbot",
-    haltOnFailure=True))
-
-BUILD_FACTORY.addStep(ShellCommand(
-    name="keys generation and sign",
-    description="Generating exchange keys, and auditor-sign them.",
-    descriptionDone="Exchange keys generated, and auditor-signed.",
-    command=["./keys.sh"],
-    workdir="../../deployment/buildbot",
-    haltOnFailure=True,
-    env={'BRANCH': util.Property("branch")}))
-
-BUILD_FACTORY.addStep(ShellCommand(
-    name="wire details sign",
-    description="Signing exchange wire details.",
-    descriptionDone="Exchange wire details got signed.",
-    command=["./sign.sh"],
-    workdir="../../deployment/buildbot",
-    haltOnFailure=True,
-    env={'BRANCH': util.Property("branch")}))
-
-BUILD_FACTORY.addStep(ShellCommand(
-    name="restart services",
-    description="Restarting inactive blue-green party.",
-    descriptionDone="Restarting Taler.",
-    command=["./restart.sh"],
-    workdir="../../deployment/buildbot",
-    haltOnFailure=True,
-    env={'BRANCH': util.Property("branch")}))
-
-BUILD_FACTORY.addStep(ShellCommand(
-    name="check services correctly restarted",
-    description="Checking services are correctly restarted.",
-    descriptionDone="All services are correctly restarted.",
-    command=["./checks.sh"],
-    workdir="../../deployment/buildbot",
-    haltOnFailure=True,
-    env={'DEPLOYMENT': "test"}))
+BUILD_FACTORY.addStep(
+    ShellCommand(
+        name="build",
+        description="Building all Taler codebase.",
+        descriptionDone="Taler built.",
+        command=["./build.sh"],
+        workdir="../../deployment/buildbot",
+        haltOnFailure=True
+    )
+)
+
+BUILD_FACTORY.addStep(
+    ShellCommand(
+        name="config",
+        description="Generating configuration file.",
+        descriptionDone="Configuration file generated.",
+        command=["./config.sh"],
+        workdir="../../deployment/buildbot",
+        haltOnFailure=True
+    )
+)
+
+BUILD_FACTORY.addStep(
+    ShellCommand(
+        name="keys generation and sign",
+        description="Generating exchange keys, and auditor-sign them.",
+        descriptionDone="Exchange keys generated, and auditor-signed.",
+        command=["./keys.sh"],
+        workdir="../../deployment/buildbot",
+        haltOnFailure=True,
+        env={'BRANCH': util.Property("branch")}
+    )
+)
+
+BUILD_FACTORY.addStep(
+    ShellCommand(
+        name="wire details sign",
+        description="Signing exchange wire details.",
+        descriptionDone="Exchange wire details got signed.",
+        command=["./sign.sh"],
+        workdir="../../deployment/buildbot",
+        haltOnFailure=True,
+        env={'BRANCH': util.Property("branch")}
+    )
+)
+
+BUILD_FACTORY.addStep(
+    ShellCommand(
+        name="restart services",
+        description="Restarting inactive blue-green party.",
+        descriptionDone="Restarting Taler.",
+        command=["./restart.sh"],
+        workdir="../../deployment/buildbot",
+        haltOnFailure=True,
+        env={'BRANCH': util.Property("branch")}
+    )
+)
+
+BUILD_FACTORY.addStep(
+    ShellCommand(
+        name="check services correctly restarted",
+        description="Checking services are correctly restarted.",
+        descriptionDone="All services are correctly restarted.",
+        command=["./checks.sh"],
+        workdir="../../deployment/buildbot",
+        haltOnFailure=True,
+        env={'DEPLOYMENT': "test"}
+    )
+)
 
 TESTSWITCH_FACTORY = util.BuildFactory()
-TESTSWITCH_FACTORY.addStep(ShellCommand(
-    name="switch active party",
-    description="Switch to the party which was inactive.",
-    descriptionDone="Active party has been switched.",
-    command=["./switch.sh"],
-    workdir="../../deployment/buildbot"))
+TESTSWITCH_FACTORY.addStep(
+    ShellCommand(
+        name="switch active party",
+        description="Switch to the party which was inactive.",
+        descriptionDone="Active party has been switched.",
+        command=["./switch.sh"],
+        workdir="../../deployment/buildbot"
+    )
+)
 
 SELENIUM_FACTORY = util.BuildFactory()
-SELENIUM_FACTORY.addStep(ShellCommand(
-    name="selenium",
-    description="Headless browser test",
-    descriptionDone="Test finished",
-    command=["launch_selenium_test"],
-    env={'PATH': "${HOME}/local/bin:/usr/lib/chromium:${PATH}"}))
+SELENIUM_FACTORY.addStep(
+    ShellCommand(
+        name="selenium",
+        description="Headless browser test",
+        descriptionDone="Test finished",
+        command=["launch_selenium_test"],
+        env={'PATH': "${HOME}/local/bin:/usr/lib/chromium:${PATH}"}
+    )
+)
 
 DOC_FACTORY = util.BuildFactory()
-DOC_FACTORY.addStep(ShellCommand(
-    name="build docs",
-    description="Building documentation",
-    descriptionDone="Documentation built.",
-    command=["./build-docs.sh"],
-    workdir="../../deployment/buildbot",
-    haltOnFailure=True))
+DOC_FACTORY.addStep(
+    ShellCommand(
+        name="build docs",
+        description="Building documentation",
+        descriptionDone="Documentation built.",
+        command=["./build-docs.sh"],
+        workdir="../../deployment/buildbot",
+        haltOnFailure=True
+    )
+)
 
 SITES_FACTORY = util.BuildFactory()
-SITES_FACTORY.addStep(ShellCommand(
-    name="build Web sites",
-    description="Building all the Taler homepages",
-    descriptionDone="Sites built.",
-    command=["./build-sites.sh"],
-    workdir="../../deployment/buildbot",
-    haltOnFailure=True))
+SITES_FACTORY.addStep(
+    ShellCommand(
+        name="build Web sites",
+        description="Building all the Taler homepages",
+        descriptionDone="Sites built.",
+        command=["./build-sites.sh"],
+        workdir="../../deployment/buildbot",
+        haltOnFailure=True
+    )
+)
 
 DEMO_SERVICES_CHECKER_FACTORY = util.BuildFactory()
-DEMO_SERVICES_CHECKER_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"}))
+DEMO_SERVICES_CHECKER_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"}
+    )
+)
 
 DEBUG_BUILDER = util.BuilderConfig(
-    name="debug-builder",
-    workernames=["debug-worker"],
-    factory=DEBUG_FACTORY)
+    name="debug-builder", workernames=["debug-worker"], factory=DEBUG_FACTORY
+)
 
 LINT_BUILDER = util.BuilderConfig(
-    name="lint-builder",
-    workernames=["lint-worker"],
-    factory=LINT_FACTORY)
+    name="lint-builder", workernames=["lint-worker"], factory=LINT_FACTORY
+)
 
 LCOV_BUILDER = util.BuilderConfig(
-    name="lcov-builder",
-    workernames=["lcov-worker"],
-    factory=LCOV_FACTORY)
+    name="lcov-builder", workernames=["lcov-worker"], factory=LCOV_FACTORY
+)
+
 
 ##
 # Helper function that picks the active deployment between
 # blue and green and schedules it as the next worker for producing
 # auditor reports.
-def pick_active_color(
-        marker, builder, workers_list, build_request):
+def pick_active_color(marker, builder, workers_list, build_request):
 
     f = open(marker, "r")
     if not f:
@@ -484,56 +542,61 @@ def pick_active_color(
     f.close()
     return None
 
-def pick_active_color_demo (builder, workers_list, build_request):
-    return pick_active_color (
-        "/home/demo/active", builder, workers_list, build_request)
+
+def pick_active_color_demo(builder, workers_list, build_request):
+    return pick_active_color(
+        "/home/demo/active", builder, workers_list, build_request
+    )
+
 
 AUDITOR_BUILDER_TEST = util.BuilderConfig(
     name="auditor-builder",
     workernames=["test-auditor-worker"],
-    factory=AUDITOR_FACTORY)
+    factory=AUDITOR_FACTORY
+)
 
 AUDITOR_BUILDER_DEMO = util.BuilderConfig(
     name="auditor-builder-demo",
     nextWorker=pick_active_color_demo,
-    workernames=["demo-auditor-worker-blue",
-                 "demo-auditor-worker-green"],
-    factory=AUDITOR_FACTORY)
+    workernames=["demo-auditor-worker-blue", "demo-auditor-worker-green"],
+    factory=AUDITOR_FACTORY
+)
 
 TIP_RESERVE_TOPPER_BUILDER = util.BuilderConfig(
     name="tip-reserve-topper-builder",
     workernames=["topper-worker"],
-    factory=TIP_RESERVE_TOPPER_FACTORY)
+    factory=TIP_RESERVE_TOPPER_FACTORY
+)
 
 DEMO_SERVICES_CHECKER_BUILDER = util.BuilderConfig(
     name="demo-services-checker-builder",
     workernames="demo-worker",
-    factory=DEMO_SERVICES_CHECKER_FACTORY)
+    factory=DEMO_SERVICES_CHECKER_FACTORY
+)
 
 TEST_BUILDER = util.BuilderConfig(
-    name="test-builder",
-    workernames=["test-worker"],
-    factory=BUILD_FACTORY)
+    name="test-builder", workernames=["test-worker"], factory=BUILD_FACTORY
+)
 
 SELENIUM_BUILDER = util.BuilderConfig(
     name="selenium-builder",
     workernames=["selenium-worker"],
-    factory=SELENIUM_FACTORY)
+    factory=SELENIUM_FACTORY
+)
 
 DOC_BUILDER = util.BuilderConfig(
-    name="doc-builder",
-    workernames=["doc-worker"],
-    factory=DOC_FACTORY)
+    name="doc-builder", workernames=["doc-worker"], factory=DOC_FACTORY
+)
 
 SITES_BUILDER = util.BuilderConfig(
-    name="sites-builder",
-    workernames=["sites-worker"],
-    factory=SITES_FACTORY)
+    name="sites-builder", workernames=["sites-worker"], factory=SITES_FACTORY
+)
 
 WALLET_BUILDER = util.BuilderConfig(
     name="wallet-builder",
     workernames=["wallet-worker"],
-    factory=WALLET_FACTORY)
+    factory=WALLET_FACTORY
+)
 
 c["builders"] = [
     LCOV_BUILDER,
@@ -544,12 +607,12 @@ c["builders"] = [
     DEMO_SERVICES_CHECKER_BUILDER,
     DOC_BUILDER,
     SITES_BUILDER,
-#   Rarely/never used:
-#   SELENIUM_BUILDER,
-#   WALLET_BUILDER,
-#   DEBUG_BUILDER,
-#   LINT_BUILDER
-    ]
+    #   Rarely/never used:
+    #   SELENIUM_BUILDER,
+    #   WALLET_BUILDER,
+    #   DEBUG_BUILDER,
+    #   LINT_BUILDER
+]
 
 ####### BUILDBOT SERVICES
 
@@ -562,12 +625,16 @@ IRC = reporters.IRC(
     "irc.eu.freenode.net",
     "taler-bb",
     useColors=False,
-    channels=[{"channel": "#taler"}],
+    channels=[{
+        "channel": "#taler"
+    }],
     password="taler-bb-pass19",
     notify_events={
         'exception': 1,
         'successToFailure': 1,
-        'failureToSuccess': 1})
+        'failureToSuccess': 1
+    }
+)
 
 EMAIL = reporters.MailNotifier(
     fromaddr="address@hidden",
@@ -583,9 +650,10 @@ EMAIL = reporters.MailNotifier(
         # Rarely/never used, excluding.
         # "wallet-builder",
         # "selenium-builder"
-        ),
+    ),
     extraRecipients=["address@hidden"],
-    subject="Taler build.")
+    subject="Taler build."
+)
 
 c["services"] = [IRC, EMAIL]
 
@@ -600,59 +668,56 @@ c["buildbotURL"] = "https://buildbot.taler.net/";
 from taler_bb_userpass_db import USER_PASSWORD_DB
 
 BUILDER_LIST = [
+    "doc-builder", "lcov-builder", "auditor-builder", "auditor-builder-demo",
+    "demo-services-checker-builder", "tip-reserve-topper-builder",
+    "sites-builder", "test-builder"
 
-                "doc-builder",
-                "lcov-builder",
-                "auditor-builder",
-                "auditor-builder-demo",
-                "demo-services-checker-builder",
-                "tip-reserve-topper-builder",
-                "sites-builder",
-                "test-builder"
-
-                ##
-                # Rarely/never used, excluding.
-                # "lint-builder",
-                # "wallet-builder",
-                # "selenium-builder"
-                ]
+    ##
+    # Rarely/never used, excluding.
+    # "lint-builder",
+    # "wallet-builder",
+    # "selenium-builder"
+]
 
 authz = util.Authz(
     allowRules=[
-        util.ForceBuildEndpointMatcher(
-            role="admins",
-            builder=b) for b in BUILDER_LIST]
-        + [util.StopBuildEndpointMatcher(
-            role="admins",
-            builder=b) for b in BUILDER_LIST]
-        + [util.RebuildBuildEndpointMatcher(
-            role="admins",
-            builder=b) for b in BUILDER_LIST]
-        + [util.ForceBuildEndpointMatcher(
-            role="norole",
-            builder=b) for b in BUILDER_LIST]
-        + [util.StopBuildEndpointMatcher(
-            role="norole",
-            builder=b) for b in BUILDER_LIST]
-        + [util.RebuildBuildEndpointMatcher(
-            role="norole",
-            builder=b) for b in BUILDER_LIST],
+        util.ForceBuildEndpointMatcher(role="admins", builder=b)
+        for b in BUILDER_LIST
+    ] + [
+        util.StopBuildEndpointMatcher(role="admins", builder=b)
+        for b in BUILDER_LIST
+    ] + [
+        util.RebuildBuildEndpointMatcher(role="admins", builder=b)
+        for b in BUILDER_LIST
+    ] + [
+        util.ForceBuildEndpointMatcher(role="norole", builder=b)
+        for b in BUILDER_LIST
+    ] + [
+        util.StopBuildEndpointMatcher(role="norole", builder=b)
+        for b in BUILDER_LIST
+    ] + [
+        util.RebuildBuildEndpointMatcher(role="norole", builder=b)
+        for b in BUILDER_LIST
+    ],
     roleMatchers=[
-        util.RolesFromUsername(roles=["admins"],
-                               usernames=["marcello",
-                                          "florian",
-                                          "christian"])])
+        util.RolesFromUsername(
+            roles=["admins"], usernames=["marcello", "florian", "christian"]
+        )
+    ]
+)
 
 # minimalistic config to activate new web UI
 c["www"] = {
     "port": 8010,
-    "plugins" : {
+    "plugins": {
         "waterfall_view": {},
-        "console_view":{}},
+        "console_view": {}
+    },
     "allowed_origins": ["https://*.taler.net";],
     "avatar_methods": [],
     "auth": util.UserPasswordAuth(USER_PASSWORD_DB),
-    "authz": authz}
+    "authz": authz
+}
 
 ####### DB URL
 
@@ -660,5 +725,5 @@ c["db"] = {
     # This specifies what database buildbot uses to store its
     # state.  You can leave  this at its default for all but the
     # largest installations.
-    "db_url" : "sqlite:///state.sqlite",
+    "db_url": "sqlite:///state.sqlite",
 }

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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