8000 Take upstream bogo changes, and expand testing using it by ctz · Pull Request #2057 · rustls/rustls · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Take upstream bogo changes, and expand testing using it #2057

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

Merged
merged 15 commits into from
Jul 30, 2024
Merged

Conversation

ctz
Copy link
Member
@ctz ctz commented Jul 26, 2024

This takes a new bogo version, and extends testing to cover key exchange group negotiation & the rustls-post-quantum crate, and a smattering of other changes along the way.

Note: the "Correct negotiated_key_exchange_group for TLS1.3 servers" is a change to the core library, the remainder of this PR is test-only.

Copy link
rustls-benchmarking bot commented Jul 26, 2024

Benchmark results

Instruction counts

Significant differences

There are no significant instruction count differences

Other differences

Click to expand
Scenario Baseline Candidate Diff Threshold
handshake_tickets_aws_lc_rs_1.2_rsa_aes_server 4446266 4397253 -49013 (-1.10%) 4.45%
handshake_no_resume_aws_lc_rs_1.3_rsa_chacha_server 13761495 13817813 56318 (0.41%) 1.12%
handshake_session_id_aws_lc_rs_1.2_rsa_aes_server 3933053 3918538 -14515 (-0.37%) 2.54%
handshake_no_resume_aws_lc_rs_1.2_rsa_aes_server 13394605 13426490 31885 (0.24%) 0.57%
handshake_no_resume_aws_lc_rs_1.3_ecdsap384_chacha_client 8898142 8878403 -19739 (-0.22%) 1.35%
handshake_no_resume_ring_1.3_ecdsap256_chacha_server 2139584 2135317 -4267 (-0.20%) 0.81%
handshake_tickets_aws_lc_rs_1.3_rsa_aes_server 33571762 33522904 -48858 (-0.15%) 0.72%
handshake_tickets_aws_lc_rs_1.3_ecdsap384_aes_client 31065406 31107834 42428 (0.14%) 0.29%
handshake_no_resume_aws_lc_rs_1.3_ecdsap384_aes_client 8882030 8870297 -11733 (-0.13%) 0.88%
handshake_tickets_aws_lc_rs_1.3_ecdsap384_chacha_client 31071738 31111362 39624 (0.13%) 0.27%
handshake_session_id_aws_lc_rs_1.3_rsa_aes_server 32982802 32943836 -38966 (-0.12%) 0.73%
handshake_no_resume_ring_1.3_ecdsap256_chacha_client 3920738 3916184 -4554 (-0.12%) 0.31%
transfer_no_resume_aws_lc_rs_1.3_rsa_aes_server 46441896 46391211 -50685 (-0.11%) 0.34%
handshake_session_id_aws_lc_rs_1.3_rsa_chacha_server 32968911 32934300 -34611 (-0.10%) 0.81%
transfer_no_resume_aws_lc_rs_1.3_rsa_chacha_server 80664758 80581197 -83561 (-0.10%) 0.25%
handshake_tickets_aws_lc_rs_1.3_rsa_chacha_server 33530473 33501034 -29439 (-0.09%) 0.74%
handshake_no_resume_aws_lc_rs_1.3_rsa_aes_server 13777056 13785260 8204 (0.06%) 0.99%
transfer_no_resume_aws_lc_rs_1.2_rsa_aes_server 46395816 46368674 -27142 (-0.06%) 0.53%
handshake_session_id_aws_lc_rs_1.3_ecdsap384_chacha_client 30621391 30638411 17020 (0.06%) 0.45%
handshake_no_resume_ring_1.3_ecdsap256_aes_client 3914626 3912783 -1843 (-0.05%) 0.36%
handshake_no_resume_aws_lc_rs_1.3_ecdsap256_aes_client 3380639 3382000 1361 (0.04%) 0.23%
handshake_session_id_aws_lc_rs_1.3_ecdsap384_aes_client 30609870 30620853 10983 (0.04%) 0.41%
transfer_no_resume_aws_lc_rs_1.3_ecdsap384_chacha_client 92636342 92665900 29558 (0.03%) 0.20%
handshake_session_id_ring_1.2_rsa_aes_server 4239763 4238766 -997 (-0.02%) 0.20%
handshake_no_resume_ring_1.3_rsa_aes_client 2948990 2949669 679 (0.02%) 0.20%
handshake_no_resume_aws_lc_rs_1.3_ecdsap256_chacha_client 3385035 3384261 -774 (-0.02%) 0.20%
handshake_no_resume_ring_1.3_ecdsap256_aes_server 2133116 2133595 479 (0.02%) 0.85%
handshake_tickets_ring_1.3_ecdsap256_chacha_client 42255748 42263549 7801 (0.02%) 0.20%
handshake_no_resume_aws_lc_rs_1.3_ecdsap256_chacha_server 1919265 1918962 -303 (-0.02%) 0.20%
handshake_no_resume_aws_lc_rs_1.3_ecdsap384_aes_server 4389157 4389723 566 (0.01%) 0.20%
handshake_session_id_ring_1.3_ecdsap256_chacha_server 43339333 43344623 5290 (0.01%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_ecdsap384_aes_client 58207579 58214369 6790 (0.01%) 0.21%
handshake_session_id_aws_lc_rs_1.2_rsa_aes_client 3994822 3995278 456 (0.01%) 0.20%
handshake_tickets_ring_1.2_rsa_aes_client 4515337 4515848 8000 511 (0.01%) 0.20%
handshake_session_id_ring_1.3_ecdsap256_chacha_client 41787637 41792363 4726 (0.01%) 0.20%
transfer_no_resume_ring_1.3_ecdsap256_aes_server 46455930 46450954 -4976 (-0.01%) 0.20%
handshake_no_resume_aws_lc_rs_1.3_rsa_chacha_client 2232970 2233201 231 (0.01%) 0.20%
handshake_no_resume_ring_1.2_rsa_aes_client 2851919 2852193 274 (0.01%) 0.20%
handshake_tickets_aws_lc_rs_1.2_rsa_aes_client 4320476 4320071 -405 (-0.01%) 0.20%
handshake_tickets_ring_1.2_rsa_aes_server 4678192 4677806 -386 (-0.01%) 0.20%
handshake_tickets_ring_1.3_ecdsap256_chacha_server 43935204 43938478 3274 (0.01%) 0.20%
handshake_tickets_aws_lc_rs_1.3_ecdsap256_aes_client 31116926 31114640 -2286 (-0.01%) 0.20%
handshake_no_resume_ring_1.2_rsa_aes_server 11989343 11990094 751 (0.01%) 0.20%
handshake_no_resume_ring_1.3_rsa_chacha_client 2955142 2955319 177 (0.01%) 0.20%
handshake_session_id_ring_1.3_ecdsap384_aes_server 43443063 43445553 2490 (0.01%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_ecdsap256_aes_client 58211251 58207935 -3316 (-0.01%) 0.20%
handshake_tickets_ring_1.3_ecdsap256_aes_client 42321799 42324087 2288 (0.01%) 0.20%
handshake_session_id_ring_1.3_ecdsap256_aes_client 41875170 41877332 2162 (0.01%) 0.20%
handshake_tickets_ring_1.3_ecdsap384_aes_server 44016761 44018969 2208 (0.01%) 0.20%
handshake_no_resume_aws_lc_rs_1.3_ecdsap256_aes_server 1915681 1915771 90 (0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_ecdsap256_aes_server 33549670 33551231 1561 (0.00%) 0.20%
handshake_session_id_ring_1.3_rsa_aes_client 41889625 41887769 -1856 (-0.00%) 0.20%
transfer_no_resume_ring_1.3_ecdsap256_aes_client 58300434 58297878 -2556 (-0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_rsa_chacha_client 31112366 31113326 960 (0.00%) 0.20%
handshake_no_resume_aws_lc_rs_1.2_rsa_aes_client 2015280 2015221 -59 (-0.00%) 0.20%
handshake_no_resume_ring_1.3_rsa_aes_server 12179458 12179813 355 (0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_ecdsap384_chacha_server 32938579 32939524 945 (0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_ecdsap256_aes_client 30656240 30655448 -792 (-0.00%) 0.20%
handshake_session_id_ring_1.2_rsa_aes_client 4251315 4251209 -106 (-0.00%) 0.20%
handshake_no_resume_ring_1.3_rsa_chacha_server 12185229 12185524 295 (0.00%) 0.20%
handshake_tickets_ring_1.3_rsa_aes_server 44013779 44014818 1039 (0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_ecdsap384_chacha_server 33516226 33517017 791 (0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_rsa_chacha_client 30644100 30643399 -701 (-0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_ecdsap256_chacha_server 33516867 33517628 761 (0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_ecdsap256_chacha_client 31094049 31094742 693 (0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_ecdsap256_chacha_server 32939068 32938342 -726 (-0.00%) 0.20%
handshake_tickets_ring_1.3_rsa_chacha_client 42272327 42271450 -877 (-0.00%) 0.20%
handshake_session_id_ring_1.3_rsa_chacha_server 43339950 43340760 810 (0.00%) 0.20%
transfer_no_resume_ring_1.3_ecdsap256_chacha_client 92628515 92626812 -1703 (-0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_ecdsap256_chacha_client 30629471 30628913 -558 (-0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_rsa_aes_client 30668966 30669496 530 (0.00%) 0.20%
handshake_tickets_ring_1.3_ecdsap384_aes_client 42319889 42319221 -668 (-0.00%) 0.20%
handshake_no_resume_ring_1.3_ecdsap384_aes_server 13741372 13741575 203 (0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_ecdsap384_aes_server 33550877 33550393 -484 (-0.00%) 0.20%
transfer_no_resume_ring_1.2_rsa_aes_server 46368481 46367817 -664 (-0.00%) 0.20%
transfer_no_resume_ring_1.3_ecdsap384_aes_server 46454568 46455209 641 (0.00%) 0.20%
handshake_tickets_ring_1.3_rsa_aes_client 42337491 42336923 -568 (-0.00%) 0.20%
handshake_session_id_ring_1.3_rsa_chacha_client 41808087 41808647 560 (0.00%) 0.20%
handshake_tickets_ring_1.3_rsa_chacha_server 43930261 43929763 -498 (-0.00%) 0.20%
transfer_no_resume_ring_1.3_rsa_aes_client 58297143 58296538 -605 (-0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.2_rsa_aes_client 68632963 68633669 706 (0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_ecdsap256_chacha_server 80607755 80608524 769 (0.00%) 0.20%
handshake_tickets_ring_1.3_ecdsap384_chacha_server 43934161 43934549 388 (0.00%) 0.20%
handshake_tickets_ring_1.3_ecdsap384_chacha_client 42254205 42253852 -353 (-0.00%) 0.20%
handshake_no_resume_ring_1.3_ecdsap384_aes_client 35471737 35472001 264 (0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_ecdsap384_aes_server 46428946 46428603 -343 (-0.00%) 0.20%
handshake_tickets_aws_lc_rs_1.3_rsa_aes_client 31134132 31133905 -227 (-0.00%) 0.20%
handshake_no_resume_ring_1.3_ecdsap384_chacha_client 35473873 35474117 244 (0.00%) 0.20%
handshake_no_resume_aws_lc_rs_1.3_ecdsap384_chacha_server 4393002 4392973 -29 (-0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_ecdsap384_aes_server 32980619 32980416 -203 (-0.00%) 0.20%
handshake_tickets_ring_1.3_ecdsap256_aes_server 44018474 44018209 -265 (-0.00%) 0.20%
handshake_session_id_ring_1.3_ecdsap384_chacha_client 41789983 41789750 -233 (-0.00%) 0.20%
handshake_no_resume_aws_lc_rs_1.3_rsa_aes_client 2225927 2225915 -12 (-0.00%) 0.20%
transfer_no_resume_ring_1.3_ecdsap384_chacha_client 92625655 92625236 -419 (-0.00%) 0.20%
handshake_session_id_ring_1.3_ecdsap256_aes_server 43445259 43445453 194 (0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_ecdsap256_chacha_client 92667397 92667775 378 (0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_rsa_chacha_client 92671727 92671354 -373 (-0.00%) 0.20%
handshake_session_id_aws_lc_rs_1.3_ecdsap256_aes_server 32980062 32979938 -124 (-0.00%) 0.20%
transfer_no_resume_ring_1.3_rsa_chacha_client 92630098 92629775 -323 (-0.00%) 0.20%
transfer_no_resume_ring_1.3_ecdsap384_aes_client 58292648 58292492 -156 (-0.00%) 0.20%
handshake_session_id_ring_1.3_ecdsap384_aes_client 41870317 41870426 109 (0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_rsa_aes_client 58214525 58214391 -134 (-0.00%) 0.20%
handshake_session_id_ring_1.3_rsa_aes_server 43440956 43441053 97 (0.00%) 0.20%
transfer_no_resume_ring_1.3_rsa_aes_server 46462520 46462420 -100 (-0.00%) 0.20%
transfer_no_resume_ring_1.3_rsa_chacha_server 80515889 80515741 -148 (-0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_ecdsap384_chacha_server 80607717 80607580 -137 (-0.00%) 0.20%
transfer_no_resume_ring_1.2_rsa_aes_client 58172854 58172782 -72 (-0.00%) 0.20%
transfer_no_resume_ring_1.3_ecdsap384_chacha_server 80507554 80507488 -66 (-0.00%) 0.20%
transfer_no_resume_aws_lc_rs_1.3_ecdsap256_aes_server 46429255 46429293 38 (0.00%) 0.20%
handshake_session_id_ring_1.3_ecdsap384_chacha_server 43343964 43343945 -19 (-0.00%) 0.20%
transfer_no_resume_ring_1.3_ecdsap256_chacha_server 80504370 80504390 20 (0.00%) 0.20%
handshake_no_resume_ring_1.3_ecdsap384_chacha_server 13743743 13743744 1 (0.00%) 0.20%

Wall-time

Significant differences

⚠️ There are significant wall-time differences

Click to expand 8000
Scenario Baseline Candidate DiffThreshold
handshake_no_resume_ring_1.3_ecdsap256_aes 510.83 µs 524.95 µs ⚠️ 14.12 µs (2.76%) 2.72%

Other differences

Click to expand
Scenario Baseline Candidate Diff Threshold
handshake_no_resume_ring_1.3_ecdsap256_chacha 507.16 µs 521.47 µs 14.31 µs (2.82%) 2.95%
transfer_no_resume_aws_lc_rs_1.3_ecdsap256_aes 4.51 ms 4.47 ms -0.04 ms (-0.86%) 4.87%
transfer_no_resume_aws_lc_rs_1.3_ecdsap384_aes 5.24 ms 5.20 ms -0.04 ms (-0.73%) 4.46%
transfer_no_resume_aws_lc_rs_1.3_rsa_aes 5.45 ms 5.42 ms -0.03 ms (-0.60%) 4.00%
transfer_no_resume_ring_1.2_rsa_aes 6.76 ms 6.72 ms -0.03 ms (-0.49%) 2.97%
transfer_no_resume_aws_lc_rs_1.2_rsa_aes 5.45 ms 5.42 ms -0.02 ms (-0.46%) 3.67%
transfer_no_resume_ring_1.3_rsa_aes 6.82 ms 6.79 ms -0.03 ms (-0.43%) 2.34%
handshake_no_resume_ring_1.3_rsa_chacha 993.52 µs 989.80 µs -3.72 µs (-0.37%) 1.00%
transfer_no_resume_ring_1.3_ecdsap256_aes 6.35 ms 6.33 ms -0.02 ms (-0.36%) 2.66%
handshake_no_resume_aws_lc_rs_1.3_ecdsap256_chacha 482.56 µs 480.83 µs -1.73 µs (-0.36%) 3.42%
handshake_no_resume_aws_lc_rs_1.3_ecdsap384_aes 1.20 ms 1.20 ms -0.00 ms (-0.34%) 1.27%
transfer_no_resume_ring_1.3_ecdsap384_aes 9.43 ms 9.41 ms -0.03 ms (-0.31%) 1.92%
handshake_tickets_ring_1.3_rsa_chacha 7.26 ms 7.24 ms -0.02 ms (-0.29%) 1.00%
handshake_tickets_ring_1.3_rsa_aes 7.30 ms 7.28 ms -0.02 ms (-0.26%) 1.00%
handshake_session_id_aws_lc_rs_1.3_ecdsap384_chacha 6.09 ms 6.08 ms -0.02 ms (-0.26%) 1.44%
handshake_no_resume_ring_1.2_rsa_aes 992.99 µs 990.46 µs -2.54 µs (-0.26%) 1.76%
handshake_no_resume_aws_lc_rs_1.3_ecdsap384_chacha 1.20 ms 1.20 ms -0.00 ms (-0.25%) 1.12%
handshake_session_id_ring_1.3_rsa_chacha 7.21 ms 7.20 ms -0.02 ms (-0.24%) 1.00%
transfer_no_resume_ring_1.3_ecdsap384_chacha 16.08 ms 16.05 ms -0.04 ms (-0.24%) 1.26%
transfer_no_resume_ring_1.3_rsa_chacha 13.47 ms 13.44 ms -0.03 ms (-0.24%) 1.00%
handshake_session_id_aws_lc_rs_1.3_ecdsap384_aes 6.10 ms 6.09 ms -0.01 ms (-0.24%) 1.20%
handshake_tickets_ring_1.2_rsa_aes 1.66 ms 1.65 ms -0.00 ms (-0.23%) 2.36%
handshake_no_resume_aws_lc_rs_1.2_rsa_aes 1.36 ms 1.37 ms 0.00 ms (0.21%) 6.74%
handshake_no_resume_aws_lc_rs_1.3_ecdsap256_aes 484.24 µs 483.24 µs -1.00 µs (-0.21%) 3.28%
transfer_no_resume_aws_lc_rs_1.3_ecdsap256_chacha 12.97 ms 12.94 ms -0.03 ms (-0.19%) 1.50%
transfer_no_resume_aws_lc_rs_1.3_ecdsap384_chacha 13.69 ms 13.66 ms -0.03 ms (-0.19%) 1.21%
handshake_session_id_ring_1.2_rsa_aes 1.57 ms 1.57 ms -0.00 ms (-0.18%) 2.37%
handshake_session_id_ring_1.3_ecdsap384_chacha 9.81 ms 9.80 ms -0.02 ms (-0.18%) 1.00%
handshake_no_resume_ring_1.3_rsa_aes 991.22 µs 989.61 µs -1.61 µs (-0.16%) 1.09%
transfer_no_resume_aws_lc_rs_1.3_rsa_chacha 13.91 ms 13.89 ms -0.02 ms (-0.16%) 1.81%
handshake_session_id_aws_lc_rs_1.3_ecdsap256_chacha 5.38 ms 5.37 ms -0.01 ms (-0.16%) 1.28%
handshake_tickets_ring_1.3_ecdsap384_chacha 9.86 ms 9.84 ms -0.02 ms (-0.16%) 1.00%
handshake_tickets_ring_1.3_ecdsap384_aes 9.90 ms 9.89 ms -0.02 ms (-0.16%) 1.00%
handshake_no_resume_aws_lc_rs_1.3_rsa_aes 1.42 ms 1.42 ms 0.00 ms (0.15%) 5.90%
handshake_session_id_aws_lc_rs_1.2_rsa_aes 2.07 ms 2.07 ms 0.00 ms (0.15%) 4.36%
handshake_no_resume_aws_lc_rs_1.3_rsa_chacha 1.41 ms 1.41 ms 0.00 ms (0.14%) 6.34%
handshake_session_id_aws_lc_rs_1.3_ecdsap256_aes 5.39 ms 5.38 ms -0.01 ms (-0.14%) 1.27%
transfer_no_resume_ring_1.3_ecdsap256_chacha 12.98 ms 12.97 ms -0.01 ms (-0.11%) 1.26%
handshake_tickets_aws_lc_rs_1.3_ecdsap256_aes 5.44 ms 5.43 ms -0.01 ms (-0.11%) 1.34%
handshake_tickets_aws_lc_rs_1.3_rsa_aes 6.39 ms 6.38 ms -0.01 ms (-0.11%) 1.08%
handshake_tickets_aws_lc_rs_1.3_ecdsap256_chacha 5.44 ms 5.43 ms -0.01 ms (-0.11%) 1.38%
handshake_session_id_aws_lc_rs_1.3_rsa_chacha 6.32 ms 6.32 ms -0.01 ms (-0.10%) 1.00%
handshake_session_id_ring_1.3_ecdsap384_aes 9.84 ms 9.83 ms -0.01 ms (-0.09%) 1.00%
handshake_session_id_ring_1.3_rsa_aes 7.25 ms 7.24 ms -0.01 ms (-0.09%) 1.00%
handshake_tickets_aws_lc_rs_1.3_ecdsap384_chacha 6.16 ms 6.15 ms -0.00 ms (-0.08%) 1.57%
handshake_tickets_ring_1.3_ecdsap256_aes 6.82 ms 6.82 ms -0.00 ms (-0.07%) 1.00%
handshake_session_id_ring_1.3_ecdsap256_chacha 6.73 ms 6.73 ms -0.00 ms (-0.06%) 1.00%
handshake_no_resume_ring_1.3_ecdsap384_chacha 3.60 ms 3.60 ms -0.00 ms (-0.06%) 1.00%
handshake_session_id_aws_lc_rs_1.3_rsa_aes 6.34 ms 6.33 ms -0.00 ms (-0.06%) 1.40%
handshake_tickets_aws_lc_rs_1.3_rsa_chacha 6.39 ms 6.39 ms -0.00 ms (-0.05%) 1.00%
handshake_session_id_ring_1.3_ecdsap256_aes 6.76 ms 6.77 ms 0.00 ms (0.04%) 1.00%
handshake_tickets_aws_lc_rs_1.2_rsa_aes 2.24 ms 2.24 ms -0.00 ms (-0.04%) 5.19%
handshake_tickets_aws_lc_rs_1.3_ecdsap384_aes 6.15 ms 6.15 ms -0.00 ms (-0.03%) 1.42%
handshake_tickets_ring_1.3_ecdsap256_chacha 6.78 ms 6.78 ms 0.00 ms (0.01%) 1.00%
handshake_no_resume_ring_1.3_ecdsap384_aes 3.60 ms 3.60 ms -0.00 ms (-0.00%) 1.00%

Additional information

Historical results

Checkout details:

Copy link
codecov bot commented Jul 26, 2024

Codecov Report

Attention: Patch coverage is 99.37888% with 1 line in your changes missing coverage. Please review.

Project coverage is 94.38%. Comparing base (3242cc9) to head (0153838).

Files Patch % Lines
bogo/src/main.rs 99.37% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2057      +/-   ##
==========================================
+ Coverage   94.29%   94.38%   +0.09%     
==========================================
  Files          97       98       +1     
  Lines       21913    23263    +1350     
==========================================
+ Hits        20663    21957    +1294     
- Misses       1250     1306      +56     

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

@ctz ctz force-pushed the jbp-bogo-updates branch 2 times, most recently from 1f7bbb2 to ac411d7 Compare July 29, 2024 09:49
Copy link
Member
@cpu cpu left a comment

Choose a reason for hiding this comment

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

Nice!

ctz added 10 commits July 29, 2024 15:24
This relies on the `negotiated_key_exchange_group()` API
introduced recently.
Transition to `KxState::Complete` at exactly the point
`start_and_complete` finishes.

This changes behaviour: resumed TLS1.3 connections now report
their `negotiated_key_exchange_group()`.  This fixes the
bogo `CurveID-Resume-Server-TLS13` test.
To do this in the future, do `./runme | python check.py`
Rediscover and write down how this works.
If there are any specified, use to filter the groups
supported by the provider.
Remove all feature gates, and temporarily fix it on aws-lc-rs.
Reuse the (existing) `BOGO_SHIM_PROVIDER` environment variable.
@ctz ctz force-pushed the jbp-bogo-updates branch from 72f5555 to 96e866c Compare July 29, 2024 14:24
ctz added 2 commits July 29, 2024 15:47
The purpose of these CI jobs is to ensure the benchmarks
build and don't panic.  Nobody looks at the results, so
it is not really needed to spend a lot of time running them.

In CI this job spends about 17 minutes, this should reduce it to
around 4-5 minutes.
This is mysterious:

```
error: failed to select a version for `log`.
    ... required by package `env_logger v0.10.0`
    ... which satisfies dependency `env_logger = "^0.10"` of package `bogo v0.1.0 (/home/jbp/src/rustls/bogo)`
versions that meet the requirements `^0.4.8` are: 0.4.22, 0.4.21, 0.4.20, 0.4.19, 0.4.18, 0.4.17, 0.4.16, 0.4.15, 0.4.14, 0.4.13, 0.4.11, 0.4.8

all possible versions conflict with previously selected packages.

  previously selected package `log v0.4.4`
    ... which satisfies dependency `log = "^0.4.4"` of package `rustls v0.23.12 (/home/jbp/src/rustls/rustls)`
    ... which satisfies path dependency `rustls` of package `bogo v0.1.0 (/home/jbp/src/rustls/bogo)`

failed to select a version for `log` which could resolve this conflict
error: process didn't exit successfully: `rustup run nightly cargo update -Z direct-minimal-versions` (exit status: 101)
```

First, why is the `bogo` crate even being considered?  This
command is purposefully run in `rustls/` and no other workspace
members should be involved.

Second, why is 0.4.4 not considered?  That is because `env_logger==0.10.0`
requires ^0.4.8.

Third, why is it important that the minimal version of `env_logger` wants something
later than our specified minimal version?  `direct-minimal-versions` should
be the opposite of caring about the versions specified by second-order dependencies.
@ctz ctz force-pushed the jbp-bogo-updates branch from b3821c3 to 0153838 Compare July 29, 2024 15:02
@ctz ctz marked this pull request as ready for review July 29, 2024 15:02
@ctz
Copy link
Member Author
ctz commented Jul 30, 2024

Going to merge this, as I think the one functional change is pretty uncontroversial and the remainder is test-only.

@ctz ctz added this pull request to the merge queue Jul 30, 2024
Merged via the queue into main with commit 70d39bc Jul 30, 2024
46 checks passed
@ctz ctz deleted the jbp-bogo-updates branch July 30, 2024 16:27
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
0