You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by rx...@apache.org on 2019/10/28 13:17:50 UTC

[pulsar.wiki] branch master updated: Add PIP-47 for project

This is an automated email from the ASF dual-hosted git repository.

rxl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.wiki.git


The following commit(s) were added to refs/heads/master by this push:
     new 612fd52  Add PIP-47 for project
612fd52 is described below

commit 612fd521b08cdcb894b347791da5eb0d84e73a41
Author: 冉小龙 <rx...@qq.com>
AuthorDate: Mon Oct 28 21:17:44 2019 +0800

    Add PIP-47 for project
---
 PIP-47:-Time-Based-Release-Plan.md | 89 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 89 insertions(+)

diff --git a/PIP-47:-Time-Based-Release-Plan.md b/PIP-47:-Time-Based-Release-Plan.md
new file mode 100644
index 0000000..e3c411d
--- /dev/null
+++ b/PIP-47:-Time-Based-Release-Plan.md
@@ -0,0 +1,89 @@
+- Status: Draft
+- Author: Xiaolong Ran
+- Pull request:
+- Mailing list discussion:
+- Release:
+
+This proposal is to adopt Kafka's [Time Based Release Plan](https://cwiki.apache.org/confluence/display/KAFKA/Time+Based+Release+Plan).
+
+## Motivation
+
+The benefits of moving to a time based release are:
+
+1. A quicker feedback cycle and users can benefit from features shipped quicker
+2. Predictability for contributors and users:
+    1. Developers and reviewers can decide in advance what release they are aiming for with specific features.
+    2. If a feature misses a release we have a good idea of when it will show up.
+    3. Users know when to expect their features
+3. Transparency - There will be a published cut-off date (AKA feature freeze) for the release and people will know about it in advance. Hopefully this will remove the contention around which features make it.
+4. Quality - we've seen issues pop up in release candidates due to last-minute features that didn't have proper time to bake in. More time between feature freeze and release will let us test more, document more and resolve more issues.
+
+Since nothing is ever perfect, there will be some downsides:
+
+1. Most notably, features that miss the feature-freeze date for a release will have to wait few month for the next release. Features will reach users faster overall as per benefit #1, but individual features that just miss the cut will lose out
+2. More releases a year mean that being a committer is more work - release management is still some headache and we'll have more of those. Hopefully we'll get better at it. Also, the committer list is growing and hopefully it will be less than once-a-year effort for each committer.
+3. For users, figuring out which release to use and having frequent new releases to upgrade to may be a bit confusing.
+4. Frequent releases mean we need to do bugfix releases for older branches. Right now we only do bugfix releases to latest release.
+
+We decided to experiment with time based releases and see if the benefits for us as a community exceed the drawbacks. We will regularly iterate to improve our release process with the goal of having a community of happy developers and users as well as regular high-quality releases.
+
+## How will Apache Pulsar development process look like?
+
+At this stage we are planning to make a release every 3 month.
+
+A month before the release date, the release manager will cut branches and also publish (preferably on the wiki) a list of features that will be included in the release (these will typically be PIPs, but not always). We will leave another week for "minor" features to get in (see below for definitions), but at this point we will start efforts to stabilize the release branch and contribute mostly tests and fixes. Two weeks after branch cutting, we will announce code-freeze and start rollin [...]
+
+### Definitions
+
+- **Major Feature** - Feature that takes more than 2 weeks to develop and stabilize. Requires more than one PR to complete the feature.
+- **Minor Feature** - Feature that takes less than 2 weeks to develop and stabilize. Requires mostly one PR to complete the feature.
+- **Stabilization** - This phase would involve writing incremental system tests for features and fixing any bugs identified in the checked in feature.
+- **Feature Freeze** - Major features should have only stabilization remaining. Minor features should have a PR in progress that can be checked in by a week. A release branch will be cut at this point.
+- **Code Freeze** - Development is stopped. Blocker bugs will be fixed after code freeze. First RC will be created at this point.
+
+For time based release, we will strictly ensure that a release happens on a given date. For example, in the first release, we will decide to have a release by middle of October and we will stick to it.  We will drop features that we think will not make it into the release at the time of feature freeze and also avoid taking on new features into the release branch. Trunk development can continue as usual and those features will be in the following release. Ideally, we would have started st [...]
+
+## What happens if features don’t complete?
+
+Features tend to be of different complexity. Some of them can be implemented within a single release while some span multiple releases. With time based release, we would need to ensure that ongoing features do not affect the stability of the release. There are couple of options –
+
+1. **Ensure that every feature is broken down into testable units and only testable units get checked in**. This means that good set of unit test and system tests are written for sub tasks before they are checked in. This will ensure that trunk is in a relatively stable state to release at any point of time.
+2. **Use feature branches**. Create branches from trunk that are focused on a specific feature. The feature developers ensure that the branch is in sync with trunk from time to time. Once there is high level of confidence on the stability, it can be merged into trunk. This approach has the additional overhead of branching and performing merges from time to time.
+
+### What are the gaps that we need to focus on?
+
+There are some gaps in the development process and testing infrastructure that we need to close to ensure that we can successfully do a time based release. This is going to be a long term effort but will simplify time based releases as we make more progress in closing them.
+
+1. **Testing coverage with check ins**. Code reviews in Apache Pulsar need to ensure we have good unit test coverage and enforce system tests be written along with the check ins (when applicable). Testing should not be at the end. We should also encourage documentation be accompanied with check ins where applicable.
+2. **Compatibility testing**. Although we have basic backward compatibility testing, it is not a very good framework. We need to come up with a better solution during testing.
+3. **Documentation coverage with check ins**. Code reviews in Apache Pulsar need to ensure we have good documentation coverage with check ins. Otherwise we will end up spending too much time on documentation at the end of each release.
+
+### What Is Our EOL Policy?
+
+Currently Apache Pulsar doesn't have a good story about EOL policy. We kept almost all the releases.
+
+If we switched to Time based release plan, we will have more releases. We need to define an EOL Policy. Given 4 releases a year and the fact that no one upgrades three times a year, we propose making sure (by testing!) that rolling upgrade can be done from each release in the past year (i.e. last 4 releases) to the latest version.
+
+We will also attempt, as a community to do bugfix releases as needed for the last 4 releases.
+
+### Who Manages The Releases?
+
+As usual, a committer shall volunteer. If no committer volunteers, we'll cancel a release due to lack of interest.
+
+### What About Version Numbers?
+
+Currently the Apache Pulsar version number is comprised with 3 components: major.minor.bug
+
+Feature releases will be a minor release by default (e.g. 2.3.0 => 2.4.0) - unless
+
+- We break compatibility (i.e. remove deprecated public methods after a reasonable period), in which case we bump major version (e.g. 2.4.0 => 3.0.0).
+- We do something totally amazing and decide to bump major version.
+
+### Schedule
+
+The proposed schedule for Apache Pulsar is shown below.
+
+- December 2019 - March 2020
+- March 2020 - July 2020
+- July 2020 - November 2020
+- November 2020 - February 2021