From nobody Thu May 2 09:14:53 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499940551450117.38037594983564; Thu, 13 Jul 2017 03:09:11 -0700 (PDT) Received: from localhost ([::1]:58498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVb3S-0001Jt-VW for importer@patchew.org; Thu, 13 Jul 2017 06:09:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVaz0-0006El-BK for qemu-devel@nongnu.org; Thu, 13 Jul 2017 06:04:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVayw-0005ZA-1H for qemu-devel@nongnu.org; Thu, 13 Jul 2017 06:04:30 -0400 Received: from mail-qk0-f196.google.com ([209.85.220.196]:36256) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVayv-0005Yn-Sg for qemu-devel@nongnu.org; Thu, 13 Jul 2017 06:04:25 -0400 Received: by mail-qk0-f196.google.com with SMTP id v17so5133127qka.3 for ; Thu, 13 Jul 2017 03:04:25 -0700 (PDT) Received: from yoga.offpageads.com ([138.117.48.223]) by smtp.gmail.com with ESMTPSA id n21sm3776447qkl.51.2017.07.13.03.03.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jul 2017 03:03:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=k4S98yM74SJROkmXhmg0GFa0N4tK4coI3GYV6LO2NJA=; b=OyfMfzI5ZDFVaBbkoxVbtMGGMZpWn46/LED34hMWkneuXxbCJ1if4fk0u2weh+OxcV T+Z1vKIyanQVzrO2QYQ56wotAI8mzsBdKh61DTwkdQbI2NWpdJuPR/08U9OhSKXjWMmv iesHHCiYCCHtZB0LBoRM70lBxHK7YmLYPfc3Ce4qjEYTOzi9oIsShniOW3j0pOVzrD4j 8J0hrVbrt4XOsfMk5KsErY2/b3FeprTCPEZWvTq3rVmnhJZvIO1DKP2M/vwcCMTEZ+XW 2fdaD21H4BxjBpv0EbgHYwqXEr/F8/MfJXHhy3Qs8VEaXRfd8hWFakyxVn58GLuYKNND 8afQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=k4S98yM74SJROkmXhmg0GFa0N4tK4coI3GYV6LO2NJA=; b=TITUJNwBIkADbDtgqp3G8bf3Wm5TBczQT8IFcmWJ6hLAzPlZZu3dflpWpBcZycWOXI oXSZi+gn06py5iXVsXAvgsijMs3L0ZCIdBXFzfRfHi+BzF1ueD7QSkXyLV2D5xE2QET9 Wd4yZqRj856PxIlcK7aZgUeYkmeS1cOgyk7bENDEhwd5dXs7iwt6sZdEPrp/dd36ioP9 GUD4juzV0c5hK+MGXYVNbOn/n76fQeVOf/mCwTp9kWZfwljWiDrmvEK/3hpDqD2TBNc6 S7HA8TS2Pus42bhkqrm+g9YXQPznS09tajnI5wCi8/YaTCXtWMj8f/mCwf+Wt45M0TXN T4Xw== X-Gm-Message-State: AIVw110W1iTOyBL+XafjzxOsMrWd7GuV0wO4wHWzQFkegAMZQpD1OIg6 g5kyEtmYBAXYXQ== X-Received: by 10.55.26.14 with SMTP id a14mr3423330qka.4.1499940205210; Thu, 13 Jul 2017 03:03:25 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , Stefan Hajnoczi , Peter Maydell , Thomas Huth , Fam Zheng , qemu-devel@nongnu.org Date: Thu, 13 Jul 2017 07:03:10 -0300 Message-Id: <20170713100311.20037-2-f4bug@amsat.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170713100311.20037-1-f4bug@amsat.org> References: <20170713100311.20037-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.220.196 Subject: [Qemu-devel] [RFC PATCH RESEND 1/2] scripts: helper to keep console alive X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 useful to avoid Travis CI jobs getting killed after 10min of inactivity. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- MAINTAINERS | 1 + scripts/aliveness.sh | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100755 scripts/aliveness.sh diff --git a/MAINTAINERS b/MAINTAINERS index 9529c9484c..c39f418a13 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1866,6 +1866,7 @@ S: Maintained F: .travis.yml F: .shippable.yml F: tests/docker/ +F: scripts/aliveness.sh W: https://travis-ci.org/qemu/qemu W: https://app.shippable.com/github/qemu/qemu W: http://patchew.org/QEMU/ diff --git a/scripts/aliveness.sh b/scripts/aliveness.sh new file mode 100755 index 0000000000..1c2b6136b9 --- /dev/null +++ b/scripts/aliveness.sh @@ -0,0 +1,32 @@ +#! /usr/bin/env sh +# +# Send an "Alive!" message regularly to stderr +# +# Copyright (C) 2017 Philippe Mathieu-Daud=C3=A9 +# +# Author: Philippe Mathieu-Daud=C3=A9 +# +# This work is licensed under the terms of the GNU LGPL, version 2+. +# See the COPYING file in the top-level directory. + +TIMEOUT_S=3D$1 +shift 1 +{ + set -e + while true + do + sleep ${TIMEOUT_S} + echo "Alive!" >&2 + done +} & +WATCHDOG_PID=3D$! + +cleanup() { + echo "killing watchdog ${WATCHDOG_PID}" >&2 + kill -TERM ${WATCHDOG_PID} + exit $((1 - $#)) +} +trap cleanup INT + +$* +cleanup 0 --=20 2.13.2 From nobody Thu May 2 09:14:53 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1499940507002644.908020672134; Thu, 13 Jul 2017 03:08:27 -0700 (PDT) Received: from localhost ([::1]:58497 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVb2m-0000Yw-Py for importer@patchew.org; Thu, 13 Jul 2017 06:08:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVay2-00051P-3J for qemu-devel@nongnu.org; Thu, 13 Jul 2017 06:03:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVay0-0004Wq-U3 for qemu-devel@nongnu.org; Thu, 13 Jul 2017 06:03:30 -0400 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]:35939) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVay0-0004WU-P8 for qemu-devel@nongnu.org; Thu, 13 Jul 2017 06:03:28 -0400 Received: by mail-qt0-x244.google.com with SMTP id v31so5380767qtb.3 for ; Thu, 13 Jul 2017 03:03:28 -0700 (PDT) Received: from yoga.offpageads.com ([138.117.48.223]) by smtp.gmail.com with ESMTPSA id n21sm3776447qkl.51.2017.07.13.03.03.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jul 2017 03:03:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=w3eBgdzeGWQ/5GeB4HwCb9+Bc8Q3JLmswiZ3LSCmAII=; b=swxmw7BgI1mmpYRSWhlUm1JlYjw7E66XUkmLiM0gUscwRbLpRrwmclreiyMmcQgl58 qr6nPqQcOBOFMu/fKSCpARWJYFHJF5GtlgWbnag7q9DMQpOGLFMfJ1U9GR6Y50W/Ym2+ pRvxdULOsSIPk8xNoOUL3O9+CL068BQkcyJ0q9u6JKBT0kKWR2QxcdMuJyMOxc+Br7tG ZTvH+BQ9QBXcuxkSGqHCK3BYmgchdkZu5tWlN1DJI4WeVz/O9+mfxjvpGBqetD4UYdoJ VW0E+GiO5OnIcF/oTUViqGrhNxJkMvVt05y6C2kC0tABj3BIwpSAxqLNoHB4IuCGMW+E qFlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=w3eBgdzeGWQ/5GeB4HwCb9+Bc8Q3JLmswiZ3LSCmAII=; b=Cv9EJFDmCzjZqbUOeCUoXkHxBPabtC0ugYUQ6mjfVqqjqzY3AzqxI6ZfmDyWWWLyah uEshzvS/uNqBtyBWKllIffeD52dwO+DX8bvMB5UcqVCjW2aeEzJ0U7MhcDu97DuPk2ag 5a2FBsxV56cJFyzmLduIYPUdqtnP2tEF061Y5vwnmDLNOmBkcuJUcDE0qAnzdTeAa/3o fxHGA2cNdMcUxFEy/lzE3UpwoYPjgduz2KoM3vgiFKeIiPbZjfx2WwR8CP6Fie19P6dW mnkJyNvOGCVzz61lcp7rKrWoxfMMd30jR+tBrlRns9HC0w56Q/VvRvODbW4yNkWZQM+9 60dg== X-Gm-Message-State: AIVw1129QN1PqPHmbsqgYjAX1TTGkjLjUxFe14MOSzk1/a5f5bBsaCVA E6IDN1OZLtV0Dw== X-Received: by 10.200.8.240 with SMTP id y45mr3744406qth.235.1499940208188; Thu, 13 Jul 2017 03:03:28 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , Stefan Hajnoczi , Peter Maydell , Thomas Huth , Fam Zheng , qemu-devel@nongnu.org Date: Thu, 13 Jul 2017 07:03:11 -0300 Message-Id: <20170713100311.20037-3-f4bug@amsat.org> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170713100311.20037-1-f4bug@amsat.org> References: <20170713100311.20037-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::244 Subject: [Qemu-devel] [RFC PATCH RESEND 2/2] travis: use console aliveness script X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Travis CI has specific time limits for each job, and will stop the build and add an error message to the build log in the following situation[s]: - A job produces no log output for 10 minutes See: https://docs.travis-ci.com/user/customizing-the-build#build-timeouts Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 27a2d9cfb3..032d111bb4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,7 +45,7 @@ notifications: on_failure: always env: global: - - TEST_CMD=3D"make check" + - TEST_CMD=3D"scripts/aliveness.sh 69 make check" matrix: - CONFIG=3D"" - CONFIG=3D"--enable-debug --enable-debug-tcg --enable-trace-backends= =3Dlog" --=20 2.13.2