Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #184 from libp2p/fix-interop-multi-transfer-hang
Browse files Browse the repository at this point in the history
fix hanging multi-transfer interop test
  • Loading branch information
marten-seemann authored Nov 12, 2020
2 parents c3b1126 + 6828adc commit 7d08b26
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/interop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ for k1 in server*.key; do
else
echo -e "\nRunning with server $SERVER ($k1) and client $CLIENT ($k2). Test: $TEST"
./$SERVER -role server -key $k1 -peerkey $k2 -addr $SERVER_ADDR -test $TEST &
PID=$!
time ./$CLIENT -role client -key $k2 -peerkey $k1 -addr $SERVER_ADDR -test $TEST
wait
wait $PID
fi
done;
done;
3 changes: 2 additions & 1 deletion .github/workflows/interop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,6 @@ jobs:
run: cd interop && ../.github/workflows/interop.sh transport-go${{ matrix.server.go }}-${{ matrix.server.commit }} transport-go${{ matrix.client.go }}-${{ matrix.client.commit }} single-transfer
- name: 'Run test case: multi-transfer'
# Longer transfers might fail if the version has the connection ID retirement bug, see https://github.com/ipfs/go-ipfs/issues/7526.
if: ${{ matrix.client.retireBugBackwardsCompatiblityMode || matrix.server.retireBugBackwardsCompatiblityMode }}
# The busy-looping bug might prevent all streams from being opened, see https://github.com/lucas-clemente/quic-go/pull/2827.
if: ${{ !matrix.client.hasOpenStreamBug && (matrix.client.retireBugBackwardsCompatiblityMode || matrix.server.retireBugBackwardsCompatiblityMode) }}
run: cd interop && ../.github/workflows/interop.sh transport-go${{ matrix.server.go }}-${{ matrix.server.commit }} transport-go${{ matrix.client.go }}-${{ matrix.client.commit }} multi-transfer
20 changes: 10 additions & 10 deletions .github/workflows/matrix.jsonc
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[
{ "go": "1.13", "commit": "v0.6.0", "retireBugBackwardsCompatiblityMode": false },
{ "go": "1.14", "commit": "v0.6.0", "retireBugBackwardsCompatiblityMode": false },
{ "go": "1.13", "commit": "v0.7.0", "retireBugBackwardsCompatiblityMode": false },
{ "go": "1.14", "commit": "v0.7.0", "retireBugBackwardsCompatiblityMode": false },
{ "go": "1.13", "commit": "v0.7.1", "retireBugBackwardsCompatiblityMode": true },
{ "go": "1.14", "commit": "v0.7.1", "retireBugBackwardsCompatiblityMode": true },
{ "go": "1.13", "commit": "v0.6.0", "retireBugBackwardsCompatiblityMode": false, "hasOpenStreamBug": true },
{ "go": "1.14", "commit": "v0.6.0", "retireBugBackwardsCompatiblityMode": false, "hasOpenStreamBug": true },
{ "go": "1.13", "commit": "v0.7.0", "retireBugBackwardsCompatiblityMode": false, "hasOpenStreamBug": true },
{ "go": "1.14", "commit": "v0.7.0", "retireBugBackwardsCompatiblityMode": false, "hasOpenStreamBug": true},
{ "go": "1.13", "commit": "v0.7.1", "retireBugBackwardsCompatiblityMode": true, "hasOpenStreamBug": true },
{ "go": "1.14", "commit": "v0.7.1", "retireBugBackwardsCompatiblityMode": true, "hasOpenStreamBug": true },
// v0.7.1 was never released in IPFS.
{ "go": "1.14", "commit": "v0.8.0", "retireBugBackwardsCompatiblityMode": true },
{ "go": "1.15", "commit": "v0.8.0", "retireBugBackwardsCompatiblityMode": true },
{ "go": "1.14", "commit": "HEAD", "retireBugBackwardsCompatiblityMode": true },
{ "go": "1.15", "commit": "HEAD", "retireBugBackwardsCompatiblityMode": true }
{ "go": "1.14", "commit": "v0.8.0", "retireBugBackwardsCompatiblityMode": true, "hasOpenStreamBug": true },
{ "go": "1.15", "commit": "v0.8.0", "retireBugBackwardsCompatiblityMode": true, "hasOpenStreamBug": true },
{ "go": "1.14", "commit": "HEAD", "retireBugBackwardsCompatiblityMode": true, "hasOpenStreamBug": true },
{ "go": "1.15", "commit": "HEAD", "retireBugBackwardsCompatiblityMode": true, "hasOpenStreamBug": true }
]

0 comments on commit 7d08b26

Please sign in to comment.