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

chore: address nightly clippy lints #1955

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Conversation

mxinden
Copy link
Collaborator

@mxinden mxinden commented Jul 2, 2024

See corresponding lints:

See recent CI failure:

https://github.com/mozilla/neqo/actions/runs/9759065486/job/26934981259

  error:
     --> neqo-transport/src/path.rs:214:62
      |
  214 |         let old_path = self.primary.replace(Rc::clone(path)).map(|old| {
      |                                                              ^^^
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
      = note: `-D clippy::manual-inspect` implied by `-D warnings`
      = help: to override `-D warnings` add `#[allow(clippy::manual_inspect)]`
  help: try
      |
  214 ~         let old_path = self.primary.replace(Rc::clone(path)).inspect(|old| {
  215 ~             old.borrow_mut().set_primary(false);
      |

  error: mutable key type
     --> neqo-transport/src/server.rs:603:45
      |
  603 |     pub fn active_connections(&mut self) -> HashSet<ActiveConnectionRef> {
      |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mutable_key_type
      = note: `-D clippy::mutable-key-type` implied by `-D warnings`
      = help: to override `-D warnings` add `#[allow(clippy::mutable_key_type)]`

  error: could not compile `neqo-transport` (lib) due to 2 previous errors
error: process didn't exit successfully: `/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo clippy --all-targets --manifest-path fuzz/Cargo.toml -- -D warnings` (exit status: 101)

See corresponding lints:

- https://rust-lang.github.io/rust-clippy/master/index.html#/mutable_key_type
- https://rust-lang.github.io/rust-clippy/master/index.html#/manual_inspect

See recent CI failure:

https://github.com/mozilla/neqo/actions/runs/9759065486/job/26934981259

```
  error:
     --> neqo-transport/src/path.rs:214:62
      |
  214 |         let old_path = self.primary.replace(Rc::clone(path)).map(|old| {
      |                                                              ^^^
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
      = note: `-D clippy::manual-inspect` implied by `-D warnings`
      = help: to override `-D warnings` add `#[allow(clippy::manual_inspect)]`
  help: try
      |
  214 ~         let old_path = self.primary.replace(Rc::clone(path)).inspect(|old| {
  215 ~             old.borrow_mut().set_primary(false);
      |

  error: mutable key type
     --> neqo-transport/src/server.rs:603:45
      |
  603 |     pub fn active_connections(&mut self) -> HashSet<ActiveConnectionRef> {
      |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      |
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mutable_key_type
      = note: `-D clippy::mutable-key-type` implied by `-D warnings`
      = help: to override `-D warnings` add `#[allow(clippy::mutable_key_type)]`

  error: could not compile `neqo-transport` (lib) due to 2 previous errors
error: process didn't exit successfully: `/home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo clippy --all-targets --manifest-path fuzz/Cargo.toml -- -D warnings` (exit status: 101)
```
Copy link

github-actions bot commented Jul 2, 2024

Failed Interop Tests

QUIC Interop Runner, client vs. server

All results

Succeeded Interop Tests

QUIC Interop Runner, client vs. server

Unsupported Interop Tests

QUIC Interop Runner, client vs. server

Copy link

codecov bot commented Jul 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.79%. Comparing base (2e1f92e) to head (dcdb2b6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1955   +/-   ##
=======================================
  Coverage   94.79%   94.79%           
=======================================
  Files         110      110           
  Lines       35722    35722           
=======================================
  Hits        33864    33864           
  Misses       1858     1858           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Jul 2, 2024

Benchmark results

Performance differences relative to 2e1f92e.

coalesce_acked_from_zero 1+1 entries: Change within noise threshold.
       time:   [187.61 ns 188.05 ns 188.50 ns]
       change: [-0.6910% -0.3547% +0.0337%] (p = 0.05 < 0.05)

Found 8 outliers among 100 measurements (8.00%)
4 (4.00%) high mild
4 (4.00%) high severe

coalesce_acked_from_zero 3+1 entries: No change in performance detected.
       time:   [230.12 ns 230.66 ns 231.24 ns]
       change: [-1.3661% -0.4079% +0.3388%] (p = 0.40 > 0.05)

Found 12 outliers among 100 measurements (12.00%)
5 (5.00%) high mild
7 (7.00%) high severe

coalesce_acked_from_zero 10+1 entries: No change in performance detected.
       time:   [230.24 ns 231.11 ns 232.24 ns]
       change: [-0.2495% +0.3879% +1.2418%] (p = 0.40 > 0.05)

Found 7 outliers among 100 measurements (7.00%)
1 (1.00%) low mild
6 (6.00%) high severe

coalesce_acked_from_zero 1000+1 entries: No change in performance detected.
       time:   [213.02 ns 213.21 ns 213.42 ns]
       change: [-0.7316% -0.0473% +0.5814%] (p = 0.89 > 0.05)

Found 11 outliers among 100 measurements (11.00%)
4 (4.00%) high mild
7 (7.00%) high severe

RxStreamOrderer::inbound_frame(): Change within noise threshold.
       time:   [118.80 ms 118.91 ms 119.02 ms]
       change: [+0.2219% +0.3296% +0.4335%] (p = 0.00 < 0.05)
transfer/Run multiple transfers with varying seeds: No change in performance detected.
       time:   [121.54 ms 121.82 ms 122.09 ms]
       thrpt:  [32.763 MiB/s 32.837 MiB/s 32.912 MiB/s]
change:
       time:   [-0.5356% -0.2082% +0.0995%] (p = 0.21 > 0.05)
       thrpt:  [-0.0994% +0.2086% +0.5385%]
transfer/Run multiple transfers with the same seed: Change within noise threshold.
       time:   [121.55 ms 121.73 ms 121.90 ms]
       thrpt:  [32.812 MiB/s 32.861 MiB/s 32.909 MiB/s]
change:
       time:   [-0.9134% -0.7150% -0.5074%] (p = 0.00 < 0.05)
       thrpt:  [+0.5100% +0.7201% +0.9218%]

Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild

1-conn/1-100mb-resp (aka. Download)/client: No change in performance detected.
       time:   [1.0860 s 1.1089 s 1.1369 s]
       thrpt:  [87.956 MiB/s 90.176 MiB/s 92.078 MiB/s]
change:
       time:   [-5.2485% -2.2538% +0.8077%] (p = 0.20 > 0.05)
       thrpt:  [-0.8012% +2.3057% +5.5392%]

Found 1 outliers among 10 measurements (10.00%)
1 (10.00%) high mild

1-conn/10_000-parallel-1b-resp (aka. RPS)/client: No change in performance detected.
       time:   [439.69 ms 442.53 ms 445.39 ms]
       thrpt:  [22.452 Kelem/s 22.597 Kelem/s 22.743 Kelem/s]
change:
       time:   [-0.6205% +0.3037% +1.1410%] (p = 0.51 > 0.05)
       thrpt:  [-1.1281% -0.3028% +0.6244%]

Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild

1-conn/1-1b-resp (aka. HPS)/client: No change in performance detected.
       time:   [45.264 ms 45.485 ms 45.713 ms]
       thrpt:  [21.876  elem/s 21.985  elem/s 22.092  elem/s]
change:
       time:   [-0.6076% +0.1407% +0.8753%] (p = 0.72 > 0.05)
       thrpt:  [-0.8677% -0.1405% +0.6113%]

Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild

Client/server transfer results

Transfer of 33554432 bytes over loopback.

Client Server CC Pacing Mean [ms] Min [ms] Max [ms] Relative
msquic msquic 148.2 ± 45.5 104.1 266.8 1.00
neqo msquic reno on 275.9 ± 21.6 256.3 327.1 1.00
neqo msquic reno 270.9 ± 12.0 256.1 286.7 1.00
neqo msquic cubic on 270.0 ± 12.1 252.4 284.7 1.00
neqo msquic cubic 265.7 ± 8.4 253.7 279.0 1.00
msquic neqo reno on 976.3 ± 42.6 946.5 1087.5 1.00
msquic neqo reno 942.6 ± 11.5 930.9 961.4 1.00
msquic neqo cubic on 923.6 ± 12.3 909.2 945.4 1.00
msquic neqo cubic 900.5 ± 13.0 879.3 915.8 1.00
neqo neqo reno on 983.9 ± 18.3 961.5 1017.4 1.00
neqo neqo reno 962.5 ± 24.9 935.4 1024.2 1.00
neqo neqo cubic on 967.5 ± 13.6 951.3 986.1 1.00
neqo neqo cubic 945.1 ± 9.1 933.0 957.5 1.00

⬇️ Download logs

Copy link

github-actions bot commented Jul 2, 2024

Firefox builds for this PR

The following builds are available for testing. Crossed-out builds did not succeed.

@larseggert larseggert added this pull request to the merge queue Jul 2, 2024
Merged via the queue into mozilla:main with commit 6ed84a7 Jul 2, 2024
56 checks passed
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.

2 participants