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

Update interop testing #52

Merged
merged 3 commits into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
website/
fuzz/
include/
target/
!target/release/tquic_client
!target/release/tquic_server
.git/
.github/
13 changes: 11 additions & 2 deletions .github/workflows/tquic-interop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,18 @@ env:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
server: [tquic]
client: [tquic]
include:
- server: tquic
client: lsquic
- server: lsquic
client: tquic

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -37,4 +46,4 @@ jobs:
- name: Run the interop tests
run: |
cd quic-interop-runner
python3 run.py -s tquic -c tquic -t handshake,retry,resumption,http3,ipv6,transfer,multiplexing,longrtt,blackhole,transferloss,transfercorruption,goodput,crosstraffic -d -r tquic=tquic_interop:v1
python3 run.py -s ${{ matrix.server }} -c ${{ matrix.client }} -t handshake,retry,resumption,http3,ipv6,transfer,multiplexing,longrtt,blackhole,transferloss,transfercorruption,goodput,crosstraffic -d -r tquic=tquic_interop:v1
5 changes: 5 additions & 0 deletions interop/run_endpoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,21 @@ if [ "$ROLE" == "client" ]; then
REQS=($REQUESTS)

CLIENT_ARGS="--dump-path ${DOWNLOAD_DIR} --keylog-file $SSLKEYLOGFILE --log-level TRACE --max-concurrent-requests ${#REQS[@]}"
CLIENT_ALPN="--alpn hq-interop"
case $TESTCASE in
resumption)
CLIENT_ARGS="$CLIENT_ARGS --session-file=session.bin"
;;
zerortt)
CLIENT_ARGS="$CLIENT_ARGS --session-file=session.bin --enable-early-data"
;;
http3)
CLIENT_ALPN="--alpn h3"
;;
*)
;;
esac
CLIENT_ARGS="$CLIENT_ARGS $CLIENT_ALPN"

case $TESTCASE in
multiconnect|resumption)
Expand Down
2 changes: 1 addition & 1 deletion src/connection/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@ impl Connection {
scid,
pkt_num: 0,
pkt_num_len,
token: if pkt_type == PacketType::Initial {
token: if !self.is_server && pkt_type == PacketType::Initial {
// Note: Retry packet is not sent by send_packet()
self.token.clone()
} else {
Expand Down