Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jHmc5-0003g6-P4 for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2020 10:53:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHmc3-0005L7-GG for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2020 10:53:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jHmc3-0005L0-4Q for pgsql-hackers@lists.postgresql.org; Fri, 27 Mar 2020 10:53:19 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jHmc0-0002Lk-Pe for pgsql-hackers@postgresql.org; Fri, 27 Mar 2020 10:53:18 +0000 Received: by mail-qt1-x844.google.com with SMTP id x16so8100227qts.11 for ; Fri, 27 Mar 2020 03:53:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=hcBbcHjgPXpo7Y42Sz6yQgSe0LACq4JCvU4KEe9rdA0=; b=bKjwn3LpSZ9FDkZOxaTb6OA5vQNDwr5R89r25CauWtiA4tZVAzkK7HvvZEt5aIPz3B x6XrTlCnvgf/qJhiEVkQKuC9xEN+jrGNZbc6h6v8o44Upe8BG6TbdOPoPNaQXtBv3oLU dxO0WpRS896UbMa0a4samHvy4am1AyALxFasv2CNnqGHsW3NUATDK/wJ/bFSnohiaTvN wX6o53EwVNEB8YClqrI9He7obMoD3g/kZkqfNoPg4UcsRmDqhCgZAbfJI59szwYkVTSL bu1ZuszIMwH890fB8wCHLmdfEuQLE/oLnmxc0VwZ1aS+5e8Wh2vP5iJxLzDpFC+TZVCH UO4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=hcBbcHjgPXpo7Y42Sz6yQgSe0LACq4JCvU4KEe9rdA0=; b=AKeSBfn5QhI6TzjKWQnXKldFf4V5k0InJac7pORHXX7KdVyVdcZl2zBIFmJz9+A0ax aRph73+fYhgdnmWRx/ndHaBXOC5FSeeEXU+qUviCoNH3VbzJkKlqet+qzsCa719+7prK wxxMt2aXu50FPbzeE7Kecy9n5P6T6ydyJ7Yop2dUkWkg1/NjjUsWPm37UNtSzH+ouWG7 c7kxXPgRN6h1V6W5hR3KPPyLiXHKE97cEk+ka+gbrtW9A1AitSLbF8QqsCDsBgZk2syy +o4bBqinHZigntqmAeLHtlwQVCojSipH9w4ZLYoq9Jo4iQWvdtZ7LnxzUgV76b9Q7Y3V mW9Q== X-Gm-Message-State: ANhLgQ0Zcp9O2TpsEdyhm24QZVn7i1Xu9/jygk+vwIqeSZmsEzTMZAFq P+E3S+oeV0dqjnqY/HaWCwvq5o7V0p6sqkVo1L7yW2zJDRxA7UaVNuhyHo7JoRGIRN6QLR28bHa +1FS9McEFyMA+niRJ4Jv3e9HA2N2s25XghnSXV3u3Fdffb8dP4Hyq/zfjm+wHfceyxHYGpCex9l hrzzcOZ9VtxpwJcno= X-Google-Smtp-Source: ADFU+vsz8gxqw80T7d8996qV+sIjvE/lOUDXsQMxN9kBsh86oWTlTtmo0cNlbLmJnwpSrtzqo1vjdg== X-Received: by 2002:ac8:fe9:: with SMTP id f38mr13202139qtk.130.1585306393485; Fri, 27 Mar 2020 03:53:13 -0700 (PDT) Received: from [192.168.10.146] (99-10-92-30.lightspeed.rlghnc.sbcglobal.net. [99.10.92.30]) by smtp.gmail.com with ESMTPSA id s36sm3676306qtb.28.2020.03.27.03.53.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Mar 2020 03:53:12 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: pgsql: Provide a TLS init hook To: Tom Lane Cc: PostgreSQL-development References: <15993.1585173676@sss.pgh.pa.us> <16587.1585174641@sss.pgh.pa.us> <19603.1585179895@sss.pgh.pa.us> <718.1585186096@sss.pgh.pa.us> <35de6665-55d7-d888-95e5-6c0094ab66b4@2ndQuadrant.com> <10659.1585230611@sss.pgh.pa.us> <6965f28d-8ff4-a371-dacf-ce21349d52c5@2ndQuadrant.com> <14349.1585236673@sss.pgh.pa.us> <6919ea18-f7e5-fd00-48b0-20eae2c9dc7d@2ndQuadrant.com> <20683.1585254666@sss.pgh.pa.us> Autocrypt: addr=andrew.dunstan@2ndQuadrant.com; prefer-encrypt=mutual; keydata= mQENBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk9K+vvoKvoeql5ABEB AAG0L0FuZHJldyBEdW5zdGFuIDxhbmRyZXcuZHVuc3RhbkAybmRRdWFkcmFudC5jb20+iQFY BBMBAgBCAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgBYhBOQ+WEYd/Hy/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DHJ6e5GCDHbH8USU+4wJBfPymZkd cA7NGm/mmWeJiWBFIDyjzYxrjku8ty9TZJVsaRXnS+OFQzXz9Eu2wTpKdHij46uY Message-ID: Date: Fri, 27 Mar 2020 06:53:11 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20683.1585254666@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk [discussion from -committers] On 3/26/20 4:31 PM, Tom Lane wrote: > Andrew Dunstan writes: >> On 3/26/20 11:31 AM, Tom Lane wrote: >>> Andrew Dunstan writes: >>>> I don't think this belongs in installcheck, we should add >>>> 'NO_INSTALLCHECK = 1' to the Makefile. >>> Why? The other src/test/modules/ modules with TAP tests do not >>> specify that, with the exception of commit_ts which has a solid >>> doesnt-work-in-the-default-configuration excuse. >> That seems wrong, installcheck should be testing against an installed >> instance, and the TAP tests don't. > So? We clearly document that for the TAP tests, "make installcheck" > means "use the installed executables, but run a new instance" [1]. I think we were probably a bit shortsighted about that. But what's done is done. I wonder if there is a simple way we could turn it off for the buildfarm? >> Moreover, from the buildfarm's POV >> it's completely wrong, as we call the installcheck targets multiple >> times, once for each configured locale. See one of the animals that >> tests multiple locales (e.g. crake or prion) > Yeah. That's productive if you think the tests might be > locale-sensitive. I doubt that any of the ones under src/test/modules/ > actually are at the moment, so maybe this is a waste of buildfarm effort. > But I don't think that it's the place of the Makefiles to dictate such > policy, and especially not for them to do so by breaking the ability to > use "make installcheck" at all. > > regards, tom lane > > [1] https://www.postgresql.org/docs/devel/regress-tap.html Right now the explicit TAP test code in the buildfarm knows how to collect all the relevant output. The installcheck code doesn't know about that for TAP tests. I get that developers want to be able to run tests in a small number of commands, but for the buildfarm I generally favor more disaggregated tests. That way if test X fails it's much easier to focus on the problem. (related note: I'm working on breaking up the log text blobs which will also help focussing on the right area). Maybe we need to take the discussion to -hackers. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services