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(transport): remove unused Error::HandshakeFailed #2160

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

mxinden
Copy link
Collaborator

@mxinden mxinden commented Oct 8, 2024

No description provided.

Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.39%. Comparing base (aca20d3) to head (2bd9009).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2160   +/-   ##
=======================================
  Coverage   95.39%   95.39%           
=======================================
  Files         112      112           
  Lines       36373    36373           
=======================================
  Hits        34697    34697           
  Misses       1676     1676           

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

@larseggert
Copy link
Collaborator

Was that ever used? Or was the code that used it maybe inadvertently removed, like for AckedUnsentPacket?

@mxinden
Copy link
Collaborator Author

mxinden commented Oct 8, 2024

Instantiation of Error::HandshakeFailed was removed in 03238d4, replaced by Error::CryptoAlert.

Copy link

github-actions bot commented Oct 8, 2024

Failed Interop Tests

QUIC Interop Runner, client vs. server

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

github-actions bot commented Oct 8, 2024

Benchmark results

Performance differences relative to e11528d.

coalesce_acked_from_zero 1+1 entries: No change in performance detected.
       time:   [99.254 ns 99.559 ns 99.869 ns]
       change: [-0.8069% -0.2405% +0.3239%] (p = 0.43 > 0.05)

Found 12 outliers among 100 measurements (12.00%)
9 (9.00%) high mild
3 (3.00%) high severe

coalesce_acked_from_zero 3+1 entries: No change in performance detected.
       time:   [117.63 ns 118.00 ns 118.38 ns]
       change: [-0.2552% +0.1396% +0.5368%] (p = 0.48 > 0.05)

Found 21 outliers among 100 measurements (21.00%)
1 (1.00%) low severe
2 (2.00%) low mild
5 (5.00%) high mild
13 (13.00%) high severe

coalesce_acked_from_zero 10+1 entries: No change in performance detected.
       time:   [117.08 ns 117.46 ns 117.95 ns]
       change: [-0.3217% +0.0871% +0.5269%] (p = 0.69 > 0.05)

Found 11 outliers among 100 measurements (11.00%)
3 (3.00%) low severe
2 (2.00%) low mild
6 (6.00%) high severe

coalesce_acked_from_zero 1000+1 entries: No change in performance detected.
       time:   [98.339 ns 104.11 ns 116.66 ns]
       change: [-0.4832% +2.0889% +6.5111%] (p = 0.37 > 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:   [111.02 ms 111.07 ms 111.12 ms]
       change: [-0.4327% -0.3572% -0.2849%] (p = 0.00 < 0.05)

Found 16 outliers among 100 measurements (16.00%)
6 (6.00%) low mild
10 (10.00%) high mild

transfer/pacing-false/varying-seeds: No change in performance detected.
       time:   [26.947 ms 27.878 ms 28.822 ms]
       change: [-2.3815% +2.3310% +7.2711%] (p = 0.36 > 0.05)
transfer/pacing-true/varying-seeds: No change in performance detected.
       time:   [35.354 ms 36.950 ms 38.553 ms]
       change: [-8.0779% -1.1205% +6.0925%] (p = 0.75 > 0.05)

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

transfer/pacing-false/same-seed: No change in performance detected.
       time:   [25.550 ms 26.425 ms 27.299 ms]
       change: [-6.5155% -2.4019% +1.9146%] (p = 0.30 > 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: No change in performance detected.
       time:   [41.178 ms 43.185 ms 45.165 ms]
       change: [-5.5296% +1.0699% +7.7072%] (p = 0.74 > 0.05)
1-conn/1-100mb-resp (aka. Download)/client: 💚 Performance has improved.
       time:   [112.68 ms 113.14 ms 113.57 ms]
       thrpt:  [880.50 MiB/s 883.86 MiB/s 887.47 MiB/s]
change:
       time:   [-2.3237% -1.7248% -1.1158%] (p = 0.00 < 0.05)
       thrpt:  [+1.1284% +1.7550% +2.3790%]

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

1-conn/10_000-parallel-1b-resp (aka. RPS)/client: Change within noise threshold.
       time:   [309.09 ms 312.84 ms 316.56 ms]
       thrpt:  [31.590 Kelem/s 31.966 Kelem/s 32.354 Kelem/s]
change:
       time:   [-3.5281% -1.8367% -0.0873%] (p = 0.04 < 0.05)
       thrpt:  [+0.0874% +1.8710% +3.6571%]
1-conn/1-1b-resp (aka. HPS)/client: No change in performance detected.
       time:   [33.926 ms 34.105 ms 34.310 ms]
       thrpt:  [29.146  elem/s 29.321  elem/s 29.476  elem/s]
change:
       time:   [-0.3867% +0.4658% +1.3382%] (p = 0.29 > 0.05)
       thrpt:  [-1.3205% -0.4637% +0.3882%]

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

Client/server transfer results

Transfer of 33554432 bytes over loopback.

Client Server CC Pacing Mean [ms] Min [ms] Max [ms] Relative
msquic msquic 159.7 ± 98.3 92.9 449.1 1.00
neqo msquic reno on 254.5 ± 75.4 217.5 465.2 1.00
neqo msquic reno 311.6 ± 154.0 210.8 686.2 1.00
neqo msquic cubic on 265.9 ± 74.9 216.9 424.1 1.00
neqo msquic cubic 223.9 ± 16.6 207.6 257.8 1.00
msquic neqo reno on 101.6 ± 22.3 81.3 172.3 1.00
msquic neqo reno 157.5 ± 99.5 83.0 366.9 1.00
msquic neqo cubic on 113.2 ± 62.0 82.9 360.4 1.00
msquic neqo cubic 96.5 ± 26.2 82.3 166.3 1.00
neqo neqo reno on 223.2 ± 127.9 129.7 628.3 1.00
neqo neqo reno 239.7 ± 118.3 133.6 436.3 1.00
neqo neqo cubic on 234.3 ± 103.7 126.7 436.2 1.00
neqo neqo cubic 226.5 ± 137.6 116.7 628.6 1.00

⬇️ Download logs

@larseggert larseggert added this pull request to the merge queue Oct 8, 2024
Merged via the queue into mozilla:main with commit 5677bd1 Oct 8, 2024
56 of 63 checks passed
@larseggert
Copy link
Collaborator

@mxinden
Copy link
Collaborator Author

mxinden commented Oct 9, 2024

Yes, neqo_glue handles TransportError::HandshakeFailed, but never instantiates it.

            TransportError::HandshakeFailed => CloseError::TransportInternalErrorOther(6),

https://searchfox.org/mozilla-central/rev/7a85a111b5f42cdc07f438e36f9597c4c6dc1d48/netwerk/socket/neqo_glue/src/lib.rs#1004

@larseggert
Copy link
Collaborator

Ok, so we just need to remove it there.

Really wish we could compile the glue together with neqo somehow in CI (without the full Fx).

@mxinden
Copy link
Collaborator Author

mxinden commented Oct 9, 2024

I guess we could run ./mach build netwerk in firefox.yml:

./mach build && tar -cf "../$FIREFOX.tar" -C "../$FIREFOX/dist" "$NAME$TYPE$EXT"

That would still suffice as a smoke test, but won't give us a full Firefox build.

@larseggert
Copy link
Collaborator

I was hoping we could just do a sparse checkout and build the neqo_glue crate...

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