| From: | Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com> |
|---|---|
| To: | pgsql-jdbc(at)lists(dot)postgresql(dot)org |
| Subject: | Release plans |
| Date: | 2021-03-13 16:37:22 |
| Message-ID: | CAB=Je-GhO3LJQXABJ4jBtcG1OYV-q54jL71fG_6POiZAbHuwLg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
Hi,
We have interesting requirements that might even contradict each other:
a) We need to introduce features to pgjdbc and fix bugs
b) We need strong backward compatibility
There was a discussion in https://github.com/pgjdbc/pgjdbc/discussions/1991,
and I suggest we apply the following:
1) Perform releases with a 3-month cadence. The releases might appear
earlier, yet major releases would have at least 3-month intervals between
each other.
2) Make sure all behavior changes are first introduced in warning-only mode
(the behavior is the same, yet pgjdbc would print a warning)
3) In the subsequent releases the defaults might flip (or it might incubate
for a while, or it might even raise an error depending on the nature of the
change)
4) Later the flag to restore the old behavior would disappear and only new
behavior persists
5) I suggest we treat "implementing methods that previously were not
implemented" as a backward-compatible change.
In other words, we treat "implementing more JDBC APIs" like a feature
rather than "behavior change".
That means the features are released when they are ready, the developers we
would have a clear policy for evolution,
and the users would see if the upgrade is going to break things based on
the version numbers.
The suggested flow is not much different from what we did earlier, however,
we pushed extremely hard on backward compatibility,
so we resided making behavior change which caused features to "stuck" in
the queue.
----
Let us see how that might play for the upcoming releases:
1) Last recent releases were on 15 October (5 months ago), and 18 February
(1 month ago).
So the next release would be nice to have somewhere near 15 March ...15
April
2) I suggest we make "Java 8+" the only breaking change for the upcoming
42.3
It looks like there are small changes in 42.2 branch, so we might release
42.2.20 and 43.0 simultaneously
----
Implications for the driver users:
1) Updates within minor versions should be safe. For instance, 42.2.x ->
42.5.y should be safe.
You might get new features, however, the behavior and performance should
not regress.
2) Updates to the next major version should be safe as well provided you
had no warnings from the past upgrades.
For instance, 43.x -> 44.y should be a safe upgrade.
It might introduce new warnings in case you reach a code path that is known
to be changed in the upcoming major versions.
3) If you skip a major version, you might get incompatibility issues (e.g.
APIs might return unexpected values).
For instance, resultSet.getObject(int) might return object of different
classes in 43.x and 45.y.
4) Probably we would have a separate page for "behavior changes" related to
major versions (e.g. upgrading from 42, upgrading from 43, etc)
5) Past versions are supported on a best-effort basis. For instance, as we
release 43.0, we won't back-patch old versions unless there's an explicit
demand or help.
Of course, if there are security or significant functional issues, we might
release 42.x branch, however, that would be an exception.
----
Implications for contributors:
1) If you fix a bug, please fix it on the default branch.
2) If you add a new feature, just add it (however, sometimes it is a nice
idea to have a kill switch just in case the feature would misbehave)
3) If you want a behavior change (e.g. change getObject() result from
PGObject to something else), then implement it so that the previous
behavior is intact
and the new behavior can be activated with a property.
4) The expected "PR to release" latency should not exceed 3 months provided
the feature is ready and tested.
5) If you feel the PR is stuck, don't hesitate to reach out.
----
Hope that helps and I would love to hear your comments.
Vladimir
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dave Cramer | 2021-03-16 12:47:19 | Re: Release plans |
| Previous Message | Dave Cramer | 2021-03-09 14:15:22 | [pgjdbc/pgjdbc] 72e641: fix: Partitioned indexes were not found fixes (#20... |