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 1jbshE-0002LG-UB for pljava-dev@arkaria.postgresql.org; Thu, 21 May 2020 21:25: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 1jbshC-0003l1-NK for pljava-dev@arkaria.postgresql.org; Thu, 21 May 2020 21:25:42 +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 1jbshC-0003ku-Fx for pljava-dev@lists.postgresql.org; Thu, 21 May 2020 21:25:42 +0000 Received: from mail-ed1-x543.google.com ([2a00:1450:4864:20::543]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jbsh9-0003rx-Ir for pljava-dev@lists.postgresql.org; Thu, 21 May 2020 21:25:41 +0000 Received: by mail-ed1-x543.google.com with SMTP id f13so7137824edr.13 for ; Thu, 21 May 2020 14:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q8F4PlNAvZSjcqM/Rm1uM6HVUiWLTmvIEGLRKq+UUBQ=; b=CdhXSNRbx2NQAi6GwIIaZW6lGMycJw9VnznitCPHIedMvBunFel1lUdGomR9hrlRY4 g5Sbnx/SpXpZ7logDUUpegboHzUTHAnuW4/uW7rR5Sz2DkM1bGlIW9z+jFTidC9ecqJB N4O6Y4ahSvJXNFTqinmrD82JIQa9J7w7meA/Cp9SoCKXTiXPmmM/V6KCINdDRczCH6n9 KvUpDmZi+NYufsTmLfzx+HV75hi43X1X988anonOt1VKtmNqHgPkN03KClTNsLdcKD04 EeKv8n13KKd93MfugWr4ALlWzxP2125wqKRFMBXhVtYscWr+Rd74velGiCP1dmUEY456 PR8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q8F4PlNAvZSjcqM/Rm1uM6HVUiWLTmvIEGLRKq+UUBQ=; b=ZMNlwsHOrFUv6uSBGQ0iPKvxEvzoM3z0g6ydmEQxacNJLNPAyZBS05t6ttNN3MwXwE dR2poLZST9RcGAOs4YbmdEmZewacwRvT2kVpPd+sx1oKKd1fjkDN0jH0Lx8DrAkl1VUk KrlhueA+qBK7zsnJZj3RTU+7885ZiF1kKsEwlCVs8wCuSt21xiJJTaTpMSMPhWzKftI7 xWWU2iBW9oeBkBobM7I7N7UqCSGwcSUXmiPMqgBnSq/uVQsJgxd2c90pcaobWwKQnn/d IpL6f5t+6ddydnlEUi5dgTUV4DJoBHdDrnHYfTwZSa/Xdl0f1pxnzYaY2I+qY+kaNLXd z4LA== X-Gm-Message-State: AOAM5333uYItNczvVDDpl0/o8XTBISOI1dDfNnN8XXHXomOmg7toa3zh zeXVOrT/0jlYB/k+2rA7wnkCYBwE4hvu7hxHCNbqZZwNpZM= X-Google-Smtp-Source: ABdhPJxbn9fu5yjgN/Yknc4f7slStDpSuMUXVGvfpyPGBtOVrNmV4hfvuxN/x+eAdnuoQfzVVoH00DH01QXOsQLrnHc= X-Received: by 2002:a50:d785:: with SMTP id w5mr609836edi.212.1590096336778; Thu, 21 May 2020 14:25:36 -0700 (PDT) MIME-Version: 1.0 References: <5EC17E17.7070002@anastigmatix.net> <5EC66741.4030208@anastigmatix.net> In-Reply-To: <5EC66741.4030208@anastigmatix.net> From: Kartik Ohri Date: Fri, 22 May 2020 02:55:25 +0530 Message-ID: Subject: Re: Starting build-system work (Windows/Mac users please speak up) To: Chapman Flack Cc: pljava-dev@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000004ffa9c05a62f272c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0000000000004ffa9c05a62f272c Content-Type: text/plain; charset="UTF-8" On Thu, May 21, 2020 at 5:04 PM Chapman Flack wrote: > On 05/21/20 02:48, Kartik Ohri wrote: > > > Should I add checks for a PostgreSQL version from each major version or > > just for one from the latest major version and the oldest version > supported > > ? Like just test with 9.5 and 12.x . > > Each major version in the range, as there are often changes from every > version to the next that require conditional compilation in PL/Java, and > it is important to make sure that no recent PL/Java change broke any of > those. > > (It is exactly here that CI promises to make the release process for > PL/Java much less tedious and treacherous.) > > A reasonable timeline might be to get both endpoints covered first, > and then fill in the middle. > > > Same question with Java versions. Is > > testing with Java 9 and Java 14 (the latest java release) is enough ? Or > > each of java versions in between Java 9 and 14 should be tested as well. > > Again, maybe endpoints first, and then middles. Without testing of > middles, the odd javac bug that appeared in 10 and 11 and was fixed > in 12 would have been a surprise. [1] > > Regards, > -Chap > > > [1] https://github.com/tada/pljava/commit/c763cee Please see https://travis-ci.org/github/amCap1712/pljava/builds/689767027 . I have written a script to add builds for combinations of major versions of Java and PostgreSQL on macOS. But I think this is an overkill to for all platforms (even for a single platform). Let me know your thoughts on this and if any other additions are required to complete the macOS setup. After this, I will add builds for Linux and at last for Windows. Some of the build combinations fail intermittently but work just fine when ran again. It seems to be an error on Travis CI side. I am investigating the issue and am working to fix it. --0000000000004ffa9c05a62f272c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, May 21, 2020 at 5:04 PM Chapman F= lack <chap@anastigmatix.net= > wrote:
On 05/21/20 02:48, Kartik Ohri wrote:

> Should I add checks for a PostgreSQL version from each major version o= r
> just for one from the latest major version and the oldest version supp= orted
> ? Like just test with 9.5 and 12.x .

Each major version in the range, as there are often changes from every
version to the next that require conditional compilation in PL/Java, and it is important to make sure that no recent PL/Java change broke any of
those.

(It is exactly here that CI promises to make the release process for
PL/Java much less tedious and treacherous.)

A reasonable timeline might be to get both endpoints covered first,
and then fill in the middle.

> Same question with Java versions. Is
> testing with Java 9 and Java 14 (the latest java release) is enough ? = Or
> each of java versions in between Java 9 and 14 should be tested as wel= l.

Again, maybe endpoints first, and then middles. Without testing of
middles, the odd javac bug that appeared in 10 and 11 and was fixed
in 12 would have been a surprise. [1]

Regards,
-Chap


[1] https://github.com/tada/pljava/commit/c763cee

Please see=C2=A0https://travis-ci.org/github= /amCap1712/pljava/builds/689767027=C2=A0. I have written a script to ad= d builds for combinations of major versions of Java and PostgreSQL on macOS= . But I think this is an overkill to for all platforms (even for a single p= latform). Let me know your thoughts on this and if any other additions are = required to complete the macOS setup. After this, I will add builds for Lin= ux and at last for Windows.

Some of the build comb= inations fail intermittently but work just fine when ran again. It seems to= be an error on Travis CI side. I am investigating the issue and am working= to fix it.=C2=A0
--0000000000004ffa9c05a62f272c--