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: Enable the unneeded_field_pattern lint #2332

Merged
merged 4 commits into from
Jan 10, 2025

Conversation

larseggert
Copy link
Collaborator

And fix the lint errors in the codebase.

And fix the lint errors in the codebase.
Copy link

github-actions bot commented Jan 9, 2025

Failed Interop Tests

QUIC Interop Runner, client vs. server, differences relative to 6013bde.

neqo-latest as client

neqo-latest as server

All results

Succeeded Interop Tests

QUIC Interop Runner, client vs. server

neqo-latest as client

neqo-latest as server

Unsupported Interop Tests

QUIC Interop Runner, client vs. server

neqo-latest as client

neqo-latest as server

Copy link
Collaborator

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

I can see a case where one wants to explicitly name all fields, in order to get a compiler error when new fields are added.

That said, we can always locally disable the lint.

@mxinden mxinden enabled auto-merge January 9, 2025 12:48
@mxinden mxinden added this pull request to the merge queue Jan 9, 2025
Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.33%. Comparing base (6013bde) to head (b01ac66).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2332      +/-   ##
==========================================
- Coverage   93.33%   93.33%   -0.01%     
==========================================
  Files         114      114              
  Lines       36887    36887              
  Branches    36887    36887              
==========================================
- Hits        34428    34427       -1     
  Misses       1679     1679              
- Partials      780      781       +1     

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

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jan 9, 2025
@larseggert larseggert enabled auto-merge January 9, 2025 17:55
@larseggert larseggert added this pull request to the merge queue Jan 9, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jan 9, 2025
Copy link

github-actions bot commented Jan 9, 2025

Benchmark results

Performance differences relative to 6013bde.

decode 4096 bytes, mask ff: No change in performance detected.
       time:   [11.165 µs 11.204 µs 11.249 µs]
       change: [-0.0974% +0.2950% +0.7193%] (p = 0.19 > 0.05)

Found 18 outliers among 100 measurements (18.00%)
1 (1.00%) low severe
7 (7.00%) low mild
1 (1.00%) high mild
9 (9.00%) high severe

decode 1048576 bytes, mask ff: No change in performance detected.
       time:   [3.0158 ms 3.0256 ms 3.0378 ms]
       change: [-0.5990% -0.0978% +0.4461%] (p = 0.71 > 0.05)

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

decode 4096 bytes, mask 7f: No change in performance detected.
       time:   [19.564 µs 19.621 µs 19.681 µs]
       change: [-0.6215% +0.2975% +1.4536%] (p = 0.61 > 0.05)

Found 20 outliers among 100 measurements (20.00%)
1 (1.00%) low mild
19 (19.00%) high severe

decode 1048576 bytes, mask 7f: No change in performance detected.
       time:   [5.1631 ms 5.1833 ms 5.2109 ms]
       change: [-0.3587% +0.1379% +0.7370%] (p = 0.64 > 0.05)

Found 15 outliers among 100 measurements (15.00%)
15 (15.00%) high severe

decode 4096 bytes, mask 3f: No change in performance detected.
       time:   [5.5459 µs 5.5811 µs 5.6206 µs]
       change: [-0.7820% -0.0263% +0.6245%] (p = 0.95 > 0.05)

Found 14 outliers among 100 measurements (14.00%)
4 (4.00%) low mild
1 (1.00%) high mild
9 (9.00%) high severe

decode 1048576 bytes, mask 3f: Change within noise threshold.
       time:   [1.7580 ms 1.7582 ms 1.7583 ms]
       change: [-0.7852% -0.4022% -0.0902%] (p = 0.01 < 0.05)

Found 5 outliers among 100 measurements (5.00%)
5 (5.00%) high mild

coalesce_acked_from_zero 1+1 entries: No change in performance detected.
       time:   [98.864 ns 99.211 ns 99.563 ns]
       change: [-0.2410% +0.2400% +0.7216%] (p = 0.34 > 0.05)

Found 14 outliers among 100 measurements (14.00%)
9 (9.00%) high mild
5 (5.00%) high severe

coalesce_acked_from_zero 3+1 entries: No change in performance detected.
       time:   [116.60 ns 117.01 ns 117.43 ns]
       change: [-1.1389% -0.3097% +0.2990%] (p = 0.47 > 0.05)

Found 15 outliers among 100 measurements (15.00%)
4 (4.00%) low mild
1 (1.00%) high mild
10 (10.00%) high severe

coalesce_acked_from_zero 10+1 entries: No change in performance detected.
       time:   [116.09 ns 116.43 ns 116.87 ns]
       change: [-0.6698% +0.0415% +0.8011%] (p = 0.92 > 0.05)

Found 12 outliers among 100 measurements (12.00%)
2 (2.00%) low severe
3 (3.00%) low mild
2 (2.00%) high mild
5 (5.00%) high severe

coalesce_acked_from_zero 1000+1 entries: No change in performance detected.
       time:   [97.628 ns 102.51 ns 113.34 ns]
       change: [-0.7645% +2.5283% +7.5015%] (p = 0.38 > 0.05)

Found 10 outliers among 100 measurements (10.00%)
4 (4.00%) high mild
6 (6.00%) high severe

RxStreamOrderer::inbound_frame(): Change within noise threshold.
       time:   [112.19 ms 112.32 ms 112.54 ms]
       change: [+0.8493% +1.0974% +1.3426%] (p = 0.00 < 0.05)

Found 21 outliers among 100 measurements (21.00%)
3 (3.00%) low severe
6 (6.00%) low mild
9 (9.00%) high mild
3 (3.00%) high severe

SentPackets::take_ranges: No change in performance detected.
       time:   [5.4983 µs 5.6871 µs 5.8936 µs]
       change: [-1.2437% +1.4309% +4.1285%] (p = 0.30 > 0.05)

Found 8 outliers among 100 measurements (8.00%)
5 (5.00%) high mild
3 (3.00%) high severe

transfer/pacing-false/varying-seeds: Change within noise threshold.
       time:   [41.856 ms 41.948 ms 42.053 ms]
       change: [+0.2244% +0.5436% +0.8634%] (p = 0.00 < 0.05)

Found 3 outliers among 100 measurements (3.00%)
1 (1.00%) low mild
1 (1.00%) high mild
1 (1.00%) high severe

transfer/pacing-true/varying-seeds: No change in performance detected.
       time:   [41.937 ms 42.010 ms 42.084 ms]
       change: [-0.2624% -0.0217% +0.2161%] (p = 0.86 > 0.05)

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

transfer/pacing-false/same-seed: Change within noise threshold.
       time:   [41.278 ms 41.339 ms 41.399 ms]
       change: [-1.3837% -1.1461% -0.9145%] (p = 0.00 < 0.05)

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

transfer/pacing-true/same-seed: Change within noise threshold.
       time:   [41.559 ms 41.627 ms 41.696 ms]
       change: [-1.3686% -1.1279% -0.8890%] (p = 0.00 < 0.05)

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

1-conn/1-100mb-resp/mtu-1504 (aka. Download)/client: 💔 Performance has regressed.
       time:   [917.49 ms 926.51 ms 935.70 ms]
       thrpt:  [106.87 MiB/s 107.93 MiB/s 108.99 MiB/s]
change:
       time:   [+2.9809% +4.4665% +5.9938%] (p = 0.00 < 0.05)
       thrpt:  [-5.6549% -4.2756% -2.8946%]
1-conn/10_000-parallel-1b-resp/mtu-1504 (aka. RPS)/client: No change in performance detected.
       time:   [301.55 ms 303.74 ms 306.01 ms]
       thrpt:  [32.678 Kelem/s 32.923 Kelem/s 33.161 Kelem/s]
change:
       time:   [-0.5699% +0.4515% +1.4661%] (p = 0.39 > 0.05)
       thrpt:  [-1.4450% -0.4494% +0.5732%]

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

1-conn/1-1b-resp/mtu-1504 (aka. HPS)/client: No change in performance detected.
       time:   [34.171 ms 34.364 ms 34.581 ms]
       thrpt:  [28.918  elem/s 29.100  elem/s 29.265  elem/s]
change:
       time:   [-0.6432% +0.1716% +1.0144%] (p = 0.69 > 0.05)
       thrpt:  [-1.0042% -0.1713% +0.6474%]

Found 11 outliers among 100 measurements (11.00%)
5 (5.00%) low mild
1 (1.00%) high mild
5 (5.00%) high severe

1-conn/1-100mb-resp/mtu-1504 (aka. Upload)/client: 💚 Performance has improved.
       time:   [1.5898 s 1.6042 s 1.6185 s]
       thrpt:  [61.785 MiB/s 62.335 MiB/s 62.903 MiB/s]
change:
       time:   [-4.7044% -3.3173% -1.8337%] (p = 0.00 < 0.05)
       thrpt:  [+1.8679% +3.4311% +4.9367%]

Client/server transfer results

Transfer of 33554432 bytes over loopback.

Client Server CC Pacing MTU Mean [ms] Min [ms] Max [ms]
gquiche gquiche 1504 540.2 ± 59.5 504.6 706.8
neqo gquiche reno on 1504 781.7 ± 55.9 736.5 928.5
neqo gquiche reno 1504 770.7 ± 21.5 750.4 816.9
neqo gquiche cubic on 1504 796.3 ± 73.8 743.2 960.9
neqo gquiche cubic 1504 751.2 ± 10.2 734.7 765.0
msquic msquic 1504 225.9 ± 97.9 103.1 352.9
neqo msquic reno on 1504 270.2 ± 71.4 210.7 416.3
neqo msquic reno 1504 275.0 ± 82.7 205.7 439.3
neqo msquic cubic on 1504 286.0 ± 98.3 206.4 487.0
neqo msquic cubic 1504 337.9 ± 131.7 217.6 641.8
gquiche neqo reno on 1504 675.1 ± 83.1 557.3 802.5
gquiche neqo reno 1504 704.5 ± 117.7 534.3 905.2
gquiche neqo cubic on 1504 709.4 ± 95.4 559.7 828.5
gquiche neqo cubic 1504 709.4 ± 101.2 552.2 881.6
msquic neqo reno on 1504 507.8 ± 57.2 467.2 628.3
msquic neqo reno 1504 568.0 ± 138.3 467.2 904.9
msquic neqo cubic on 1504 526.6 ± 94.8 474.6 764.0
msquic neqo cubic 1504 502.6 ± 68.7 467.6 695.9
neqo neqo reno on 1504 522.1 ± 60.5 467.8 619.6
neqo neqo reno 1504 526.5 ± 113.4 440.6 785.2
neqo neqo cubic on 1504 527.4 ± 48.1 453.0 591.4
neqo neqo cubic 1504 542.4 ± 37.1 493.4 626.0

⬇️ Download logs

@larseggert larseggert enabled auto-merge January 10, 2025 05:55
@larseggert larseggert added this pull request to the merge queue Jan 10, 2025
auto-merge was automatically disabled January 10, 2025 06:14

Pull Request is not mergeable

auto-merge was automatically disabled January 10, 2025 06:14

Pull Request is not mergeable

auto-merge was automatically disabled January 10, 2025 06:15

Pull Request is not mergeable

auto-merge was automatically disabled January 10, 2025 06:15

Pull Request is not mergeable

auto-merge was automatically disabled January 10, 2025 06:15

Pull Request is not mergeable

auto-merge was automatically disabled January 10, 2025 06:15

Pull Request is not mergeable

auto-merge was automatically disabled January 10, 2025 06:16

Pull Request is not mergeable

auto-merge was automatically disabled January 10, 2025 06:16

Pull Request is not mergeable

Merged via the queue into mozilla:main with commit b0fbde7 Jan 10, 2025
62 of 63 checks passed
@larseggert larseggert deleted the chore-unneeded_field_pattern branch January 10, 2025 06:19
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