Beispiel #1
0
def get_status_targets(standard_builders, standard_categories=None):

    from buildbot.status import html
    from buildbot.status.web import auth, authz
    authz_cfg=authz.Authz(
                      # change any of these to True to enable; see the manual for more
                      # options
                      gracefulShutdown   = False,
                      forceBuild         = True, # use this to test your slave once it is set up
                      forceAllBuilds     = False,
                      pingBuilder        = True,
                      stopBuild          = True,
                      stopAllBuilds      = False,
                      cancelPendingBuild = True,
                      )

    default_email = config.options.get('Master Options', 'default_email')

    return [
        buildbot.status.html.WebStatus(
            http_port = 8011, authz=authz_cfg),

        # All the standard builders send e-mail and IRC notifications.
        buildbot.status.mail.MailNotifier(
            fromaddr = "*****@*****.**",
            extraRecipients = [default_email],
            lookup = ConfigEmailLookup(os.path.join(os.path.dirname(__file__),
                                                    "llvmauthors.cfg"),
                                       default_email),
            mode = "problem",
            builders = standard_builders),
        buildbot.status.words.IRC(
            host = "irc.oftc.net", nick = "llvmbb",
            channels = ["#llvm"],
            allowForce = True,
            categories = standard_categories,
            notify_events = ['successToFailure', 'failureToSuccess']),
        # Use different nick's in the different channels to support ignoring
        # one bot or the other.
        # (Note: /ignore applies to all channels on the network)
        buildbot.status.words.IRC(
            host = "irc.oftc.net", nick = "llvmbb-llvm-build",
            channels = ["#llvm-build"],
            allowForce = True,
            categories = standard_categories,
            notify_events = ['successToFailure', 'failureToSuccess']),

        # In addition to that the following notifiers are defined for special
        # cases.
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers= False,
            extraRecipients = ["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "failing",
            builders = ["polly-amd64-linux", "polly-intel32-linux",
                        "polly-perf-O3", "polly-perf-O3-polly",
                        "polly-perf-O3-polly-codegen-isl",
                        "polly-perf-O3-polly-scev",
                        "polly-perf-O3-polly-scev-codegen-isl",
                        "polly-perf-O3-polly-detect"],
            addLogs=False,
            num_lines = 15),
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers= False,
            extraRecipients = ["*****@*****.**", "*****@*****.**",
                               "*****@*****.**", "*****@*****.**",
                               "*****@*****.**", "*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "failing",
            builders = ["clang-x86_64-darwin10-gdb", "clang-x86_64-ubuntu-gdb-75"],
            addLogs=False,
            num_lines = 15),
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers= False,
            extraRecipients = ["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "failing",
            builders = ["clang-x86_64-debian-fast"],
            addLogs=False,
            num_lines = 15),
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers= False,
            extraRecipients = ["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "failing",
            builders = ["clang-atom-d525-fedora", "clang-atom-d525-fedora-rel",
                        "clang-x64-ninja-win7"],
            addLogs=False,
            num_lines = 15),
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers= False,
            extraRecipients = ["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "failing",
            builders = ["llvm-hexagon-elf","clang-hexagon-elf"],
            addLogs=False,
            num_lines = 15),
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers= False,
            extraRecipients = ["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "failing",
            builders = ["clang-s390x-linux", "clang-s390x-linux-multistage",
                        "clang-s390x-linux-lnt"],
            addLogs=False,
            num_lines = 15),
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers= False,
            extraRecipients = ["*****@*****.**","*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "failing",
            builders = ["llgo-x86_64-linux"],
            addLogs=False,
            num_lines = 15),
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers= False,
            extraRecipients = ["*****@*****.**",
                               "*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "failing",
            builders = ["lldb-x86_64-ubuntu-14.04-cmake",
                        "lldb-x86_64-ubuntu-14.04-buildserver",
                        "lldb-windows7-android",
                        "lldb-x86_64-darwin-13.4",
                        "lldb-x86_64-ubuntu-14.04-android"],
            addLogs=False,
            num_lines = 15),
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers= False,
            extraRecipients = ["*****@*****.**",
                               "*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "failing",
            builders = ["clang-x86_64-linux-abi-test"],
            addLogs=False,
            num_lines = 15),
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers= False,
            extraRecipients = ["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "failing",
            builders = ["llvm-mips-linux", "clang-cmake-mips",
                        "clang-cmake-mipsel"],
            addLogs=False,
            num_lines = 15),
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers = False,
            extraRecipients = ["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "failing",
            builders = ["llvm-avr-linux"],
            addLogs=False,
            num_lines = 15),
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers= False,
            extraRecipients = ["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "failing",
            builders = ["clang-lld-x86_64-2stage", "lld-x86_64-win7",
                        "lld-x86_64-freebsd", "sanitizer_x86_64-freebsd",
                        "clang-x86_64-linux-abi-test", "lld-x86_64-darwin13",
                        "llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast",
                        "clang-with-lto-ubuntu", "clang-with-thin-lto-ubuntu",
                        "llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast",
                        "llvm-clang-x86_64-expensive-checks-win"],
            addLogs=False),
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers= False,
            extraRecipients = ["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "failing",
            builders = ["polly-arm-linux",
                        "aosp-O3-polly-before-vectorizer-unprofitable"],
            addLogs=False,
            num_lines = 15),
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers= True,
            extraRecipients = ["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "problem",
            builders = ["reverse-iteration"],
            addLogs=False,
            num_lines = 15),
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers= False,
            extraRecipients = ["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "failing",
            builders = ["clang-cuda-build"],
            addLogs=False,
            num_lines = 15),
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers= False,
            extraRecipients = ["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "failing",
            builders = ["lldb-amd64-ninja-netbsd7",
                        "lldb-amd64-ninja-netbsd8"],
            addLogs=False,
            num_lines = 15),
        InformativeMailNotifier(
            fromaddr = "*****@*****.**",
            sendToInterestedUsers = False,
            extraRecipients = ["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode = "failing",
            builders = ["llvm-riscv-linux"],
            addLogs=False,
            num_lines = 15),
        ]
Beispiel #2
0
def get_status_targets(standard_builders, standard_categories=None):

    from buildbot.status import html
    from buildbot.status.web import auth, authz
    authz_cfg = authz.Authz(
        # change any of these to True to enable; see the manual for more
        # options
        gracefulShutdown=False,
        forceBuild=True,  # use this to test your slave once it is set up
        forceAllBuilds=False,
        pingBuilder=True,
        stopBuild=True,
        stopAllBuilds=False,
        cancelPendingBuild=True,
    )

    default_email = config.options.get('Master Options', 'default_email')
    github_token = config.options.get('GitHub Status', 'token')

    return [
        buildbot.status.html.WebStatus(order_console_by_time=True,
                                       http_port=8011,
                                       authz=authz_cfg),
        GitHubStatus(token=github_token,
                     repoOwner='llvm',
                     repoName='llvm-project',
                     builders_to_report=[
                         "llvm-clang-x86_64-expensive-checks-ubuntu",
                         "llvm-clang-x86_64-win-fast",
                         "clang-x86_64-debian-fast",
                         "llvm-clang-x86_64-expensive-checks-debian",
                     ]),

        # All the standard builders send e-mail and IRC notifications.
        buildbot.status.mail.MailNotifier(
            fromaddr="*****@*****.**",
            extraRecipients=[default_email],
            lookup=ConfigEmailLookup(
                os.path.join(os.path.dirname(__file__), "llvmauthors.cfg"),
                default_email),
            mode="problem",
            builders=standard_builders),
        buildbot.status.words.IRC(
            host="irc.oftc.net",
            nick="llvmbb-llvm-build",
            channels=["#llvm-build"],
            allowForce=True,
            categories=standard_categories,
            notify_events=['successToFailure', 'failureToSuccess']),

        # In addition to that the following notifiers are defined for special
        # cases.
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=[
                                    "clang-aarch64-linux-build-cache",
                                    "clang-armv7-linux-build-cache"
                                ],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["clang-x86_64-debian-fast"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["clang-x64-ninja-win7"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=False,
            extraRecipients=["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=["clang-hexagon-elf"],
            addLogs=False,
            num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=[
                                    "clang-s390x-linux",
                                    "clang-s390x-linux-multistage",
                                    "clang-s390x-linux-lnt"
                                ],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=[
                                    "*****@*****.**",
                                    "*****@*****.**"
                                ],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["clang-x86_64-linux-abi-test"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["llvm-avr-linux"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=False,
            extraRecipients=["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=[
                "lld-x86_64-win", "lld-x86_64-freebsd", "lld-x86_64-darwin",
                "clang-x86_64-linux-abi-test", "clang-with-lto-ubuntu",
                "clang-with-thin-lto-ubuntu",
                "llvm-clang-x86_64-expensive-checks-win",
                "llvm-clang-x86_64-expensive-checks-ubuntu"
            ],
            addLogs=False),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=False,
            extraRecipients=[
                "*****@*****.**", "*****@*****.**"
            ],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=[
                "polly-arm-linux",
                "aosp-O3-polly-before-vectorizer-unprofitable"
            ],
            addLogs=False,
            num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=True,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="problem",
                                builders=["reverse-iteration"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=False,
            extraRecipients=["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=["clang-cuda-k80", "clang-cuda-p4", "clang-cuda-t4"],
            addLogs=False,
            num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["llvm-riscv-linux"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=[
                                    "*****@*****.**",
                                    "*****@*****.**",
                                    "*****@*****.**",
                                    "*****@*****.**"
                                ],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["lldb-x64-windows-ninja"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=False,
            extraRecipients=["*****@*****.**", "*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=["mlir-windows"],
            addLogs=False,
            num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["fuchsia-x86_64-linux"],
                                addLogs=False),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=True,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["lldb-x86_64-fedora"],
                                addLogs=False),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=True,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=[
                                    "fedora-llvm-x86_64", "x86_64-fedora-clang"
                                ],
                                addLogs=False),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=True,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["lldb-x86_64-debian"],
                                addLogs=False),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=True,
            extraRecipients=["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=["lldb-arm-ubuntu", "lldb-aarch64-ubuntu"],
            addLogs=False),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=True,
            extraRecipients=["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=[
                "llvm-clang-x86_64-win-fast", "lld-x86_64-ubuntu-fast",
                "llvm-clang-x86_64-expensive-checks-ubuntu",
                "llvm-clang-win-x-armv7l", "llvm-clang-win-x-aarch64"
            ],
            addLogs=False),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["clang-ve-ninja"],
                                addLogs=False),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=True,
            extraRecipients=["*****@*****.**", "*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=[
                "libc-x86_64-debian", "libc-x86_64_debian-dbg",
                "libc-x86_64-debian-dbg-asan"
            ],
            addLogs=False),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=True,
                                extraRecipients=["*****@*****.**"],
                                subject="Sphinx build %(builder)s Failure",
                                mode="failing",
                                builders=["publish-sphinx-docs"],
                                addLogs=False),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=True,
            extraRecipients=["*****@*****.**"],
            subject="ML Compiler Opt Failure: %(builder)s",
            mode="failing",
            builders=[
                "ml-opt-dev-x86-64", "ml-opt-rel-x86-64",
                "ml-opt-devrel-x86-64"
            ],
            addLogs=False),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=[
                                    "*****@*****.**",
                                    "*****@*****.**"
                                ],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=[
                                    "flang-aarch64-ubuntu",
                                    "flang-aarch64-ubuntu-clang",
                                    "flang-aarch64-ubuntu-gcc10"
                                ],
                                addLogs=False,
                                num_lines=15),
    ]
Beispiel #3
0
def get_status_targets(standard_builders):
    # Get from/to email addresses.
    from_email = set_config_option('Master Options', 'from_email')
    default_email = set_config_option('Master Options', 'default_email')

    # Check whether we are in testing mode, if so, just add minimal and verbose
    # status clients.
    is_production = set_config_option('Master Options', 'is_production', False)
    if not is_production:
        return [
            buildbot.status.html.WebStatus(http_port=8013, allowForce=True),
            InformativeMailNotifier(fromaddr=from_email,
                                    extraRecipients=[
                                        '*****@*****.**',
                                        '*****@*****.**'
                                    ],
                                    sendToInterestedUsers=False,
                                    mode='change',
                                    addLogs=False,
                                    num_lines=15),
        ]

    # Get the path to the authors file we use for email lookup.
    llvm_authors_path = set_config_option('Master Options',
                                          'llvm_authors_path')

    # Construct a lookup object to be used for public builders.
    public_lookup = ConfigEmailLookup(
        llvm_authors_path, default_address='*****@*****.**')

    return [
        buildbot.status.html.WebStatus(http_port=8013, allowForce=True),
        buildbot.status.words.IRC(
            'irc.oftc.net',
            'phased-bb-llvmlab',
            port=6668,
            channels=['llvm'],
            allowForce=False,
            password='******',
            notify_events=['successToFailure', 'failureToSuccess'],
            categories=['status']),

        # Experimental failing build notifier.
        #
        # These emails only go to the catch-all list.
        InformativeMailNotifier(
            fromaddr=from_email,
            extraRecipients=['*****@*****.**'],
            sendToInterestedUsers=False,
            mode='failing',
            categories=['experimental'],
            addLogs=False,
            num_lines=15),

        # Regular problem build notifier.
        #
        # These emails go to the interested public_users, and the catch-all
        # list.
        InformativeMailNotifier(
            fromaddr=from_email,
            lookup=public_lookup,
            extraRecipients=['*****@*****.**'],
            sendToInterestedUsers=True,
            mode='problem',
            categories=['build-public', 'test-public', 'status'],
            addLogs=False,
            num_lines=15),

        # Regular failing build notifier.
        #
        # These emails only go to the catch-all list.
        #
        # FIXME: Eventually, these should also go to the current build czars.
        # TODO: change subject to differentiate these from the problem emails
        InformativeMailNotifier(
            fromaddr=from_email,
            sendToInterestedUsers=False,
            extraRecipients=['*****@*****.**'],
            mode='failing',
            categories=['build-public', 'test-public'],
            addLogs=False,
            num_lines=15),

        # Phase status change notifier.
        #
        # These emails only go to the catch-all list.
        buildbot.status.mail.MailNotifier(
            fromaddr=from_email,
            sendToInterestedUsers=False,
            extraRecipients=['*****@*****.**'],
            mode='change',
            categories=['status']),

        # Send email to Howard Hinnant if the libcxx builder fails.
        InformativeMailNotifier(fromaddr=from_email,
                                sendToInterestedUsers=False,
                                extraRecipients=['*****@*****.**'],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=['libcxx_clang-x86_64-darwin11-RA'],
                                addLogs=False,
                                num_lines=15),
    ]
Beispiel #4
0
def get_status_targets(standard_builders, standard_categories=None):

    from buildbot.status import html
    from buildbot.status.web import auth, authz
    authz_cfg = authz.Authz(
        # change any of these to True to enable; see the manual for more
        # options
        gracefulShutdown=False,
        forceBuild=True,  # use this to test your slave once it is set up
        forceAllBuilds=False,
        pingBuilder=True,
        stopBuild=True,
        stopAllBuilds=False,
        cancelPendingBuild=True,
    )

    default_email = config.options.get('Master Options', 'default_email')

    return [
        buildbot.status.html.WebStatus(http_port=8011, authz=authz_cfg),

        # All the standard builders send e-mail and IRC notifications.
        buildbot.status.mail.MailNotifier(
            fromaddr="*****@*****.**",
            extraRecipients=[default_email],
            lookup=ConfigEmailLookup(
                os.path.join(os.path.dirname(__file__), "llvmauthors.cfg"),
                default_email),
            mode="problem",
            builders=standard_builders),
        buildbot.status.words.IRC(
            host="irc.oftc.net",
            nick="llvmbb",
            channels=["#llvm"],
            allowForce=True,
            categories=standard_categories,
            notify_events=['successToFailure', 'failureToSuccess']),
        # Use different nick's in the different channels to support ignoring
        # one bot or the other.
        # (Note: /ignore applies to all channels on the network)
        buildbot.status.words.IRC(
            host="irc.oftc.net",
            nick="llvmbb-llvm-build",
            channels=["#llvm-build"],
            allowForce=True,
            categories=standard_categories,
            notify_events=['successToFailure', 'failureToSuccess']),

        # In addition to that the following notifiers are defined for special
        # cases.
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["polly-amd64-linux"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=[
                                    "clang-aarch64-linux-build-cache",
                                    "clang-armv7-linux-build-cache"
                                ],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["clang-x86_64-debian-fast"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=False,
            extraRecipients=["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=["clang-atom-d525-fedora-rel", "clang-x64-ninja-win7"],
            addLogs=False,
            num_lines=15),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=False,
            extraRecipients=["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=["llvm-hexagon-elf", "clang-hexagon-elf"],
            addLogs=False,
            num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=[
                                    "clang-s390x-linux",
                                    "clang-s390x-linux-multistage",
                                    "clang-s390x-linux-lnt"
                                ],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=[
                                    "*****@*****.**",
                                    "*****@*****.**"
                                ],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["clang-x86_64-linux-abi-test"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["llvm-avr-linux"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=False,
            extraRecipients=["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=[
                "clang-lld-x86_64-2stage", "lld-x86_64-win7",
                "lld-x86_64-freebsd", "lld-x86_64-darwin13",
                "clang-x86_64-linux-abi-test",
                "llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast",
                "clang-with-lto-ubuntu", "clang-with-thin-lto-ubuntu",
                "llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast",
                "llvm-clang-x86_64-expensive-checks-win"
            ],
            addLogs=False),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=False,
            extraRecipients=[
                "*****@*****.**", "*****@*****.**"
            ],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=[
                "polly-arm-linux",
                "aosp-O3-polly-before-vectorizer-unprofitable"
            ],
            addLogs=False,
            num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=True,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="problem",
                                builders=["reverse-iteration"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["clang-cuda-build"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=False,
            extraRecipients=["*****@*****.**", "*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=["netbsd-amd64"],
            addLogs=False,
            num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["llvm-riscv-linux"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["lldb-x64-windows-ninja"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["fuchsia-x86_64-linux"],
                                addLogs=False),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=True,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["lldb-x86_64-fedora"],
                                addLogs=False),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=True,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["lldb-x86_64-debian"],
                                addLogs=False),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=True,
            extraRecipients=["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=["lldb-arm-ubuntu", "lldb-aarch64-ubuntu"],
            addLogs=False),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=True,
            extraRecipients=["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=["llvm-clang-x86_64-win-fast", "lld-x86_64-ubuntu-fast"],
            addLogs=False),
    ]
Beispiel #5
0
def get_status_targets(standard_builders, standard_categories=None):

    from buildbot.status import html
    from buildbot.status.web import auth, authz
    authz_cfg = authz.Authz(
        # change any of these to True to enable; see the manual for more
        # options
        gracefulShutdown=False,
        forceBuild=True,  # use this to test your slave once it is set up
        forceAllBuilds=False,
        pingBuilder=True,
        stopBuild=True,
        stopAllBuilds=False,
        cancelPendingBuild=True,
    )

    default_email = config.options.get('Master Options', 'default_email')

    return [
        buildbot.status.html.WebStatus(http_port=8011, authz=authz_cfg),

        # All the standard builders send e-mail and IRC notifications.
        buildbot.status.mail.MailNotifier(
            fromaddr="*****@*****.**",
            extraRecipients=[default_email],
            lookup=ConfigEmailLookup(
                os.path.join(os.path.dirname(__file__), "llvmauthors.cfg"),
                default_email),
            mode="problem",
            builders=standard_builders),
        buildbot.status.words.IRC(
            host="irc.oftc.net",
            nick="llvmbb",
            channels=["#llvm"],
            allowForce=True,
            categories=standard_categories,
            notify_events=['successToFailure', 'failureToSuccess']),

        # In addition to that the following notifiers are defined for special
        # cases.
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=[
                                    "polly-amd64-linux", "polly-intel32-linux",
                                    "polly-perf-O3", "polly-perf-O3-polly",
                                    "polly-perf-O3-polly-codegen-isl",
                                    "polly-perf-O3-polly-scev",
                                    "polly-perf-O3-polly-scev-codegen-isl",
                                    "polly-perf-O3-polly-detect"
                                ],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=[
                                    "*****@*****.**", "*****@*****.**",
                                    "*****@*****.**",
                                    "*****@*****.**",
                                    "*****@*****.**",
                                    "*****@*****.**"
                                ],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=[
                                    "clang-x86_64-darwin10-gdb",
                                    "clang-x86_64-ubuntu-gdb-75"
                                ],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["clang-x86_64-debian-fast"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=[
                                    "clang-atom-d525-fedora",
                                    "clang-atom-d525-fedora-rel",
                                    "clang-x64-ninja-win7"
                                ],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=False,
            extraRecipients=["*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=["llvm-hexagon-elf", "clang-hexagon-elf"],
            addLogs=False,
            num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["llvm-s390x-linux1"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=False,
            extraRecipients=["*****@*****.**", "*****@*****.**"],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=["llgo-x86_64-linux"],
            addLogs=False,
            num_lines=15),
        InformativeMailNotifier(
            fromaddr="*****@*****.**",
            sendToInterestedUsers=False,
            extraRecipients=[
                "*****@*****.**",
                "*****@*****.**"
            ],
            subject="Build %(builder)s Failure",
            mode="failing",
            builders=[
                "lldb-x86_64-ubuntu-14.04-cmake",
                "lldb-x86_64-ubuntu-14.04-buildserver",
                "lldb-windows7-android", "lldb-x86_64-darwin-13.4",
                "lldb-x86_64-ubuntu-14.04-android"
            ],
            addLogs=False,
            num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=[
                                    "*****@*****.**",
                                    "*****@*****.**"
                                ],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=["clang-x86_64-linux-abi-test"],
                                addLogs=False,
                                num_lines=15),
        InformativeMailNotifier(fromaddr="*****@*****.**",
                                sendToInterestedUsers=False,
                                extraRecipients=["*****@*****.**"],
                                subject="Build %(builder)s Failure",
                                mode="failing",
                                builders=[
                                    "llvm-mips-linux", "clang-cmake-mips",
                                    "clang-cmake-mipsel"
                                ],
                                addLogs=False,
                                num_lines=15),
    ]