From patchwork Wed Sep 4 20:30:05 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: 173102 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp495409ilq; Wed, 4 Sep 2019 15:08:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBx/A759Zb2M6f2AiYXF0s5mE+yvUo3LTGM0TyUxNHOW2nGTh+wqoeZWs+IvD8siQFtqnI X-Received: by 2002:a05:6402:6cf:: with SMTP id n15mr488023edy.213.1567634935716; Wed, 04 Sep 2019 15:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567634935; cv=none; d=google.com; s=arc-20160816; b=kElkpNwAjcDNglwXbDDPJGweDYKqaXlQIiihVg5PTCc/zkQIgaVl6GQ/IOUvreWzyT 7CWQY7w9lkmzg8aRf07R6AotFLpPxrHWXdwntWKD/XWamuiuS99ob8m9d2fUMUYBLDHU zWErbewX7BkzkAWg/uSYrhP9qRAVuDK72e+ZRFsMN0kmqjQCH6wl8oP1cQxMhH+DnsQB HJGwneBZYGu5FpzpuL5+XtnV1UmgSef+ZddAgvHJHxD37cs6u4w3wzIqXP37PWyR8GVz +ZgWzSux1YLO7OhHIBZANYvW0O2mHW8T1Vfh3HhPBkaTlGirQztchsSWZgEzwK/kMX5u AYVA== 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=L4odYbRNIesstedT/hIMRAackRtRJmlkYcVFyEsUJv8=; b=c7122mfGWCssOXVopHs9WQ2c6Hvm2vMrTf+vlhsdrZbCJSTII/7PZYswMDwjJIIjvf z2qOksNGqTes03R+NhsUSpqOaAmXJV8UCTq6+hB9B18cs9kic5GYpFXy48jvWctR0VEq Kg2EtYl9wVpx+dmZPVcPS1zj/LwBWGBZqf/YG/uG3Ch4kfXXxeBqzn/wMU6rW9tWIyw6 /klbZGfB5EBJsbKsS2AHNCcu9vxsc2M/HIhkYYyS8PH+9Hh5zIyEGaGslIsjnhvllY7H QAl2stOMehQ4EUR2y1WaQWG6so5UoSZzvfXA1l34o8wLeNqpZNY1MjGRvCBYuovhWltQ e2cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=r+q7Am+7; 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 k39si64804eda.50.2019.09.04.15.08.55 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Sep 2019 15:08:55 -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=r+q7Am+7; 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]:40866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5dSQ-0000jZ-JO for patch@linaro.org; Wed, 04 Sep 2019 18:08:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57798) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5cWt-0007Ca-Mg for qemu-devel@nongnu.org; Wed, 04 Sep 2019 17:09:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5cWs-0004Sk-74 for qemu-devel@nongnu.org; Wed, 04 Sep 2019 17:09:27 -0400 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:53481) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5cWs-0004Rs-0R for qemu-devel@nongnu.org; Wed, 04 Sep 2019 17:09:26 -0400 Received: by mail-wm1-x344.google.com with SMTP id q19so290955wmc.3 for ; Wed, 04 Sep 2019 14:09:25 -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=L4odYbRNIesstedT/hIMRAackRtRJmlkYcVFyEsUJv8=; b=r+q7Am+7dI6hs3m4n5+Kf+i7VYTz79M76Y4aXg3geXoUjkqFox7QH0ABetCesfQoES jVFkYZfskXzKKulYFWJXiuBKgeZmxN7cBErv3foTH27BINXEZzef70zIaclPMAgZ/6bf ORGZFRXusLa1EylmWGWrAR2Jw/POX5QrdH16Z8ag5YXMK98+NlQHxjWjvlxYiy5W+zC6 hvEREiU2H9QZxXqe8eVgGVazrggnkuaTIn/b6EpRlrquiF5S5Omdi6GQxKTPYL3jSgi3 J7Qmt4oxSvsKiygvqEfmR1ODfI/tj08UL6XeTDh19pqPvxoVKvJWPcx9o33BtA3Jo/4i jihw== 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=L4odYbRNIesstedT/hIMRAackRtRJmlkYcVFyEsUJv8=; b=pLdD8gnuejxzk4z7jW8Ad+KqlBbf/AqLd0+Fpw/HoPcfNJH3lh2JoUGfTW0L2yIawe dG+c8PzmKPPzx+4NNtpUS/j5UZ46m1aghqY3cmg5QApzh385zIR5aPP3zat/PI1J0hjT 1BC9Ap6v7NGBIy/pyIUzZRugChTU++1wsNKa8/uTL5GYhzhH8iEp+Qznd61riKybzT1D NIx/G7LUx8ju4csthiNn08CcT7ZWMVHRFeh3t3kBqNxOYjgG9yly3IdpmihaThYrwyCM RC++Xm+pB+ZpFUhpqAfZPlXHY8a1GBl27+WXEe9dyks5Oh/ArSU3LjARPXYAOua9bDxr 3qoQ== X-Gm-Message-State: APjAAAUgcW1I94nOS9Vn+oyHfGu1Bu0EPlsb5oMCEmY3uYWKVJDxV/7/ ekmN8phFzWLVgBoc9NDNYoOADw== X-Received: by 2002:a7b:ce8f:: with SMTP id q15mr198570wmj.106.1567631364660; Wed, 04 Sep 2019 14:09:24 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id l10sm38341wrh.20.2019.09.04.14.09.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 14:09:23 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 8104C1FFBB; Wed, 4 Sep 2019 21:30:16 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Wed, 4 Sep 2019 21:30:05 +0100 Message-Id: <20190904203013.9028-35-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190904203013.9028-1-alex.bennee@linaro.org> References: <20190904203013.9028-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::344 Subject: [Qemu-devel] [PATCH v1 34/42] .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@euphon.net, berrange@redhat.com, stefanb@linux.vnet.ibm.com, =?utf-8?q?Alex_Benn=C3=A9e?= , richard.henderson@linaro.org, f4bug@amsat.org, =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= , cota@braap.org, stefanha@redhat.com, marcandre.lureau@redhat.com, pbonzini@redhat.com, aurelien@aurel32.net 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é --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.20.1 diff --git a/.travis.yml b/.travis.yml index 8d2e89da533..5a878ae6ae9 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: