-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Use cargo semver-checks
for release testing
#13665
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
Comments
I like the checks but note that we need to be able to introduce breaking changes, because sometimes there is no practical other way. If we enable API check, we should have a suppression- / allow-list for it. also, i got the impression that the sentiment in #13525 was that compilation-level breakages are not necessarily a problem (#13525 (comment), seconded in #13525 (comment)) |
To clarify: I don't want the checks to totally prevent breaking changes. I just want to make sure that they are visible and we don't break stuff that can easily be prevented (e.g. removing a valid re-export during some refactoring). |
I agree with this desire, but it's also important to make this goal clear.
Agreed. |
What
We run
cargo semver-checks
before (pre-)releasing a new version. Maybe even for every PR (it's rather expensive though).Why
Also see #13648.
While it doesn't necessarily prevent breaking changes, but it might make accidental ones more visible. For example, running this for 2ac8af8 (which compares against v43.0.0), we get the following things that I think could be avoided (this is a small subset of what the tool found):
We could even add a config to the repo that defines what we accept, for example:
How
TBD
The text was updated successfully, but these errors were encountered: