apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (APEXCORE-319) Document backward compatibility guidelines
Date Mon, 14 Mar 2016 21:37:33 GMT

    [ https://issues.apache.org/jira/browse/APEXCORE-319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15194195#comment-15194195

ASF GitHub Bot commented on APEXCORE-319:

Github user PramodSSImmaneni commented on a diff in the pull request:

    --- Diff: src/md/compatibility.md ---
    @@ -0,0 +1,112 @@
    +#Apache Apex Compatibility
    +This document captures the compatibility goals of the Apache Apex project. The different
types of compatibility between Apex releases that affect contributors, downstream projects,
and end-users are enumerated. For each type of compatibility we:
    +* describe the impact on downstream projects or end-users
    +* where applicable, call out the policy adopted when incompatible changes are permitted.
    +Apache Apex follows [semantic versioning](http://semver.org/). Depending in the compatibility
type, there may be different tools or mechanisms to ensure compatibility, for example by comparing
artifacts during the build process.
    +The type of change will inform the required target version number. Given a version number
MAJOR.MINOR.PATCH, increment the:
    +* MAJOR version when you make incompatible API changes,
    +* MINOR version when you add functionality in a backwards-compatible manner, and
    +* PATCH version when you make backwards-compatible bug fixes.
    +Additional labels for pre-release and build metadata are available as extensions to the
    +The overall goal is to avoid backward incompatible changes and major release upgrades.
Accordingly we attempt to release new features with minor versions that are incremental to
the prior release and offer our users a frictionless upgrade path. When planning contributions,
please consider compatibility and release road map upfront. Specifically, certain changes
that conflict with the versioning may need to be documented in JIRA and deferred until a future
major release. 
    +##Compatibility types
    +###Java API
    +Public API compatibility is required to ensure end-user programs and downstream projects
continue to work without modification.
    +The public API consists of:
    +* apex-core: all interfaces and classes in `api` and `common` modules
    +* apex-malhar: all interfaces and classes in all modules except `demos`, `samples`, `benchmark`

    +Interfaces and classes that are part of the public API and are annotated with [interface
are treated according to the rules defined by the annotation.  
    +Changes to the public API must follow semantic versioning. 
    +Public APIs must be deprecated for at least one major release prior to their removal
in a major release.
    +The japicmp plugin is used to enforce compatibility as part of the Travis pre-commit
    +###Semantic compatibility
    +The behavior of APIs needs to remain consistent over versions, though changes for correctness
may result in changes in behavior. Tests and javadocs specify the behavior. Over time, test
suites should be expanded to verify compliance with the specification, effectively creating
a formal specification for the subset of behaviors that can be easily tested.
    +The behavior of API may be changed to fix incorrect behavior, changes to be accompanied
by tests coverage for the exact behavior.
    +###REST API
    +REST API compatibility corresponds to both the URLs and request/response content over
the wire. REST APIs are specifically meant for stable use by clients across releases, even
major releases. 
    +The REST API is separately versioned. This is to allow for co-existence of old and new
API should there be a need for backward incompatible changes in the future.
    +###Command Line Interface (CLI)
    +The CLI may be used either directly via the system shell or via shell scripts. Changing
the path, removing or renaming command line options, the order of arguments, or the command
return code and output break compatibility and may adversely affect users.
    +CLI commands are to be deprecated (warning when used) in a prior minor release before
they are removed or incompatibly modified in a subsequent major release.
    --- End diff --
    For API the policy mentioned above is
    "Public APIs must be deprecated for at least one major release prior to their removal
in a major release."
    For CLI the policy mentioned is
    "CLI commands are to be deprecated (warning when used) in a prior minor release before
they are removed or incompatibly modified in a subsequent major release."
    I read this as keeping old APIs for an extra major release in a deprecated capacity, so
for example if it is deprecated towards the end of the 3.x lifecycle it gets removed in 5.x
and not 4.x. Looks like that is not what you are intending to say, then can we make the wording
of the two statements above similar so as to avoid confusion.

> Document backward compatibility guidelines
> ------------------------------------------
>                 Key: APEXCORE-319
>                 URL: https://issues.apache.org/jira/browse/APEXCORE-319
>             Project: Apache Apex Core
>          Issue Type: Task
>            Reporter: Chris Nauroth
>            Assignee: Thomas Weise
>              Labels: tlp
> QU40
> The project puts a high priority on backwards compatibility and aims to
> document any incompatible changes and provide tools and documentation to help users transition
to new features.
> I couldn't find backwards-compatibility guidelines documented at
> apex.incubator.apache.org.  Example:
> http://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-common/Comp
> atibility.html

This message was sent by Atlassian JIRA

View raw message