-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Faster release cadence for bug fixes to stable #9322
Comments
This is a problem we're trying to tackle and is part of Clippy's roadmap. See #6623 Currently, there are some initiatives/ideas floating around that we want to implement.
cc: @Alexendoo FIY I believe you wanted to better integrate lintcheck into the workflow 🙃 |
Thanks for the context @xFrednet. I'm excited that there is work planned to make a dent in this! In the absence of having nightly only lints, might we consider a policy that all new lints are placed in nursery? It's hard for me to tell what the nursery lint group is for, but this might be an easy way to stop the bleeding in the short term. |
This was something we thought about before. The problem is, that we also add restriction lints and others that shouldn't be warn-by-default. Therefore, users couldn't say ( |
@lopopolo you could try using nightly clippy at least for local development. Then a) the bug fixes will arrive to you in particular more quickly, and b) stable users might not even notice that a bug has existed at all. |
I'm not sure how that would help since it looks like in some case bugs are reported on nightly and don't get fixed by the time the lint makes it to stable: @est31 In theory I could run a weekly job against nightly clippy (across 15 repositories and 30+ crates will not be fun though) but my preference would be for clippy to do its own testing. |
Running nightly builds on a schedule would help us a lot. If we noticed that new lint's produce several FPs we try fixing or move them to an allow by default category (often nursery). For moves we also often Backport the change to the beta branch if required. |
Another class of issue I recently ran into is that lints may be introduced as part of one lint group (e.g. See: |
Description
In my projects I upgrade to the latest Rust toolchain quickly after release. It is fairly common to have to work around bugs in clippy as part of this process. From browsing the issue tracker, false positives and bad suggestions tend to get reported in batched when a new stable compiler hits.
Here are some such issues that I have filed or been interested in:
debug_assert
#6739ptr_as_ptr
does not trigger inside macros #8120no_effect_underscore_binding
fires when ignoring a generic argument #8300doc_link_with_quotes
does not ignore code blocks #9321manual_let_else
breakageI love that clippy has a wide selection of lints, but the reality is some of them are buggy when they get released. Even if I report a bug the day a stable compiler comes out, it takes at least 12 weeks for fixes to roll out (for fixes to go through a full nightly to beta to stable cycle).
Is there a way to roll out fixes for false positives and bugs in stable clippy more quickly?
I've previously expressed concerns about buggy lints making it to stable in #5998 (comment) where I proposed running new lints through something like a crater run. After thinking about it, I think what I'd actually like to see is bug fixes be released in a more rapid manner than they are today.
I've also previously asked if clippy bugs getting fixes would warrant a point release to the stable Rust toolchain. I'm not sure what the team's thinking on this is.
Version
Additional Labels
@rustbot label +C-question
The text was updated successfully, but these errors were encountered: