Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4a9e-00072g-V2 for pgsql-hackers@arkaria.postgresql.org; Sat, 29 Apr 2017 21:43:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d4a9d-0006vx-Ah for pgsql-hackers@arkaria.postgresql.org; Sat, 29 Apr 2017 21:43:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d4a86-0004E7-8V for pgsql-hackers@postgresql.org; Sat, 29 Apr 2017 21:42:14 +0000 Received: from mail-pg0-x22f.google.com ([2607:f8b0:400e:c05::22f]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1d4a7z-0004eo-28 for pgsql-hackers@postgresql.org; Sat, 29 Apr 2017 21:42:12 +0000 Received: by mail-pg0-x22f.google.com with SMTP id y4so24876077pge.0 for ; Sat, 29 Apr 2017 14:42:06 -0700 (PDT) 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=DE4wCnrSmGyh6j2pb21T8tbbCs4diLkqgAdt8CjQWgc=; b=EVP89ROmTzKIBPUE/TgclipHpvesHd7/k/Nb8c5UzacryTdE0hnm9iCMFgCedjO6iT SjpkSxqglAmi7q71802+cOPKx+xziCkUfZbNtHnjJvp41fZuwT7CNHK0Bfcp2zdu5SO1 ULpoxMhb0ChVEOWu224UgtRWlqKdwajDDTd+A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DE4wCnrSmGyh6j2pb21T8tbbCs4diLkqgAdt8CjQWgc=; b=gs9b3tpQDa52T7ryjgYes8bgAYvU1l7FucoIvLfWdqo2RLpnUzA+4KOQd772LuGTaC JsZxa08GfIjfuKM4NT8ImzgT2R0PHTy+1sjcirbvkRwVeW7p57kbcmjTpoz4LjFFU8cj pQx8cOnYxCECIrHm3Qoqbju/WPs4CCs/rgkWbCbr5wg4VbIQLKPPpn3AwhRyXMF+Feg+ 2XRq2P72l2HQV2VmY5RQyzwSCCGgMW06T153msODNWuwS01JcNsEpi3DfefdhV2TiUK3 gv78/b9j4mF3K1VFuKmXm6h5euDjCXPWQKc3eAtHkeoQEflslAAgEwDUD3A83zbCxdbC EncA== X-Gm-Message-State: AN3rC/78QfuvuieIOrS47v7qKu79jVW4Iv6FSZnTAmaD2BqIk71O4f+D JASYW8E1Z/tQKQ== X-Received: by 10.99.164.2 with SMTP id c2mr19279879pgf.73.1493502125243; Sat, 29 Apr 2017 14:42:05 -0700 (PDT) Received: from rfd.leadboat.com (c-98-248-47-228.hsd1.ca.comcast.net. [98.248.47.228]) by smtp.gmail.com with ESMTPSA id d2sm21830317pgf.46.2017.04.29.14.42.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Apr 2017 14:42:04 -0700 (PDT) Date: Sat, 29 Apr 2017 14:42:01 -0700 From: Noah Misch To: Andres Freund Cc: Petr Jelinek , Peter Eisentraut , Erik Rijkers , David Steele , PostgreSQL-development , Robert Haas , Craig Ringer , pgsql-hackers-owner@postgresql.org Subject: Re: snapbuild woes Message-ID: <20170429214201.GB799290@rfd.leadboat.com> References: <20170408143059.nrzuwyvv5apnhhta@alap3.anarazel.de> <20170412063142.GC2870454@tornado.leadboat.com> <20170412172151.nauhiagitlpfxief@alap3.anarazel.de> <20170413045812.GA2917375@tornado.leadboat.com> <20170417020404.GB2988768@tornado.leadboat.com> <20170418041657.hvwss6hz73ghozp5@alap3.anarazel.de> <20170420000906.75t6uo7bof5pazrq@alap3.anarazel.de> <20170422053458.z7kmzopqdyi2tai4@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170422053458.z7kmzopqdyi2tai4@alap3.anarazel.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Fri, Apr 21, 2017 at 10:34:58PM -0700, Andres Freund wrote: > I've a bunch of tests, but I don't quite know whether we can expose all > of them via classical tests. There are several easy ones that I > definitely want to add (import "empty" snapshot; import snapshot with > running xacts; create snapshot, perform some ddl, import snapshot, > perform some ddl, check things work reasonably crazy), but there's > enough others that are just probabilistic. I was wondering about adding > a loop that simply runs for like 30s and then quits or such, but who > knows. If the probabilistic test catches the bug even 5% of the time in typical configurations, the buildfarm will rapidly identify any regression. I'd choose a 7s test that detects the bug 5% of the time over a 30s test that detects it 99% of the time. (When I wrote src/bin/pgbench/t/001_pgbench.pl for a probabilistic bug, I sized that test to finish in 1s and catch its bug half the time. In its case, only two buildfarm members were able to demonstrate the original bug, so 5% detection would have been too low.) -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers