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 1nLFgv-00007h-5Y for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Feb 2022 02:41:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nLFgt-00029q-OJ for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Feb 2022 02:41:43 +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 1nLFgt-00029g-7M for pgsql-hackers@lists.postgresql.org; Sat, 19 Feb 2022 02:41:43 +0000 Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nLFgq-0002HX-G4 for pgsql-hackers@postgresql.org; Sat, 19 Feb 2022 02:41:41 +0000 Received: by mail-qv1-xf32.google.com with SMTP id f19so18421802qvb.6 for ; Fri, 18 Feb 2022 18:41:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=UZuoVz4eTPXS/03hT9zxqTR7MxW3b9QKDwa00OrNVX0=; b=Ozpsf/VBZV+mQykfIOB/SsZwYjSxapD11OUYa1WX+UG7PDUtzvaMHD/OdI1FtvpG99 kK/7w4gR84jOUR7kpeIGUBoI6hFm6hRhGTejKNoh1S3doFCyafm7xKVD711Ww+FJ3LjE 1Pa4Fy9PqN3iG22xZGFit1EtOiAOWLeVOadc4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=UZuoVz4eTPXS/03hT9zxqTR7MxW3b9QKDwa00OrNVX0=; b=xTFO6irmFRbeufkBH337ReQ/Q4XqoRIdu9W/c3KJZfFbat2v0R1jX8PkYGqGLOQoGH aQpCrTVGHNLiq9XSFvEwR4EguLensFLZa7Fn2PdGZ/nTSA3hiVadF03DyjQzjBTa8smj hnHuLDjf+DyEjDoBPBuPpmMgl+7ezB9tF1FLbO+stCiCKqrO+k3hHUj5Qp33N9Tmwch/ sR61B8zA8i8cCi7VM7UCpEW6sdDFob3hGo9zEwrVLnWZwv9jlQm1tT3mzD8EwpnNYhQP xTIO2fao6sl9Y++9sd7S3e/QJCLJUqEUdwZoDxvsztdZXRHgL5FEama6fidf0SxKUqr+ a9Xw== X-Gm-Message-State: AOAM531RR+8NeeoHXtX7MhzH+aEzlkef0JQWceeFkx6AnzjkFEMyiCuG SLrO76UGroyXB7DLl9iCCjp6UJ7hwOqvnA== X-Google-Smtp-Source: ABdhPJwWHFEZodBj3+FIhjf80y5Gq0DH3ifJX08IuxV5TMQtRC9h0V0qq3IWo1BMqK965OBapKiM4A== X-Received: by 2002:a05:6214:2aa8:b0:42c:1258:9b6f with SMTP id js8-20020a0562142aa800b0042c12589b6fmr8168511qvb.13.1645238499609; Fri, 18 Feb 2022 18:41:39 -0800 (PST) Received: from rfd.leadboat.com ([2600:1702:a20:5750::2e]) by smtp.gmail.com with ESMTPSA id l25sm22700193qki.85.2022.02.18.18.41.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Feb 2022 18:41:39 -0800 (PST) Date: Fri, 18 Feb 2022 18:41:36 -0800 From: Noah Misch To: Tom Lane Cc: Andres Freund , pgsql-hackers@postgresql.org Subject: Re: Timeout control within tests Message-ID: <20220219024136.GA3670392@rfd.leadboat.com> References: <20220218052842.GA3627003@rfd.leadboat.com> <20220218054825.vhoiv2f7vgwdsnnb@alap3.anarazel.de> <20220218071911.GB3506226@rfd.leadboat.com> <3949563.1645198012@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3949563.1645198012@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Feb 18, 2022 at 10:26:52AM -0500, Tom Lane wrote: > Noah Misch writes: > > On Thu, Feb 17, 2022 at 09:48:25PM -0800, Andres Freund wrote: > >> Meson's test runner has the concept of a "timeout multiplier" for ways of > >> running tests. Meson's stuff is about entire tests (i.e. one tap test), so > >> doesn't apply here, but I wonder if we shouldn't do something similar? > > > Hmmm. It is good if the user can express an intent that continues to make > > sense if we change the default timeout. For the buildfarm use case, a > > multiplier is moderately better on that axis (PG_TEST_TIMEOUT_MULTIPLIER=100 > > beats PG_TEST_TIMEOUT_DEFAULT=18000). For the hacker use case, an absolute > > value is substantially better on that axis (PG_TEST_TIMEOUT_DEFAULT=3 beats > > PG_TEST_TIMEOUT_MULTIPLIER=.016666). > > FWIW, I'm fairly sure that PGISOLATIONTIMEOUT=300 was selected after > finding that smaller values didn't work reliably in the buildfarm. > Now maybe 741d7f1 fixed that, but I wouldn't count on it. So while I > approve of the idea to remove PGISOLATIONTIMEOUT in favor of using this > centralized setting, I think that we might need to have a multiplier > there, or else we'll end up with PG_TEST_TIMEOUT_DEFAULT set to 300 > across the board. Perhaps the latter is fine, but a multiplier seems a > bit more flexible. The PGISOLATIONTIMEOUT replacement was 2*timeout_default, so isolation suites would get 2*180s=360s. (I don't want to lower any default timeouts, but I don't mind raising them.) In a sense, PG_TEST_TIMEOUT_DEFAULT is a multiplier with as many sites as possible multiplying it by 1. The patch has multiples at two code sites. > On the other hand, I also support your point that an absolute setting > is easier to think about / adjust for special uses. So maybe we should > just KISS and use a single absolute setting until we find a hard reason > why that doesn't work well.