Skip to content

Prevent deleting enum values in buf breaking#36248

Merged
espadolini merged 2 commits intomasterfrom
espadolini/buf-breaking-enum-delete
Jan 4, 2024
Merged

Prevent deleting enum values in buf breaking#36248
espadolini merged 2 commits intomasterfrom
espadolini/buf-breaking-enum-delete

Conversation

@espadolini
Copy link
Copy Markdown
Contributor

This PR changes the buf breaking rules to prohibit deleting enum values, as that can cause backwards compatibility issues even if the values are reserved. In addition, this adds an exception to allow removing reservations for enum values in types.proto, as that will need fixing in #35803. Since the only reserved enum value in types.proto is the one that needs fixing and the additional rule will prevent any value from being deleted, the exception should not be able to cause further problems.

Backports should not include the rule exception since only the types.proto in master needs the tweak.

@espadolini espadolini added backport-required no-changelog Indicates that a PR does not require a changelog entry labels Jan 3, 2024
@github-actions github-actions Bot requested review from ryanclark and tcsc January 3, 2024 20:32
Copy link
Copy Markdown
Contributor

@codingllama codingllama 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 following up on this one!

Comment thread api/proto/buf-legacy.yaml
breaking:
use:
- FILE
- "buf-legacy.yaml should not be used for buf breaking"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Creative.

@espadolini espadolini added this pull request to the merge queue Jan 4, 2024
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 4, 2024
@espadolini espadolini enabled auto-merge January 4, 2024 09:42
@espadolini espadolini added this pull request to the merge queue Jan 4, 2024
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 4, 2024
@espadolini espadolini added this pull request to the merge queue Jan 4, 2024
Merged via the queue into master with commit f7423ac Jan 4, 2024
@espadolini espadolini deleted the espadolini/buf-breaking-enum-delete branch January 4, 2024 10:54
Envek added a commit to Envek/teleport that referenced this pull request Jan 4, 2024
…se-anon-key

* origin/master: (344 commits)
  Undelete CreateHostUserMode_HOST_USER_MODE_DROP (gravitational#36273)
  allow cwd to be changed in difftest (gravitational#35946)
  Auth device list component (gravitational#36235)
  make unified resources responsive (gravitational#35961)
  Support running Teleport in a "hot reload" mode (gravitational#35040)
  Prevent deleting enum values, allow deleting enum reservations in types.proto (gravitational#36248)
  Remove support for legacy (Amazon Linux 2) AMIs (gravitational#36153)
  Bump version(s) used for teleport-lab and teleport-quickstart (gravitational#36167)
  Allow Reconciler update handler to examine old value during update (gravitational#36171)
  Validate the user still exists during account reset (gravitational#35676)
  ButtonTextWithAddIcon shared component (gravitational#36103)
  Refactor hostname resolution for SSH connections via the WebUI (gravitational#35773)
  add structuredClone to jest JSDOMEnvironment (gravitational#36213)
  fix flaky `lib/auth` cache-enabled tests (gravitational#36216)
  Report resource usage counts by handling heartbeat events (gravitational#35968)
  Reviewer bot should use the stable version of Go (gravitational#36242)
  RFD 0153 Resource Guidelines (gravitational#34103)
  Use cmp and cmpots properly in operator tests (gravitational#36215)
  Relax Kubernetes CRD discovery when building cache (gravitational#36214)
  Add Access List messages to TAG protobuf (gravitational#36176)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants