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: Turn on more clippy lints, and fix the warnings #1956

Merged
merged 16 commits into from
Jul 4, 2024

Conversation

larseggert
Copy link
Collaborator

No description provided.

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

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.

Copy link
Member

@martinthomson martinthomson left a comment

Choose a reason for hiding this comment

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

OK, I got a way into this, but I'm giving up. There is just too much const and Self to wade through. I haven't seen anything terrible.

If this is all cargo clippy --fix, I'm good. If there are manual fixes, I'd like to see those.

neqo-bin/src/server/http09.rs Show resolved Hide resolved
neqo-bin/src/server/mod.rs Outdated Show resolved Hide resolved
neqo-crypto/src/agent.rs Show resolved Hide resolved
neqo-http3/src/server_events.rs Outdated Show resolved Hide resolved
neqo-transport/src/addr_valid.rs Outdated Show resolved Hide resolved
neqo-transport/src/addr_valid.rs Outdated Show resolved Hide resolved
neqo-transport/src/cc/cubic.rs Outdated Show resolved Hide resolved
neqo-transport/src/cc/tests/cubic.rs Show resolved Hide resolved
neqo-transport/src/connection/mod.rs Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Jul 3, 2024

Benchmark results

Performance differences relative to cf72ed4.

coalesce_acked_from_zero 1+1 entries: 💚 Performance has improved.
       time:   [190.18 ns 190.66 ns 191.17 ns]
       change: [-2.0077% -1.6096% -1.2179%] (p = 0.00 < 0.05)

Found 13 outliers among 100 measurements (13.00%)
11 (11.00%) high mild
2 (2.00%) high severe

coalesce_acked_from_zero 3+1 entries: No change in performance detected.
       time:   [232.75 ns 233.24 ns 233.76 ns]
       change: [-0.4987% -0.1309% +0.2264%] (p = 0.50 > 0.05)

Found 11 outliers among 100 measurements (11.00%)
6 (6.00%) high mild
5 (5.00%) high severe

coalesce_acked_from_zero 10+1 entries: No change in performance detected.
       time:   [232.41 ns 233.14 ns 234.01 ns]
       change: [-0.5898% -0.2457% +0.0795%] (p = 0.16 > 0.05)

Found 16 outliers among 100 measurements (16.00%)
9 (9.00%) low severe
2 (2.00%) low mild
1 (1.00%) high mild
4 (4.00%) high severe

coalesce_acked_from_zero 1000+1 entries: No change in performance detected.
       time:   [211.88 ns 212.11 ns 212.37 ns]
       change: [-0.8261% -0.2338% +0.4957%] (p = 0.51 > 0.05)

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

RxStreamOrderer::inbound_frame(): No change in performance detected.
       time:   [118.70 ms 118.77 ms 118.85 ms]
       change: [-0.1007% -0.0272% +0.0491%] (p = 0.48 > 0.05)

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

transfer/Run multiple transfers with varying seeds: No change in performance detected.
       time:   [121.99 ms 122.28 ms 122.56 ms]
       thrpt:  [32.636 MiB/s 32.711 MiB/s 32.789 MiB/s]
change:
       time:   [-0.1081% +0.2279% +0.5646%] (p = 0.17 > 0.05)
       thrpt:  [-0.5614% -0.2274% +0.1083%]

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

transfer/Run multiple transfers with the same seed: Change within noise threshold.
       time:   [122.62 ms 122.80 ms 122.97 ms]
       thrpt:  [32.527 MiB/s 32.574 MiB/s 32.621 MiB/s]
change:
       time:   [+0.2089% +0.4066% +0.6087%] (p = 0.00 < 0.05)
       thrpt:  [-0.6051% -0.4049% -0.2084%]

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

1-conn/1-100mb-resp (aka. Download)/client: 💚 Performance has improved.
       time:   [1.0618 s 1.0776 s 1.0960 s]
       thrpt:  [91.240 MiB/s 92.796 MiB/s 94.180 MiB/s]
change:
       time:   [-8.0756% -5.8847% -3.6486%] (p = 0.00 < 0.05)
       thrpt:  [+3.7868% +6.2527% +8.7850%]
1-conn/10_000-parallel-1b-resp (aka. RPS)/client: No change in performance detected.
       time:   [440.11 ms 442.92 ms 445.82 ms]
       thrpt:  [22.431 Kelem/s 22.577 Kelem/s 22.722 Kelem/s]
change:
       time:   [-0.0622% +0.8189% +1.6714%] (p = 0.06 > 0.05)
       thrpt:  [-1.6439% -0.8123% +0.0623%]

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

1-conn/1-1b-resp (aka. HPS)/client: No change in performance detected.
       time:   [45.022 ms 45.249 ms 45.486 ms]
       thrpt:  [21.985  elem/s 22.100  elem/s 22.211  elem/s]
change:
       time:   [-0.9860% -0.2995% +0.3656%] (p = 0.40 > 0.05)
       thrpt:  [-0.3642% +0.3004% +0.9958%]

Found 7 outliers among 100 measurements (7.00%)
7 (7.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 170.9 ± 71.5 110.2 309.8 1.00
neqo msquic reno on 319.6 ± 81.2 253.8 476.1 1.00
neqo msquic reno 311.5 ± 81.3 258.6 473.3 1.00
neqo msquic cubic on 319.1 ± 79.7 259.5 453.8 1.00
neqo msquic cubic 311.5 ± 83.5 251.4 469.5 1.00
msquic neqo reno on 962.0 ± 20.0 935.9 998.8 1.00
msquic neqo reno 987.1 ± 63.6 935.9 1156.3 1.00
msquic neqo cubic on 940.4 ± 68.2 902.3 1131.2 1.00
msquic neqo cubic 974.1 ± 89.8 892.1 1140.5 1.00
neqo neqo reno on 1007.5 ± 42.7 975.4 1114.0 1.00
neqo neqo reno 996.7 ± 21.6 974.9 1045.1 1.00
neqo neqo cubic on 956.5 ± 62.4 930.8 1133.5 1.00
neqo neqo cubic 964.7 ± 52.1 915.0 1105.4 1.00

⬇️ Download logs

Copy link

codecov bot commented Jul 3, 2024

Codecov Report

Attention: Patch coverage is 89.56311% with 86 lines in your changes missing coverage. Please review.

Project coverage is 94.83%. Comparing base (cf72ed4) to head (7c17080).

Files Patch % Lines
neqo-transport/src/server.rs 56.47% 37 Missing ⚠️
neqo-http3/src/lib.rs 40.90% 13 Missing ⚠️
neqo-crypto/src/time.rs 68.75% 5 Missing ⚠️
neqo-crypto/src/cert.rs 50.00% 4 Missing ⚠️
neqo-transport/src/connection/params.rs 80.95% 4 Missing ⚠️
neqo-http3/src/server_events.rs 85.71% 3 Missing ⚠️
neqo-transport/src/lib.rs 0.00% 3 Missing ⚠️
neqo-transport/src/qlog.rs 92.85% 3 Missing ⚠️
neqo-crypto/src/agentio.rs 75.00% 2 Missing ⚠️
neqo-http3/src/conn_params.rs 83.33% 2 Missing ⚠️
... and 10 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1956      +/-   ##
==========================================
+ Coverage   94.78%   94.83%   +0.05%     
==========================================
  Files         111      111              
  Lines       35896    35880      -16     
==========================================
+ Hits        34024    34028       +4     
+ Misses       1872     1852      -20     

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

@larseggert larseggert added this pull request to the merge queue Jul 4, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 4, 2024
@larseggert larseggert added this pull request to the merge queue Jul 4, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 4, 2024
@larseggert larseggert added this pull request to the merge queue Jul 4, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 4, 2024
@larseggert larseggert added this pull request to the merge queue Jul 4, 2024
Merged via the queue into mozilla:main with commit c209c43 Jul 4, 2024
56 of 57 checks passed
@larseggert larseggert deleted the chore-more-clippy branch July 4, 2024 06:16
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