-
Notifications
You must be signed in to change notification settings - Fork 367
PR template related changes and The Big Warning Cleanup #666
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
Conversation
|
Looks like we had more warnings than I thought 😅 |
|
How is it that I've never seen these warnings before? 🤔 |
Some of these are in dependencies so the approach here isn't entirely correct. |
|
@MabezDev do you know what we should do with https://github.com/esp-rs/esp-hal/actions/runs/5611347093/jobs/10267543869?pr=666 instead of simply |
|
The other maintainers can veto me, but for the record I'm not really not big on the idea of adding |
Hmm, I guess they removed the argument order syntax. I think we can just use the fmt arg env capture way, i.e "wsr.ps {tkn}". |
I can roll that back when I'm done with the warnings, but removing really makes the "please don't introduce warnings" checklist item in the PR template ineffective. I'm not married to the lint, but either the reviewers should be more strict, or the CI should use some tooling to catch them. |
I don't want |
9c1f4ab to
352a0fb
Compare
|
Things are starting to green up, but:
Also, this PR has become a small mess as it touches basically everything: CI, docs, code, examples and the PR template 😂 |
86729b5 to
255fa0c
Compare
55c9f7e to
a5069fc
Compare
e73376e to
6834cc5
Compare
|
@MabezDev @jessebraham this PR is ready for your attention. I thought this would be much smaller and much more straight forward, and I was terribly wrong. The commits should mostly stand on their own, in case you want me to undo something. I am disappointed that I couldn't figure out how to check examples, but I guess those hurt less. I hope the end result is not too annoying to work with. I've updated the PR description with more info about what's been done. Hopefully nothing got lost in the big frustration :) |
|
Thanks for looking into this! I don't think this is mergeable as it is with the use of |
MabezDev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest of the changes look good to me! Thanks for taking care of those. Just to solve the deny warning issue. What about a CI step which uses sed to insert the rustflag into .cargo/config.toml?
| # Run clippy on all packages targeting RISC-V. | ||
| - name: clippy (esp-riscv-rt) | ||
| run: cargo +stable clippy --manifest-path=esp-riscv-rt/Cargo.toml -- --no-deps | ||
| run: cd esp-riscv-rt/ && cargo +nightly clippy -- --no-deps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these tested on nightly now? AFAIK we don't use any nightly features inside esp-riscv-rt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might have been a consistency/copy-paste thingy. I don't quite remember which one, but either way using a single toolchain looks better and using nightly means usually more lints.
|
We could add the flag as But, I'm reluctant to use rustflags at all as they will trigger for upstream crates we don't care about. |
|
Looks good to me - and made me finally install a spell checker plugin 🤦♂️ |
|
|
||
| - Update `embedded-hal-*` alpha packages to their latest versions (#640) | ||
| - Implement the `Clone` and `Copy` traits for the `Rng` driver (#650) | ||
| - Implement the `Clone` and `Copy` traits for the `Rng` driver (#650, #666) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nobody noticed that this is in the wrong line :)
|
I'm going to split out the uncontroversial parts into other PRs that can be landed without the warning stuff. |
This PR updates the PR template to remove checklist items that are covered by CI. The PR also ensures that warnings are rejected by CI where possible (sadly, not for examples).
eh1feature for rustdoc so that ehal1 references don't trigger warnings:(warnings in examples are not denied because -D warnings breaks some of them (by ignoring flags from config.toml)I've tried to not use
#[deny(warnings)]as it is an antipattern and has the potential of breaking future code. Unfortunately, other attempts (RUSTFLAG,cargo rustc -- -D warnings) have failed and I'm out of ideas besides grepping for warnings or using a github action if one exists. These latter ideas seemed way too much work for today and at this point I'm sufficiently frustrated.