From patchwork Tue Sep 10 08:43:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 173474 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp5525341ilq; Tue, 10 Sep 2019 02:12:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqypL5rJ67DmOfsQUcGxvW+4BmHxgZ8iUDVH4ebX9SsX5cLKAy2W7ZZIVCoHJQl/kcyzt4LM X-Received: by 2002:ad4:54e3:: with SMTP id k3mr17894706qvx.9.1568106764828; Tue, 10 Sep 2019 02:12:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568106764; cv=none; d=google.com; s=arc-20160816; b=iWgr1oattg2dlCD224boF7twRNjYrhr98C0KCc2Ap01lBL9yw+HJOjdw0jkyPijhfn GSIiv+1xzSvwognSyMOg8eHbW8VRtjH0O/zR3NokbZ9EMGjtza1DquArrRANjqt27rqc uw1fpcDBxb2giDvtZ7k4ARbYKFSNXLVS36M6p50L93Nkor6N5oGxB3kdrZdjzb35IxnT LwFgNBUqwd3we5zL29u+2SjMx9ZkZH2txFCUZYoWiFF2bz9Nn4VlNF/CjrA9T2xHGiwu hNZBEhHmCgvvcah/E5BOj1h9IK9E+FWqAKrVgCT4uASsNBey2uKGUsLOTtb+MP0KRoNE xrzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=flfnwEa/qmAbmD2M5WH/Dd1NeF2hOFImcYs5xWcss38=; b=Me1rBVmRlZzjMmYYiZbsy5hd9Xtddey1tSm+4SzpTJSMk30+S+b/gH5h5U9UAIEySS k7BekTuYHWKBYnHJV8BDj1nAWiJRIkYmaBXMUSzBRtdncv+8HY/iPw2CVp9544IB+ZMZ N62SGxYXWgAyhXViELs+H1LV/5b5wPuES6zowyDaiGWSjWl8hOuF83Mu/bjXai6a+5B8 vhS0QZwFznW+T6uV5unrtRc6UALGthO+Ip526Rn+tS2OEhKAe2iqfcYGkXfFKJwY/zMI Eia0Njo61AfGS8TKUExHs7AzPPJawmFYNXFFj3Kd6aWszX6IpVudt6b+XxD/PjtFu4gZ b+Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=O18Ye8oP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y12si12755334qvc.71.2019.09.10.02.12.44 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Sep 2019 02:12:44 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=O18Ye8oP; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7cCa-0000mH-2t for patch@linaro.org; Tue, 10 Sep 2019 05:12:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37247) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7bqt-0000ki-Me for qemu-devel@nongnu.org; Tue, 10 Sep 2019 04:50:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7bqs-0000b2-9k for qemu-devel@nongnu.org; Tue, 10 Sep 2019 04:50:19 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:43306) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i7bqs-0000aY-2y for qemu-devel@nongnu.org; Tue, 10 Sep 2019 04:50:18 -0400 Received: by mail-wr1-x42d.google.com with SMTP id q17so13697672wrx.10 for ; Tue, 10 Sep 2019 01:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=flfnwEa/qmAbmD2M5WH/Dd1NeF2hOFImcYs5xWcss38=; b=O18Ye8oPQ3DreL0ySAUdT8g3tEc9LiCJLtjDdEYewI7QyAhZOoxx4e2T1j7kXRvRAk mb1yxQLcs9RZ4LPUZUN3KKybyT121tAER5w1KXS2js30ZFRwlnBV3fnoj4IjQ6ZQ4VU2 xjLFTcDTIgqrCXNwFLShGVDML9wcTFyDIrm1yk8PHpXJSiN3LJrAUqf5lk++8QaCiLlI NrCFtUvPlYWdZBgfE16ZX16ExyfSXlRhEry62h429Y+UtYz/zkXy+ekJmfgTdMVyAHoA ovNg6E0RRDBN2130O31vtnes8m4m6HNM+iUaDOIhmpVy6IQUSGwOMq6JVLd1g/jE23Er 2LAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=flfnwEa/qmAbmD2M5WH/Dd1NeF2hOFImcYs5xWcss38=; b=ol7coOE1lNeZ+IA8GmFAxxq4H/5uDq5XLz0SzXA6kPSaRstq/egETZe9n7wu6M4A0T lOpd91EZQhXpq78YstO+DOBWjwC4r7ispLh2nrqXHtKyV49fN84yE2skRoDp5/9iI+Rg r90M3OxSOvMpUOEC/ioINe+n6L98QSHQasIO3ZWCLnkjbC+Xj7oq+lJEbyVOJDwWXvYt oOaR5PtbJb/R+7tf1wwceoyUeiQVhEVDtWktqROGSlz0jEIIYnHjc77Vo2giRCpSyhbl Ee+AtMGDIrTU2JgjKrz6oQtdWTmEKI8/0TMk7dTGSOOtqY4MBR4x9KY92WOxtboAov65 vXJQ== X-Gm-Message-State: APjAAAVTh6F663Ks3mSh3nsSz3jGqNHVv0JP3eT0F0AwDnZiZautPdWX oL62xkitVn5PSk207KYlZDX9xQ== X-Received: by 2002:adf:ffc6:: with SMTP id x6mr26190211wrs.346.1568105417056; Tue, 10 Sep 2019 01:50:17 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id x17sm2103530wmj.19.2019.09.10.01.50.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2019 01:50:14 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 188B51FF8C; Tue, 10 Sep 2019 09:43:53 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 10 Sep 2019 09:43:42 +0100 Message-Id: <20190910084349.28817-39-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190910084349.28817-1-alex.bennee@linaro.org> References: <20190910084349.28817-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42d Subject: [Qemu-devel] [PULL 38/45] .travis.yml: Improve ccache use X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé Per https://ccache.dev/manual/latest.html: By default, ccache tries to give as few false cache hits as possible. However, in certain situations it’s possible that you know things that ccache can’t take for granted. [The CCACHE_SLOPINESS environment variable] makes it possible to tell ccache to relax some checks in order to increase the hit rate. We can relax the ctime/mtime header checks: - include_file_ctime By default, ccache also will not cache a file if it includes a header whose ctime is too new. This option disables that check. - include_file_mtime By default, ccache will not cache a file if it includes a header whose mtime is too new. This option disables that check. We also add a call to clear the cache statistics before running the build, and display them when the build finishes. See https://docs.travis-ci.com/user/caching/#ccache-cache Suggested-by: Paolo Bonzini Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée -- 2.20.1 diff --git a/.travis.yml b/.travis.yml index 097a844d68b..7d6c63a2803 100644 --- a/.travis.yml +++ b/.travis.yml @@ -70,6 +70,9 @@ env: - TEST_CMD="make check -j3 V=1" # This is broadly a list of "mainline" softmmu targets which have support across the major distros - MAIN_SOFTMMU_TARGETS="aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu" + - CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime" + - CCACHE_MAXSIZE=1G + git: # we want to do this ourselves @@ -77,10 +80,13 @@ git: before_script: + - command -v ccache && ccache --zero-stats - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; } script: - make -j3 && travis_retry ${TEST_CMD} +after_script: + - command -v ccache && ccache --show-stats matrix: