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

feat(qns): implement v2 testcase #1570

Merged
merged 2 commits into from
Jan 21, 2024
Merged

feat(qns): implement v2 testcase #1570

merged 2 commits into from
Jan 21, 2024

Conversation

mxinden
Copy link
Collaborator

@mxinden mxinden commented Jan 19, 2024

Add support for Quic Network Simulator v2 testcase.

In v2 testcase, don't restrict the server to Version::Version1, thus allowing the server to upgrade incoming Version::Version1 connection to compatible Version::Version2 connection.

See also Quic Network Simulator v2 testcase implementation.


//CC @marten-seemann

Follow-up to #1563.
Related to quic-interop/quic-interop-runner#344 and #1552.

Add support for Quic Network Simulator `v2` testcase.

In `v2` testcase, don't restrict the server to `Version::Version1`, thus
allowing the server to upgrade incoming `Version::Version1` connection to
compatible `Version::Version2` connection.

See also [Quic Network Simulator `v2` testcase implementation](
https://github.com/quic-interop/quic-interop-runner/blob/ca27dcb5272a82d994337ae3d14533c318d81b76/testcases.py#L1460-L1545).
@codecov-commenter
Copy link

codecov-commenter commented Jan 19, 2024

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (4de3279) 87.60% compared to head (61ed61e) 87.59%.

Files Patch % Lines
neqo-server/src/main.rs 0.00% 7 Missing ⚠️
neqo-client/src/main.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1570      +/-   ##
==========================================
- Coverage   87.60%   87.59%   -0.02%     
==========================================
  Files         117      117              
  Lines       38335    38256      -79     
==========================================
- Hits        33584    33510      -74     
+ Misses       4751     4746       -5     

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

Copy link
Contributor

@marten-seemann marten-seemann left a comment

Choose a reason for hiding this comment

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

It's nice to see some coverage for the v2 test!

@@ -1018,6 +1018,7 @@ fn main() -> Res<()> {
args.use_old_http = true;
args.key_update = true;
}
"v2" => {}
Copy link
Contributor

Choose a reason for hiding this comment

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

The v2 test also runs on HTTP/0.9. Do you need to set use_old_http here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, exactly right. Thank you @marten-seemann. See 61ed61e.

image

Copy link
Contributor

Choose a reason for hiding this comment

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

Exciting!

@@ -868,6 +870,7 @@ fn main() -> Result<(), io::Error> {
args.alpn = String::from(HQ_INTEROP);
args.retry = true;
}
"v2" => (),
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here?

@martinthomson martinthomson merged commit a334be2 into mozilla:main Jan 21, 2024
9 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.

4 participants