forked from containerd/containerd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: generate merged descriptors when building protobufs
When we generate protobufs, descriptors outlining all messages and services are merged into a single file that can be used to identify unexpected changes to the API that may affect stability. We follow a similar process to Go's stability guarantees using the protobuf descriptors to identify changes before they become a problem. Please see README.md for details. Signed-off-by: Stephen J Day <[email protected]>
- Loading branch information
Showing
5 changed files
with
3,624 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
This directory contains the GRPC API definitions for contaienrd. | ||
|
||
All defined services and messages have been aggregated into `*.pb.txt` | ||
descriptors files in this directory. Definitions present here are considered | ||
frozen after the release. | ||
|
||
At release time, the current `next.pb.txt` file will be moved into place to | ||
freeze the API changes for the minor version. For example, when 1.0.0 is | ||
released, `next.pb.txt` should be moved to `1.0.txt`. Notice that we leave off | ||
the patch number, since the API will be completely locked down for a given | ||
patch series. | ||
|
||
We may find that by default, protobuf descriptors are too noisy to lock down | ||
API changes. In that case, we may filter out certain fields in the descriptors, | ||
possibly regenerating for old versions. | ||
|
||
This process is similar to the [process used to ensure backwards compatibility | ||
in Go](https://github.com/golang/go/tree/master/api). |
Oops, something went wrong.