Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: new major versioning cut policy. #10958

Merged
merged 2 commits into from
May 1, 2020

Conversation

htuch
Copy link
Member

@htuch htuch commented Apr 27, 2020

After extended discussion in #10852, Slack and offline, this patch proposes a revision to the API
major versioning policy where we will:

  • Not mechanically cut a new major version at EOY, instead wait for enough tech debt.

  • Encourage the use of client feature capabilities as an alternative to manage client
    feature support.

Fixes #10852.

Signed-off-by: Harvey Tuch htuch@google.com

After extended discussion in envoyproxy#10852, Slack and offline, this patch proposes a revision to the API
major versioning policy where we will:

* Not mechanically cut a new major version at EOY, instead wait for enough tech debt.

* Encourage the use of client feature capabilities as an alternative to manage client
  feature support.

Fixes envoyproxy#10852.

Signed-off-by: Harvey Tuch <htuch@google.com>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/.

🐱

Caused by: #10958 was opened by htuch.

see: more, trace.

@htuch
Copy link
Member Author

htuch commented Apr 27, 2020

CC @markdroth @louiscryan @dfawley @ejona86 @envoyproxy/api-shepherds @alyssawilk

@htuch
Copy link
Member Author

htuch commented Apr 27, 2020

We will review this at the community call tomorrow as well (draft until then).

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for starting this conversation. In general this LGTM but I think it's definitely worth discussing on the community call and in other ad-hoc meetings as needed.

than the API owners. There will be no major `vN` initiative to address technical debt beyond that
enabled by the above process.

# Client features
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if it's worth tracking in this PR, but I do want to discuss enhancing the deprecated annotation so it might look more like this (in pseudo proto):

Foo foo = 1 [deprecated.in = {"envoy.1.16", "grpc.x.y", ...}

This would allow fields to be fully deprecated in particular versions, and in conjunction with client capabilities and early failure during config parsing, allow clients to actually clean up tech debt without bumping the major version API.

This needs a ton of thinking but it could make the need to upgrade major versions to perform tech debt cleanup much less frequent.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm concerned this will lead to control planes having to do to much work and force intermediate caching layers to have to reason about version ranges, but we can discuss. There's a middle ground, e.g. adding an annotation to indicate the client feature capability needed to ask for this deprecated feature.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To follow up on the community call conversation, I think there is some consensus on some combination of API point releases as well as client feature flags. I think we still want to encode most of this information inside a more sophisticated deprecated annotation. Let's work offline on a proposal, but I don't think it needs to block this PR. Not sure though if you want to do any edits based on our discussion and desired future direction though? cc @alyssawilk

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated to:

  • Refrain from committing to client feature capabilities for deprecations, while still leaving them there for cross-client support.
  • Mention that minor versions are WiP and may introduce sunsetting of support inside a major version (after at least 1 year of support).

Does this sound reasonable? If so, we can merge this PR and then continue the discussion to hash this out some more. Your deprecated annotations probably will be part of the minor version scheme.

Signed-off-by: Harvey Tuch <htuch@google.com>
@htuch htuch marked this pull request as ready for review May 1, 2020 19:27
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks. Agreed let's ship and iterate.

@repokitteh-read-only repokitteh-read-only bot removed the api label May 1, 2020
@htuch htuch merged commit cf12e8a into envoyproxy:master May 1, 2020
@htuch htuch deleted the new-versioning-guidelines branch May 1, 2020 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reconsider xDS API lifecycle clock
3 participants