Example #1
0
    def onPushEnded(self, salon_name, id, failed_hosts):
        salon = yield self.salons.by_name(salon_name)
        if not salon:
            return

        deploy = salon.deploys.get(id)
        who, duration = salon.remove_deploy(id)

        if not who:
            return

        self.irc.bot.send_message(
            salon.channel,
            """deploy "%s" by @%s is complete. """
            "Took %s." % (id, who, pretty_and_accurate_time_span(duration))
        )
        salon.update_topic(self.irc.bot)

        if failed_hosts:
            self.irc.bot.send_message(
                "#monitoring",
                "Deploy `%s` in %s encountered errors on the "
                    "following hosts: %s. See %s for more information." % (
                        id, salon.channel, ", ".join(sorted(failed_hosts)),
                        deploy.log_path)
            )
Example #2
0
    def onPushEnded(self, id):
        who, duration = self._remove_deploy(id)

        if not who:
            return

        self.irc.bot.send_message(
            self.config.channel, """%s's deploy "%s" complete. """
            "Took %s." % (who, id, pretty_and_accurate_time_span(duration)))
        self._update_topic()
Example #3
0
    def onPushEnded(self, id):
        who, duration = self._remove_deploy(id)

        if not who:
            return

        self.irc.bot.send_message(
            self.config.channel,
            """%s's deploy "%s" complete. """
            "Took %s." % (who, id, pretty_and_accurate_time_span(duration))
        )
        self._update_topic()
Example #4
0
    def onPushEnded(self, id, failed_hosts):
        deploy = self.deploys.get(id)
        who, duration = self._remove_deploy(id)

        if not self.deploys:
            self._start_conch_expiration()

        if not who:
            return

        self.irc.bot.send_message(
            self.config.channel, """deploy "%s" by @%s is complete. """
            "Took %s." % (id, who, pretty_and_accurate_time_span(duration)))
        self._update_topic()

        if failed_hosts:
            self.irc.bot.send_message(
                "#monitoring", "Deploy `%s` in %s encountered errors on the "
                "following hosts: %s. See %s for more information." %
                (id, self.config.channel, ", ".join(
                    sorted(failed_hosts)), deploy.log_path))
Example #5
0
    def onPushEnded(self, salon_name, id, failed_hosts):
        salon = yield self.salons.by_name(salon_name)
        if not salon:
            return

        deploy = salon.deploys.get(id)
        who, duration = salon.remove_deploy(id)

        if not who:
            return

        self.irc.bot.send_message(
            salon.channel, """deploy "%s" by @%s is complete. """
            "Took %s." % (id, who, pretty_and_accurate_time_span(duration)))
        salon.update_topic(self.irc.bot)

        if failed_hosts:
            self.irc.bot.send_message(
                "#monitoring", "Deploy `%s` in %s encountered errors on the "
                "following hosts: %s. See %s for more information." %
                (id, salon.channel, ", ".join(
                    sorted(failed_hosts)), deploy.log_path))