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.89) (envelope-from ) id 1hTXTd-0003aZ-Ad for pgsql-hackers@arkaria.postgresql.org; Wed, 22 May 2019 20:04:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hTXTc-000175-20 for pgsql-hackers@arkaria.postgresql.org; Wed, 22 May 2019 20:04:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTXTb-00012h-E4 for pgsql-hackers@lists.postgresql.org; Wed, 22 May 2019 20:04:39 +0000 Received: from mail-yw1-xc2e.google.com ([2607:f8b0:4864:20::c2e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTXTY-00076M-Es for pgsql-hackers@postgresql.org; Wed, 22 May 2019 20:04:38 +0000 Received: by mail-yw1-xc2e.google.com with SMTP id v81so1350819ywe.0 for ; Wed, 22 May 2019 13:04:36 -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:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=/+gCwJXlo8vX59t72Zvj/sxvlMmD1l6c20MNM2HaFeQ=; b=dD8dWTMtYuD18mqjeAPTjWygvnYA6rwqPOALPOy8gVaXCTr6TfHxjpwrN8U6elKsQi Z47mDiSfxN434EltSiMlqTbw+HHgbH0T8qCANhoql3URsuLXC57FxTcnbMMkhoD99+vT Pubf0kEadveOJJQuMW+vyCFk2KY1ZA19ApUxn62sfERDBj4F0Wc+OjoQt3gj6ONRCXg2 pxQdYo9s79UN65lqpgd2rTTN1BObcuPUZzafu2RbtmWfWNSXW/Aoqynca+c/DYlohrUl 9NJIVbEyZcCGcPctBtUv9XMLbmQS32aWFYChLCBJGQTN2Qb2dfB3Lr8sntb20ym1DtdU kr7g== 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:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=/+gCwJXlo8vX59t72Zvj/sxvlMmD1l6c20MNM2HaFeQ=; b=TF/9VxtDOkche6ZCNns//GbDv4ZVvkMXH6QKoyLL2Bx3y1IQRMUNkoapZfwXqQEPD2 RtCp8GiKFAcUydXvjE1JmxEnwRdN9verOF8Z4p4XheHmVReOoZx+HhgiT0HVUdhUaMcs DK/lLN0gUR+qJzHWlSM5rzh8ew3I0jD82grXI0Ck2tkRyIHOKYXbToC9YslODGoQUACz ZLJynXVJ3tlHRqBXsbEO0LvTfDdyyWuNTQmemJO4HVAGS4NtGGZ+stOZ8q/oyfDi1c6h pmoVLi4/z88GyLTSfhBftTCBYYzQLYrIrFEgR4iUTZoWn93sD48Ptv5TnF4jL93sFKoy +lpw== X-Gm-Message-State: APjAAAUbd3JUX5tctnqpagOk5AEClyO6ZwqyOLGqoN7u0BFFO+jlESJ4 onJ8g/1ElRmfRCeTay5ZmZw0urlEDzeHfZIqlfX/d0yOyEVqWkAy8fn4XsfGjtiivzK6+SBG4SC g8DOEUhJEH0UY1ECvdIfUPfzaxvPB3AuBX5o3NU6W0m3G7b7pAahBZHNe+is3RU4I9jSBDQ4otB 9scAu6Ii4r9D+damI= X-Google-Smtp-Source: APXvYqxXYJu6eQzZQ/fzFUgJBJblG/m93cDs+36NnhJAFuf3KCEPJWKAHOvyzj1KKzbpTJ1sGm99Iw== X-Received: by 2002:a81:2354:: with SMTP id j81mr32750815ywj.238.1558555475131; Wed, 22 May 2019 13:04:35 -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 76sm2053351ywr.35.2019.05.22.13.04.34 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 22 May 2019 13:04:34 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: Teach pg_upgrade test to honor NO_TEMP_INSTALL To: Andres Freund , Tom Lane Cc: Thomas Munro , PostgreSQL-development References: <20190521015840.cztw2qxthh7xuutk@alap3.anarazel.de> <20190521191918.z7kwnrlj45mk2k67@alap3.anarazel.de> <20190521194129.2kl2mldesrr65gmb@alap3.anarazel.de> <7333.1558537134@sss.pgh.pa.us> <20190522175150.c26f4jkqytahajdg@alap3.anarazel.de> <7200.1558548407@sss.pgh.pa.us> <20190522182027.fzytm3tciqefgz43@alap3.anarazel.de> <7965.1558549671@sss.pgh.pa.us> <20190522184254.vi5w4icue7vu4km5@alap3.anarazel.de> Openpgp: preference=signencrypt Autocrypt: addr=andrew.dunstan@2ndQuadrant.com; prefer-encrypt=mutual; keydata= xsBNBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk9K+vvoKvoeql5ABEB AAHNL0FuZHJldyBEdW5zdGFuIDxhbmRyZXcuZHVuc3RhbkAybmRRdWFkcmFudC5jb20+wsCY BBMBAgBCAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgA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w646UphdYzQNymf+kbiU5Kf4I6DhzV8w9sie1Bo1juNj3I c5/fFJsmxljbnaDbXPcnFsur1Oo9mIHFakgWgOBMuxoWfjONiLjjLh/9+ZIqSSLX Message-ID: <2b42bb13-7a7e-e295-2054-9a209749c3a7@2ndQuadrant.com> Date: Wed, 22 May 2019 16:04:34 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190522184254.vi5w4icue7vu4km5@alap3.anarazel.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-MW List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/22/19 2:42 PM, Andres Freund wrote: > Hi, > > On 2019-05-22 14:27:51 -0400, Tom Lane wrote: >> Andres Freund writes: >>> On 2019-05-22 14:06:47 -0400, Tom Lane wrote: >>>> Not sure about that last bit. pg_upgrade has the issue of possibly >>>> wanting to deal with 2 installations, unlike the rest of the tree, >>>> so I'm not sure that fixing its problem means there's something we >>>> need to change everywhere else. >>> I'm not quite following? We need to move it into global scope to fix the >>> issue at hand (namely that we currently need to make install first, just >>> to get psql). And at which scope could it be in master, other than >>> global? >> Maybe I misunderstood you --- I thought you were talking about something >> like defining EXTRA_REGRESS_OPTS in Makefile.global. If you mean >> running this unconditionally within test.sh, I've got no objection >> to that. > Oh, yes, that's what I meant. > > >>> I do think we will have to move it to the global scope in the back >>> branches too, because NO_TEMP_INSTALL does indeed fail without a global >>> install first (rather than using the temp install, as intended): >> Agreed, we should fix it in all branches, because it seems like it's >> probably testing the wrong thing, ie using the later branch's psql >> to run the earlier branch's regression tests. If I disable install, the buildfarm fails the upgrade check even when not using NO_TEMP_INSTALL. excerpts from the log: rm -rf '/home/pgl/npgl/pg_head/bfroot/HEAD/pgsql.build'/tmp_install /bin/mkdir -p '/home/pgl/npgl/pg_head/bfroot/HEAD/pgsql.build'/tmp_install/log make -C '../../..' DESTDIR='/home/pgl/npgl/pg_head/bfroot/HEAD/pgsql.build'/tmp_install install >'/home/pgl/npgl/pg_head/bfroot/HEAD/pgsql.build'/tmp_install/log/install.log 2>&1 make -j1  checkprep >>'/home/pgl/npgl/pg_head/bfroot/HEAD/pgsql.build'/tmp_install/log/install.log 2>&1 MAKE=make PATH="/home/pgl/npgl/pg_head/bfroot/HEAD/pgsql.build/tmp_install/home/pgl/npgl/pg_head/bfroot/HEAD/inst/bin:$PATH" LD_LIBRARY_PATH="/home/pgl/npgl/pg_head/bfroot/HEAD/pgsql.build/tmp_install/home/pgl/npgl/pg_head/bfroot/HEAD/inst/lib"  bindir=/home/pgl/npgl/pg_h ead/bfroot/HEAD/pgsql.build/tmp_install//home/pgl/npgl/pg_head/bfroot/HEAD/inst/bin EXTRA_REGRESS_OPTS="--port=5678" /bin/sh /home/pgl/npgl/pg_head/src/bin/pg_upgrade/test.sh rm -rf ./testtablespace mkdir ./testtablespace ../../../src/test/regress/pg_regress --inputdir=/home/pgl/npgl/pg_head/src/test/regress --bindir='/home/pgl/npgl/pg_head/bfroot/HEAD/inst/bin'   --port=5678 --port=54464 --dlpath=. --max-concurrent-tests=20 --port=5678 --port=54464 --schedule=/home/pgl/npgl/pg_head/src/test/regress/parallel_schedule  (using postmaster on /tmp/pg_upgrade_check-GCUkGu, port 54464) ============== dropping database "regression"         ============== sh: /home/pgl/npgl/pg_head/bfroot/HEAD/inst/bin/psql: No such file or directory command failed: "/home/pgl/npgl/pg_head/bfroot/HEAD/inst/bin/psql" -X -c "DROP DATABASE IF EXISTS \"regression\"" "postgres" make[1]: *** [GNUmakefile:141: installcheck-parallel] Error 2 make[1]: Leaving directory '/home/pgl/npgl/pg_head/bfroot/HEAD/pgsql.build/src/test/regress' make: *** [GNUmakefile:68: installcheck-parallel] Error 2 make: Leaving directory '/home/pgl/npgl/pg_head/bfroot/HEAD/pgsql.build' waiting for server to shut down.... done server stopped make: *** [Makefile:48: check] Error 1 It looks to me like the bindir needs to be passed to the make called by test.sh (maybe LD_LIBRARY_PATH too?) cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services