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

Use buf to detect for wire breaking changes #415

Merged
merged 3 commits into from
Aug 3, 2022

Conversation

aabmass
Copy link
Member

@aabmass aabmass commented Jul 28, 2022

Use Buf breaking to check PRs for wire and json breaking changes. Here is an example PR showing this in action. There was some interest for this in #400 (comment).

The config can be tweaked to add/remove specific rules if this is too noisy, see https://docs.buf.build/breaking/configuration.

@aabmass aabmass requested a review from a team as a code owner July 28, 2022 20:46
Copy link
Member

@tigrannajaryan tigrannajaryan 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 the PR, this is very useful.

Makefile Outdated Show resolved Hide resolved
.github/workflows/build-check.yaml Outdated Show resolved Hide resolved
buf.yaml Outdated Show resolved Hide resolved
git remote set-branches origin '*'
git fetch --depth=1 origin main
git branch main origin/main
- name: Run make breaking-change with json output to annotate PR
Copy link
Member

Choose a reason for hiding this comment

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

I agree that this is very helpful, thank you!

It would be nice if you could add a breaking change in a new (dummy) PR based off this branch to illustrate how this would work.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Looks good, thank you!

Makefile Outdated Show resolved Hide resolved
@arminru arminru merged commit 0bfcf1c into open-telemetry:main Aug 3, 2022
@aabmass aabmass deleted the buf-breaking branch August 3, 2022 13:25
bogdandrutu added a commit that referenced this pull request Aug 3, 2022
…#419)

* Use buf to detect for wire breaking changes (#415)

* Make it possible to indicate partial success in an OTLP export response [2] (#414)

* Make it possible to indicate partial success in an OTLP export response

* Update changelog with PR number

* PR suggestions

* Improve docs around using rejected as 0 to convey warnings

* Adapt comments to match recent spec wording changes

* Clarify behavior of partial success not set/empty

Co-authored-by: Aaron Abbott <aaronabbott@google.com>
Co-authored-by: Joao Grassi <joao@joaograssi.com>
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.

None yet

4 participants