Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pDD2k-0001Gw-83 for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jan 2023 23:19:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pDD2h-00081z-M5 for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jan 2023 23:19:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pDD2g-00081i-Uy for pgsql-hackers@lists.postgresql.org; Wed, 04 Jan 2023 23:19:31 +0000 Received: from mail-il1-x12a.google.com ([2607:f8b0:4864:20::12a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pDD2d-0005ZG-CG for pgsql-hackers@lists.postgresql.org; Wed, 04 Jan 2023 23:19:29 +0000 Received: by mail-il1-x12a.google.com with SMTP id m15so20314588ilq.2 for ; Wed, 04 Jan 2023 15:19:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=0k4sfsmgCRLehnfZFQzk/WTHnWM41S32G/cqwqbNMjw=; b=3tNz24yDIlOOJzoxkZOhYem31bUlOJbtJb8UppoOlQvtctnx4+P+NkCe8imEI3C08m +SYAtDdamYcXDefP03yTG7bwPZ10v9J9vch6oNx7u4342PDt6nK8HS6WugQEqBxpw735 1bg4t9Jey/2IslNAA+fTY9R+mzHSuzbr+4J0tqQRTGx/CMId90CkMrLESgCusV6zRtGI 9kVz3yOTH96UeNjs1gvLT8S0Y/ITtMuWi4br5oPCvHY2ZBnDTBm4FraX774jRVPQCEEM 9kZ5GfEaIc9OmYRCsXWhtLadCofUWTVYg6DooESk4wIlNs3JplC7XbH7QUpSaJzjoIiK pGXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0k4sfsmgCRLehnfZFQzk/WTHnWM41S32G/cqwqbNMjw=; b=NkoN97txLIZlty6o2V93vbCm6MPImfS29cvndXD9zItzFBPKG9/pTc9y32i2aN1bUh q9VwcQrWLpH9xrIy8kYZseA+V2AwzxfuX+sqE4VfihnK+uewXTWnT86/K/JCZ3Npv9gs FiFlsYV1KLGfjrsQg2N93RZXd1JH+ySOWBPM/NbDeeXzssiJD6qiRaL4FpxEaSDKxvX/ 8fQY7xPLKpZYgG2QbPx1/Ho7GEReZXMOR/IYlkGVJBWSIlEDcYr7AC1h5W2+PIsz2vrH zC0ay58N6rrLmF9hqJ+A2WpBWaw1gNFvIl4q9DSoHuEQlcpAdENE8hXObDsZSQEkl+Gv Za+g== X-Gm-Message-State: AFqh2kr4gOU/93GDYB1LPWua226OC3UK7bgOElI+ob+TA73gsk0cijDG Gg8L7BAywNNcY+thmmWg0ekERQ== X-Google-Smtp-Source: AMrXdXtk5Hdkluz9kl5hEBC8UXz7MnWShNfo2ZEVqfRidQoSdJnAZb1Sk/A+B41b1bhFOxepLDjsaQ== X-Received: by 2002:a92:c748:0:b0:30b:f2a7:92c2 with SMTP id y8-20020a92c748000000b0030bf2a792c2mr26512606ilp.7.1672874366462; Wed, 04 Jan 2023 15:19:26 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id g3-20020a926b03000000b0030bb7c67efcsm11016117ilc.16.2023.01.04.15.19.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Jan 2023 15:19:25 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 531A7800785; Wed, 4 Jan 2023 17:19:24 -0600 (CST) Date: Wed, 4 Jan 2023 17:19:24 -0600 From: Justin Pryzby To: Andres Freund Cc: Andrew Dunstan , Thomas Munro , pgsql-hackers@lists.postgresql.org, Noah Misch , Michael Paquier , Anastasia Lubennikova , Tom Lane , Robert Haas , Melanie Plageman , Peter Eisentraut , Daniel Gustafsson , samay sharma Subject: Re: CI and test improvements Message-ID: <20230104231924.GD3109@telsasoft.com> References: <20220528153741.GK19626@telsasoft.com> <20220828144447.GA21897@telsasoft.com> <20220828160752.l5l66k3eptokzhzj@awork3.anarazel.de> <20220828171029.GO2342@telsasoft.com> <20220828212802.r6eymfffrgr3lxxt@awork3.anarazel.de> <20220910200542.GX31833@telsasoft.com> <20221104235412.GE16921@telsasoft.com> <20221105015946.yrxijqb7h4rqhp6d@awork3.anarazel.de> <20221113235303.GA26337@telsasoft.com> <20221121224542.p2zapvyvb7objluw@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221121224542.p2zapvyvb7objluw@alap3.anarazel.de> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Nov 21, 2022 at 02:45:42PM -0800, Andres Freund wrote: > On 2022-11-13 17:53:04 -0600, Justin Pryzby wrote: > > > > From: Justin Pryzby > > > > Date: Tue, 26 Jul 2022 20:30:02 -0500 > > > > Subject: [PATCH 6/8] cirrus/ccache: add explicit cache keys.. > > > > > > > > Since otherwise, building with ci-os-only will probably fail to use the > > > > normal cache, since the cache key is computed using both the task name > > > > and its *index* in the list of caches (internal/executor/cache.go:184). > > > > > > Seems like this would potentially better addressed by reporting a bug to the > > > cirrus folks? > > > > You said that before, but I don't think so - since they wrote code to do > > that, it's odd to file a bug that says that the behavior is wrong. I am > > curious why, but it seems delibrate. > > > > https://www.postgresql.org/message-id/20220828171029.GO2342%40telsasoft.com > > I suspect this is just about dealing with unnamed tasks and could be > handled by just mixing in CI_NODE_INDEX if the task name isn't set. I suppose it was their way of dealing with this: |Cache artifacts are shared between tasks, so two caches with the same |name on e.g. Linux containers and macOS VMs will share the same set of |files. This may introduce binary incompatibility between caches. To |avoid that, add echo $CIRRUS_OS into fingerprint_script or use |$CIRRUS_OS in fingerprint_key, which will distinguish caches based on |OS. To make caches work automatically, without having to know to name them differently. -- Justin