pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pavel Raiskup <praiskup@redhat.com>
To: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Cc: Álvaro Hernández Tortosa <aht@8kdata.com>
Cc: Pavel Kajaba <pkajaba@redhat.com>
Cc: Stephen Nelson <stephen@eccostudio.com>
Cc: List <pgsql-jdbc@postgresql.org>
Cc: Dave Cramer <pg@fastcrypt.com>
Subject: Re: [pgjdbc] Implement JDBC specs via pre-processor step (#435)
Date: Fri, 22 Jan 2016 09:36:29 +0100
Message-ID: <1760147.kSfhyxqH6i@nb.usersys.redhat.com> (raw)
In-Reply-To: <CAB=Je-GEA9vuxUqZNd6anG=C_6HP4M_iN6Xt-Ha8CrPkXbfrLA@mail.gmail.com>
References: <pgjdbc/pgjdbc/pull/435@github.com>
	<56A1773C.8060702@8kdata.com>
	<CAB=Je-GEA9vuxUqZNd6anG=C_6HP4M_iN6Xt-Ha8CrPkXbfrLA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Hi all, and sorry for the delay.  And for long mail.

On Friday 22 of January 2016 10:42:49 Vladimir Sitnikov wrote:
> What we miss is:
> 1) Fedora-like CI environment. It makes little sense optimizing
> pgjdbc's dependencies if those dependencies are already present in
> Fedora-like build boxes.

Build boxes:
  RPM distributions usually build package in "mock" tool [1], which is
  basically chroot.  There is really minimal set of packages, but
  particular package build can request additional packages (if those are
  available in official/trusted package repositories).  Thus each package
  has slightly different builder configuration.

Dependencies:
  Just a note that IMO optimizing dependencies is always worth.
  Fedora/Ubuntu/Windows is just subset of platforms available in the wild.
  Anybody on platform "Foo" can take the source and build it itself and
  each dependency makes the work harder.
  IOW, as a user:
    1. I have JDBC installed and PostgreSQL, I need a glue -- pgjdbc
    2. Let's compile
    3. I can't compile, there is dependency (a), (b), (c)...

  That's why I think that things like osgi/waffle should be supported, but
  only as an optional dependency.  Neither jdbc nor PostgreSQL needs the
  dependency a b c, and as a connector between jdbc/postgresql any new
  hard dependency hurts :(.

> Is there a CI for Fedora builds?

Yes.  We can assist with this, having this in pgjdbc would be awesome.
Copr [2] build system should be able to take github repo branch and spin a
new build of RPM package.  This probably does not show "green OK icon" on
github page (yet), but anybody can receive fedmsg [3] about successful
build or check manually that the build is OK.

Testsuite possibilities are limited, because the build-environment is
not able to do administrator tasks or some hard integration testing, but
those should not be needed in case of jdbc driver.

> How do we validate that "the specific changes to pgjdbc" indeed help
> Fedora packaging?

We can tell you it helps, as Fedora packaging is still our responsibility.
But yes, we should setup CI.  And any interest of upstream in Fedora
packaging is huge success.

I would correct your question by s/Fedora/RPM/ pattern though;  all RPM
[4] distributions would benefit from changes we talking about.

> 2) Requirements. I'm sure the first dozen of builds will fail due to
> packaging limitations. It is much better to know the limitations
> beforehand than running into them at Fedora CI builds.

To answer this, I need to know what limits you mean probably.  Fedora
builds are turing complete, there are just intentional limits (which
encourage packagers to do the job right) like no superuser access.
In CI [2], you can opt-in the internet;  but it is generally a bad idea
(I admit that not everybody will agree with me) because it (a) makes me
lazy and (b) is not secure.

So
  * no internet in official build system (but that is separate from CI),
  * you have limited set of dependencies (usually new package gets added
    on demand -- once somebody needs it), usually available on demand and
    installed before the build starts
  * no superuser access

[1] https://fedoraproject.org/wiki/Mock
[2] https://copr.fedorainfracloud.org/coprs/
[3] http://www.fedmsg.com/en/latest/
[4] https://en.wikipedia.org/wiki/Category:RPM-based_Linux_distributions

Pavel



-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (55+ messages)  latest in thread

Message-ID: <1760147.kSfhyxqH6i@nb.usersys.redhat.com>
Permalink:  ../1760147.kSfhyxqH6i@nb.usersys.redhat.com/
Also on:    postgresql.org/message-id/1760147.kSfhyxqH6i@nb.usersys.redhat.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: praiskup@redhat.com, sitnikov.vladimir@gmail.com, aht@8kdata.com, pkajaba@redhat.com, stephen@eccostudio.com, pg@fastcrypt.com
  Subject: Re: [pgjdbc] Implement JDBC specs via pre-processor step (#435)
  In-Reply-To: <1760147.kSfhyxqH6i@nb.usersys.redhat.com>
  References: <pgjdbc/pgjdbc/pull/435@github.com> <56A1773C.8060702@8kdata.com> <CAB=Je-GEA9vuxUqZNd6anG=C_6HP4M_iN6Xt-Ha8CrPkXbfrLA@mail.gmail.com> <1760147.kSfhyxqH6i@nb.usersys.redhat.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox