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

build(deps): bump rust-vmm-ci from 9dfe5b2 to 665f31f #185

Merged
merged 5 commits into from
Sep 14, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 4, 2023

Bumps rust-vmm-ci from 9dfe5b2 to 665f31f.

Commits
  • 665f31f Add Rust unittest so that test_coverage properly self-tests
  • 2148c04 Update container version to 26
  • 412ecd5 Have coverage test use llvm-cov instead of cargo-kcov
  • 7c1057e test_commit_format: no longer check body length
  • See full diff in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file submodules Pull requests that update Submodules code labels Sep 4, 2023
@stefano-garzarella
Copy link
Member

@dependabot rebase

@dependabot dependabot bot force-pushed the dependabot/submodules/rust-vmm-ci-665f31f branch 2 times, most recently from 3ca70a9 to eb36ede Compare September 13, 2023 14:30
@stefano-garzarella
Copy link
Member

I'm going to fix the new clippy warnings, but there is one related to __IncompleteArrayField that should be auto-generated by bindgen.

We used an old version that generated also Copy/Clone implementations, but now it looks like they removed it: rust-lang/rust-bindgen#1431

@jiangliu should we regenerate it with a new version of bindgen?
IIRC we also modified a bit the vhost_binding.rs generated file. Any suggestion?

Clippy reported the following suggestions:

error: incorrect implementation of `clone` on a `Copy` type
   --> crates/vhost/src/vhost_kern/vhost_binding.rs:134:29
    |
134 |       fn clone(&self) -> Self {
    |  _____________________________^
135 | |         Self::new()
136 | |     }
    | |_____^ help: change this to: `{ *self }`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#incorrect_clone_impl_on_copy_type
    = note: `#[deny(clippy::incorrect_clone_impl_on_copy_type)]` on by default

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
@stefano-garzarella stefano-garzarella force-pushed the dependabot/submodules/rust-vmm-ci-665f31f branch from eb36ede to 52c109c Compare September 13, 2023 15:35
@stefano-garzarella
Copy link
Member

@jiangliu for now I just applied the clippy suggestion, but I'm still thinking if we need to regenerate vhost_binding.rs

Clippy reported the following suggestions:

error: this if-then-else expression assigns a bool literal
   --> crates/vhost/src/vhost_user/backend_req_handler.rs:739:9
    |
739 | /         if (self.virtio_features & vflag) != 0
740 | |             && self.protocol_features.contains(pflag)
741 | |             && (self.acked_protocol_features & pflag.bits()) != 0
742 | |         {
...   |
745 | |             self.reply_ack_enabled = false;
746 | |         }
    | |_________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool_assign
    = note: `-D clippy::needless-bool-assign` implied by `-D warnings`
help: you can reduce it to
    |
739 ~         self.reply_ack_enabled = (self.virtio_features & vflag) != 0
740 +             && self.protocol_features.contains(pflag) && (self.acked_protocol_features & pflag.bits()) != 0;
    |

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Clippy reported the following suggestions:

error: useless use of `vec!`
   --> crates/vhost/src/vhost_user/connection.rs:676:20
    |
676 |         let buf1 = vec![0x1, 0x2, 0x3, 0x4];
    |                    ^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[0x1, 0x2, 0x3, 0x4]`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
    = note: `-D clippy::useless-vec` implied by `-D warnings`
error: useless use of `vec!`
   --> crates/vhost/src/vhost_user/connection.rs:706:20
    |
706 |         let buf1 = vec![0x1, 0x2, 0x3, 0x4];
    |                    ^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[0x1, 0x2, 0x3, 0x4]`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Bumps [rust-vmm-ci](https://github.com/rust-vmm/rust-vmm-ci) from `9dfe5b2` to `665f31f`.
- [Commits](rust-vmm/rust-vmm-ci@9dfe5b2...665f31f)

---
updated-dependencies:
- dependency-name: rust-vmm-ci
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
After updating the CI the coverage value changed causing failures:

    Current code coverage (76.33%) deviates by 7.67% from the
    previous code coverage 84.00%.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
@stefano-garzarella stefano-garzarella force-pushed the dependabot/submodules/rust-vmm-ci-665f31f branch from 52c109c to bf45e01 Compare September 13, 2023 15:41
@jiangliu jiangliu merged commit f29830a into main Sep 14, 2023
23 checks passed
@dependabot dependabot bot deleted the dependabot/submodules/rust-vmm-ci-665f31f branch September 14, 2023 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file submodules Pull requests that update Submodules code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants