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

Fix Clippy 1.75.0 errors #3521

Merged
merged 4 commits into from
Jan 2, 2024
Merged

Conversation

bgurney-rh
Copy link
Member

Signed-off-by: Bryan Gurney <[email protected]>
@bgurney-rh bgurney-rh self-assigned this Jan 2, 2024
Copy link
Member

@mulkieran mulkieran left a comment

Choose a reason for hiding this comment

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

One request...

@@ -370,6 +370,7 @@ where
/// Returns true if:
/// * The waiting task does not conflict with any already woken tasks.
/// * The waiting task does not conflict with any locks currently held.
#[allow(clippy::get_first)]
Copy link
Member

Choose a reason for hiding this comment

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

Instead of the allow, use front() for get(0).

Copy link
Member Author

Choose a reason for hiding this comment

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

OK; now I see it. It turns out that clippy did recommend front(), but it was in a large list of first() recommendations. I'll revert the clippy allow, let this change run through CI, and then rebase to remove the unnecessary allow commit if all tests pass.

Copy link

Cockpit tests failed for commit 3849d76. @martinpitt, @jelly, @mvollmer please check.

@mulkieran
Copy link
Member

Cockpit tests failed for commit 3849d76. @martinpitt, @jelly, @mvollmer please check.

These are just minor lint fixes, so likely the failure is not due to us.

Signed-off-by: Bryan Gurney <[email protected]>
Clippy 1.75.0 is showing initialize_devices as an unused import, but
it is used in a test in strat_engine/liminal/identify.rs.

Signed-off-by: Bryan Gurney <[email protected]>
@bgurney-rh
Copy link
Member Author

Rebasing to remove the commits that added and reverted Allow clippy::get_first...

Copy link

Cockpit tests failed for commit a2c5cd0. @martinpitt, @jelly, @mvollmer please check.

@mulkieran
Copy link
Member

Merging. I think there is something wrong with the testing framework on rawhide.

@mulkieran mulkieran merged commit 0325e7b into stratis-storage:master Jan 2, 2024
38 of 40 checks passed
Copy link

Cockpit tests failed for commit d052161. @martinpitt, @jelly, @mvollmer please check.

@martinpitt
Copy link
Contributor

@mulkieran Right, something broke in the storage stack in rawhide yesterday. It's already on our large pile of stuff to look at which broke over the EOY holidays. Sorry for the trouble, please ignore for now -- tests passed on F39, which gives sufficient confidence. Your own tests.udev.test_udev.UdevTest1.test_generic failed as well, does that talk to only udev, or also udisks/stratisd etc?

@mulkieran
Copy link
Member

That test is a test that essentially test stratisd's correct response to a storm of udev events. The tests are unfortunately a bit flaky, but also too useful for us to abandon.

@mulkieran Right, something broke in the storage stack in rawhide yesterday. It's already on our large pile of stuff to look at which broke over the EOY holidays. Sorry for the trouble, please ignore for now -- tests passed on F39, which gives sufficient confidence. Your own tests.udev.test_udev.UdevTest1.test_generic failed as well, does that talk to only udev, or also udisks/stratisd etc?

@bgurney-rh bgurney-rh deleted the latest-1.75 branch January 3, 2024 18:27
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.

3 participants